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.
Item | Description |
---|---|
-# 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 | Displays information in a long-form mode. If the -L and -W flags are used simultaneously, the-L flag displays status of the print job in a semicolon-separated format. |
-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 | Displays information in a wide-form mode with longer queue names, device names, and job numbers. Larger job number information is supported on AIX® 4.3.2 and later. If the -W and -L flags are used simultaneously, the -W flag displays the status of the print job in a semicolon-separated format. |
-w Delay | Updates requested status information at intervals, in seconds, as specified by the Delay variable until all print jobs are finished. |
Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.
qchk -q
qchk -P lp0
qchk -# 123
Item | Description |
---|---|
/usr/sbin/qdaemon | Contains the qdaemon daemon. |
/var/spool/lpd/qdir/* | Contains the job description files. |
/var/spool/lpd/stat/* | Contains information on the status of the devices. |
/var/spool/qdaemon/* | Contains the temporary copies of enqueued files. |
/etc/qconfig | Contains the configuration file. |
/etc/qconfig.bin | Contains the digested, binary version of the /etc/qconfig file. |