HP (Hewlett-Packard) M208 Switch User Manual


 
56 CONFIGURING THE M208 FOR TCP/IP: Host Configuration
default). You can modify this value with the -t option.
npd -t 60 /dev/spike.com2 spike com2
for the timeout to occur in 60 seconds.
Testing npd
Once npd has been started, it’s a good idea to test and see if npd is working before
trying to print through the spooler. This is one test method.
cat test.txt > /dev/spike.com2
redirects the cat output of test.txt to the npd device /dev/spike.com2 which is then
sent to the M208 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 line (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
the /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 device-
file.
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
where:
pid Process ID of npd daemon.
ipname M208 IP address or IP name serviced by npd.
port M208 I/O port used by npd (i.e. prn, com1, com2).
masterfile Master device used by npd.
slavefile Slave device used by npd.
Examp
l
e
Examp
l
e