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

Administering a System: Managing Printers, Software, and Performance
Managing Printers
Chapter 7706
/usr/sbin/lpshut
For more information, see “Stopping and Restarting the LP Spooler” on
page 703.
Step 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.
Step 4. Restart the LP spooler:
/usr/sbin/lpsched
Summary of Additional Printer Tasks
Table 7-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 7-1 Additional Printing Tasks
Task Example Additional Information
Move a print
request to another
location.
lpalt LJ-1234 -dlj2 lj2 is a destination printer or printer
class. See lpalt (1).
Cancel a print
request.
cancel LJ-1234 LJ-1234 is a unique request ID number
returned by lp or lpalt. See cancel (1),
lp (1), and lpalt (1).
Change the priority
of print requests.
lpalt LJ-1829 -p3 This changes LJ-1829’s priority to 3. See
lpalt (1).
Display statistics
about LP spooler
activity.
lpana 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).
List request id
numbers.
lpstat -o See lpstat (1).