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

/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler ” (page 163).
3. Set the printers fence priority (use a value from 0 to 7). For example:
/usr/sbin/lpfence myprinter 5
4. Restart the LP spooler:
/usr/sbin/lpsched
Changing a Printer’s Default Request Priority
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. Change the priority. For example:
/usr/sbin/lpadmin -pmyprinter -g7
If you do not specify the -g option, the default request priority is set to zero.
4. Restart the LP spooler:
/usr/sbin/lpsched
Summary of Additional Printer Tasks
Table 4-1 summarizes additional printer tasks. Refer to the command’s manpage for
details. In this table, LJ-1234 and LJ-1829 represent sample print requests; lj1 and
lj2 represent printers.
Table 4-1 Additional Printing Tasks
Additional InformationExampleTask
lj2 is a destination printer or printer class. See
lpalt(1).
lpalt LJ-1234 -dlj2
Move a print request to
another location.
LJ-1234 is a unique request ID number returned
by lp or lpalt. See cancel(1), lp(1), and lpalt(1).
cancel LJ-1234
Cancel a print request.
This changes LJ-1829s priority to 3. See lpalt(1).lpalt LJ-1829 -p3
Change the priority of
print requests.
To log spooler activity, start the spooler by
entering lpsched with the -a option. Such data
is useful for configuring the spooler system for
optimum operation. See lpana(1M).
lpana
Display statistics about
LP spooler activity.
See lpstat(1).
lpstat -o
List request id numbers.
166 Managing Printers