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.
-# JobNumber | Requests the status of the job number specified by the JobNumber variable. The qchk command looks for JobNumber on the default queue when the -#JobNumber flag is used alone. To search for JobNumber on all queues -# flag must be used with the -A flag. The -# flag may also be used in conjunction with the -P Queue flag.
Notes: |
-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. |
-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 | Specifies information be displayed in wide-form mode with longer queue names, device names, and job numbers. Larger job number information is available on AIX Version 4.3.2 and later. 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. |
-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.