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 Printer Queues application in Web-based System Manager (wsm) to change printer characteristics.
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 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. |
Spooler Overview for System Management in the AIX 5L Version 5.2 Guide to Printers and Printing.
The enq command, qadm command, qcan command, qpri command, qprt command.
The /etc/qconfig file.
For information on installing the Web-based System Manager, see Chapter 2: Installation and System Requirements in AIX 5L Version 5.2 Web-based System Manager Administration Guide.
Checking Print Job Status (qchk Command) in the AIX 5L Version 5.2 Guide to Printers and Printing.