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

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 HP SMH 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.
You can issue individual enable and disable commands for each printer or issue
one command separating each printer by blank spaces. For example:
/usr/bin/enable laser1 laser2 laser3
You can enable or disable individual printers only, not printer classes. By default, any
requests printing when a printer is disabled are reprinted in their entirety when the
printer is reactivated. A printer that has been disabled can still accept new print requests
to be printed at a later time unless it has been prevented from doing so by the reject
command.
See enable(1) anddisable(1) for details.
Setting a Printer’s Fence Priority
A fence priority is a value (0 to 7) associated with a printer and used to control access
by print requests. A print request must have a value equal to or greater than the printers
fence priority or it will remain on the print queue.
You can assign the fence priority using HP SMH or HP-UX commands.
To use HP-UX commands, follow these steps:
1. Ensure that you have superuser capabilities.
2. Stop the LP spooler:
Administering the LP Spooler 165