HP-UX System Administrator's Guide: Routine Management Tasks

12. Test the printer using the LP spooler, then check the LP spoolers status. For
example:
lp -dlocal_printer /etc/passwd
lpstat -t
Adding a Network-Based Printer
Using HP SMH
You can use HP SMH to add a network-based printer that uses the HP JetDirect Network
Interface. The HP JetDirect software must be installed on your system and you must
be prepared to provide SMH with the following:
the printers node name (the name associated with an Internet address)
the local name that the LP spooler will use to refer to the printer.
With HP JetDirect, printers can connect directly to the network. The printer uses a LAN
connection and the HP JetDirect software transmits prints requests. For more
information, see HP JetDirect Network Interface Configuration Guide.
Using HP-UX Commands
If you do not use HP SMH, follow the instructions shipped with your printer or the
network interface card for the printer.
Creating a Printer Class
For conceptual information, read HP-UX System Administrator’s Guide: Overview.
You can use HP SMH to add a printer to a printer class when the printer is being added
to the spooler; otherwise, you must use HP-UX commands. To use HP-UX commands,
follow these steps after several printers have been added to the LP spooler:
1. Ensure that you have superuser capabilities.
2. Stop the LP spooler:
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler ” (page 163).
3. Create the printer class, specifying the printer you want to add to the class of
printers.
For example, to add a printer named laser1 to the class of printers named laser,
enter:
/usr/sbin/lpadmin -plaser1 -claser
Only one printer can be added to a class at a time. If you have more than one
printer to add, repeat this command.
4. Allow print requests to be accepted for the newly added printer class. For example:
/usr/sbin/accept laser
174 Managing Printers