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.
| 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.
|Requests the status of all queues.
|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.
|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.
|Requests the status of the printer specified by the Printer variable.
|Requests the status of the default print queue.
|Requests the status of all print jobs sent by the user specified by the UserName variable.
|Updates requested status information at intervals, in seconds, as specified by the Delay variable until all print jobs are finished.
qchk -A -L -w 5
qchk -P lp0
qchk -# 123
qchk -A -P lp0
qchk -W -q
|Contains the qdaemon daemon.
|Contains the job description files.
|Contains information on the status of the devices.
|Contains the temporary copies of enqueued files.
|Contains the configuration file.
|Contains the digested, binary version of the /etc/qconfig file.
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.