Displays the status of a print queue.
qchk [ -A ] [ -L | -W ] [ -P Printer ] [ -# JobNumber ] [ -q ] [ -u UserName ] [ -w Delay ]
The qchk command displays the current status information regarding specified print jobs, print queues, or users. Use the appropriate flag followed by the requested name or number to indicate specific status information. If you run the qchk command with no flags, the status of the default queue is returned.
You can use the Web-based System Manager Printer Queues application (wsm printers fast path) to run this command. You could also use the System Management Interface Tool (SMIT) smit qchk fast path to run this command.
-A | Requests the status of all queues. |
-L | Specifies information be displayed in long-form mode. This flag cannot be used with the -W flag. If the -L flag and the -W flag are used simultaneously, the first one specified takes precedence. |
-W | Specifies information be displayed in wide-form mode with longer queue and device names. This flag cannot be used with the -L flag. If the -L flag and the -W flag are used simultaneously, the first one specified takes precedence. This flag only applies to AIX Version 4.2.1 or later. |
-P Printer | Requests the status of the printer specified by the Printer variable. |
-q | Requests the status of the default print queue. |
-u UserName | Requests the status of all print jobs sent by the user specified by the UserName variable. |
-w Delay | Updates requested status information at intervals, in seconds, as specified by the Delay variable until all print jobs are finished. |
qchk -q
qchk -A -L -w 5
qchk -P lp0
qchk -# 123
qchk -A -P lp0
qchk -W -q
Spooler Overview for System Management in the AIX Version 4.3 Guide to Printers and Printing.
The enq command, qadm command, qcan command, qpri command, qprt command.
The /etc/qconfig file.
Setting up and running Web-based System Management in AIX Version 4.3 System Management Guide: Operating System and Devices.
Checking Print Job Status (qchk Command) in the AIX Version 4.3 Guide to Printers and Printing.