Configuring HP-UX For Peripherals

Chapter 8 211
Configuring Printers and Plotters
Configuring a Printer Using HP-UX Commands
/usr/sbin/lssf /dev/c0p3_lp
mux2 card instance 0 port 3 hardwired at address 56/56 /dev/c0p3_lp
ll /dev/c0p3_lp
crw-rw-rw- 1 bin bin 193 0x000300 Mar 16 18:29 /dev/c0p3_lp
In the minor number (0x000300, shown in the long listing), you can see
that the 3 corresponds to the port number for the mux2 card at card
instance 0.
If you have enabled hardware flow control, your output will resemble the
following:
/usr/sbin/lssf /dev/c0p3_lp
mux2 card instance 0 port 3 hardwired HW flow control
at address 56/56 /dev/c0p3_lp
ll /dev/c0p3_lp
crw-rw-rw- 1 bin bin 193 0x000310 Mar 16 18:29 /dev/c0p3_lp
In the minor number (0x000310, shown in the long listing), you can see
that the 3 corresponds to the port number for the mux2 card at card
instance 0 and that bit 27 is set. (For minor number bit assignments, see
Appendix C , “Major and Minor Numbers.”)
Your next task will be to configure the LP spooler to enable you to send
print jobs to the printer or plotter. See "Managing Printers and Printer
Output," in Managing Systems and Workgroups.
Guidelines for Configuring a Non-HP Printer to a
Parallel Port
Compatibility problems typical when configuring non-HP peripherals to
the parallel interface usually involve the handshake mode. The CentIf
driver provides six handshake modes that can be accessed for different
implementations. To use them, create a custom device special file using
specific bits in the minor number.
When a peripheral is unable to communicate via the parallel port, be
sure to use the cat command and not lp as a starting point. This
eliminates problems with model scripts and lpsched. If this fails, and
the peripheral is known to work, substitute an HP LaserJet or DeskJet
printer and test again. If the HP product works, the problem may be in
the handshake method. (Be sure that the problem is communication and
not the text going to the printer a PostScript printer will alwaysreport