Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a Workgroup
Configuring Printers for a Workgroup
Chapter 4 435
Using HP-UX
Commands
Step 1. Ensure that you have superuser capabilities.
Step 2. Stop the LP spooler:
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler” on
page 703.
Step 3. Add the printer to the LP spooler. For example:
/usr/sbin/lpadmin -p
local_printer
-v
/dev/lp
-m
HP_model
-g7
See lpadmin (1M) for details on the options. See “Printer Model Files” on
page 109 for choices for the -m option.
Step 4. If the printer being added will be the default printer, execute the
following:
/usr/sbin/lpadmin -d
local_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” on page 704 for information
on accept.
Step 5. Enable the newly added printer to process print requests. For example:
/usr/bin/enable
local_printer
See “Enabling or Disabling a Printer” on page 704 for details.
Step 6. Restart the LP spooler:
/usr/sbin/lpsched
Step 7. Test the printer using the LP spooler, then check the LP spooler’s status.
For example:
lp -d
local_printer
/etc/passwd
lpstat -t