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

3. Add the printer to the LP spooler. For example:
/usr/sbin/lpadmin -plocal_printer -v/dev/lp -mHP_model -g7
See lpadmin(1M) for details on the options. See HP-UX System Administrator’s Guide:
Overview for choices for the -m option.
4. If the printer being added will be the default printer, execute the following:
/usr/sbin/lpadmin -dlocal_printer
Allow print requests to be accepted for the newly added printer. For example:
/usr/sbin/accept local_printer
See “Controlling the Flow of Print Requests” (page 164) for information on accept.
5. Enable the newly added printer to process print requests. For example:
/usr/bin/enable local_printer
See “Enabling or Disabling a Printer” (page 165) for details.
6. Restart the LP spooler:
/usr/sbin/lpsched
7. Test the printer using the LP spooler, then check the LP spoolers status. For
example:
lp -dlocal_printer /etc/passwd
lpstat -t
Adding a Remote Printer to the LP Spooler
To familiarize yourself with remote spooling concepts, see HP-UX System Administrator’s
Guide: Overview.
The easiest way to add a printer to a remote system is to use HP SMH. If you elect to
use HP-UX commands, review the HP SMH procedure, Step 4, as this information will
also be required when performing the task manually.
Using HP SMH
NOTE: HP SMH does not verify that an actual printer exists on a remote system. Be
sure the printer is installed and configured, and if necessary, use HP SMH to configure
it on the remote system before adding it as a remote printer.
1. Access the HP SMH homepage as root.
Configuring Printers to Use the LP Spooler 171