HP (Hewlett-Packard) M208 Switch User Manual


 
CONFIGURING THE M208 FOR TCP/IP: Host Configuration 57
devicefile Name linked to the slavefile by npd.
153 spike com2 /dev/ptyq1 /dev/ttyq1 /dev/spike.com2
is the log entry for the npd daemon using process ID 153.
You can acquire the process ID of the npd daemon that needs to be stopped and then
execute the following kill command for that process:
kill -TERM
pid
Applications Using npd
Sun NeWSprint
Sun NeWSprint page accounting works with PostScript printers. It utilizes the bi-
directionality of the M208’s serial ports to get this status back to the host.
If the printer is attached to one of the parallel ports, no page information comes back
from the printer. This causes Sun NeWSprint to assume a communication problem
and disable the queue. To avoid this, remove the af= field in the /etc/printcap entry
and set the HANDLER_INTERFACE variable to PARALLEL in the .param file
located in the printer’s spooling directory.
Add a new Sun NeWSprint printer entry with the add_np_printer program. The
pseudo-tty device is a serial interface. Therefore, when this program prompts you for a
device interface, select Serial and device suffix a for any port on the unit.
After NeWSprint creates the necessary spooling directory and entry in the /etc/print-
cap file, set the lp= field in the new entry to the devicefile argument of the npd pro-
gram.
The modified /etc/printcap entry looks like this for a PostScript printer named ps
attached to com2 on the M208 named spike:
# entry for a PostScript printer on a serial port
ps|PostScript|PostScript on spike’s com2 port:\
:lp=/dev/spike.com2:\
:sd=/b/newsprint/lpd/spike/com2:\
:lf=/b/newsprint/lpd/spike/com2/log:\
:af=/b/newsprint/lpd/spike/com2/acct:\
:if=/b/newsprint/lpd/if:\
:gf=/b/newsprint/lpd/gf:\
:nf=/b/newsprint/lpd/nf:\
Example
Syntax
Examp
l
e