14.3. Controlling the print queue
This section examines some of the commands that you would use with the print queue.
The lpstat command displays information about the current status of the line printer.
The lpstat command syntax is as follows:
lpstat [ -aList ] [ -cList ] [ -d ] [ -oList ] [ -pList ] [ -r ] [ -s ] [ -t ] [ -uList ] [ -vList ] [ -W ]
An example of the lpstat command, without any flags, is as follows:
# lpstat Queue Dev Status Job Files User PP% Blks Cp Rnk ------ ---- ------- --- ---------------- ------------ --- ---- -- --- lpforu lp0 READY
The qchk command displays the current status information regarding specified print jobs, print queues, or users.
The qchk command syntax is as follows:
qchk [ -A ] [ -L | -W ] [ -P Printer ...
Get IBM eServer Certification Study Guide - pSeries AIX System Administration now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.