Chapter 5
Configuring the Internal Ethernet Adapter for TCP/IP
168
npd locks
As npd acquires an exclusive lock on the Internal Ethernet Adapter
port, it is possible to lock out other daemons that may reside on other
UNIX hosts. Therefore, npd is designed to timeout and release the lock
if the pseudo-tty pair is idle for a specified time (30 seconds). You can
modify this value with the -t option.
npd -t 60 /dev/spike.prn spike prn
for the timeout to occur in 60 seconds.
Testing npd
Once npd has been started, test to see if npd is working before
attempting to print through the spooler. The following is one test
method:
cat test.txt > /dev/spike.prn
redirects the cat output of test.txt to the npd device /dev/spike.prn
which is then sent to the Internal Ethernet Adapter named spike.
Modifying a Host to Use npd
If you want the npd daemon to start every time you reboot your UNIX
machine, edit your -rc file to include the appropriate npd startup
command (from the previous section). After npd starts, integrate the
print spooler into this pseudo-tty setup.
In BSD print spooler systems, modify the lp= field in the appropriate
printer entry in /etc/printcap file. Set lp= to the
devicefile
argument of
the npd program.
On System V systems, the -v option in the lpadmin command will equal
the
devicefile.
Stopping npd
Whenever an npd daemon starts, it makes a log entry in the /usr/adm/
npdlog file. The contents of this file have the following naming
information:
pid ipname port masterfile slavefile devicefile
Summary of Contents for PrintNet 5525B
Page 1: ...5525B 31 32 Line Matrix Printer User s Manual ...
Page 3: ...5525B 31 32 Line Matrix Printer User s Manual P N 422721 001 ...
Page 10: ...Table of Contents 10 ...
Page 194: ...Chapter 5 Configuring the Internal Ethernet Adapter for Windows 194 ...
Page 199: ...Printing a Hex Dump 199 Figure 15 Hex Dump Sample ...
Page 220: ...Appendix C 220 ...
Page 236: ...Index 236 ...
Page 237: ......
Page 238: ...170115 001A 5525B 31 32 Line Matrix Printer Compaq Computer Corporation P N 422721 001 ...