Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Administering a System: Managing Printers, Software, and Performance
Managing Printers
Chapter 7704
Step 4. Restart the LP spooler.
/usr/sbin/lpsched
When the spooler is restarted, any print request actively being printed at
the time the lpshut command was issued will be completely reprinted,
regardless of how much of the request was previously printed.
Controlling the Flow of Print Requests
As superuser, you can use SAM or HP-UX commands to control the flow
of print requests to the queues of named printers or printer classes.
Using HP-UX
Commands
To allow print requests to be sent to a printer or to a printer class, use
the accept command. For example:
/usr/sbin/accept laser1 jet2 lj
See accept (1M) for details.
To prevent print requests from being sent to a printer or printer class,
use the reject command. For example:
/usr/sbin/reject lj
NOTE If the reject command is executed on a printer class, but not on
members of the class, users can still specify a specific printer (not the
class) in subsequent print requests until an accept command on the
class is reissued.
If, however, you execute reject for all individual printers in a class, but
not for the class itself, the print requests will remain in the class request
directory until at least one of the printers in the class is permitted to
process print requests by the accept command. See reject (1M) for
details.
Enabling or Disabling a Printer
You can use SAM or the HP-UX commands enable and disable to
activate or deactivate a printer for printing. You do not need superuser
capabilities for these commands.