Provides printer status for the print spooling system.
qstatus [ -# JobNumber ] [ -A ] [ -L | -W ] [ -P Printer ] [ -e ] [ -q ] [ -u UserName ] [ -w DelaySeconds ]
The qstatus command performs the actual status function for the print-spooling system. This command is never entered on the command line; it is called by the enq command. The qstatus command generates status information on specified jobs, printers, queues, or users.
The display generated by the qstatus command contains two entries for remote queues. The first entry contains the client's local queue and local device name and its status information. The second entry follows immediately; it contains the client's local queue name (again), followed by the remote queue name. Any jobs submitted to a remote queue are displayed first on the local side and are moved to the remote device as the job is processed on the remote machine.
Since the status commands communicate with remote machines, the status display may occasionally appear to hang while waiting for a response from the remote machine. The command will eventually time-out if a connection cannot be established between the two machines.
All flags are optional. If flags are not specified, the qstatus command returns the status of the following:
Note: Any destination command line options override both the LPDEST and the PRINTER environment variables.
|-# JobNumber||Displays current status information for the job specified by the
JobNumber variable. Normally, the status of all queued jobs
|-A||Displays status information on all queues defined in the /etc/qconfig file.|
|-e||Excludes status information from queues that are not under the control of the qdaemon command. The status from such queues may appear in different formats. The -e flag can be used with any combination of flags.|
|-L||Displays a long, detailed version of status information as requested on the command line. 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||Displays current status information for the printer specified by the Printer variable. Normally, the default printer is used, or the value of either the LPDEST or PRINTER environment variable is used. The LPDEST variable always takes precedence over the PRINTER variable.|
|-q||Displays the current status of the default queue. The default queue is specified by the LPDEST variable, or if a LPDEST value does not exist, by the PRINTER environment variable. If neither variable exists, the qstatus command uses the first queue listed in the /etc/qconfig file.|
|-u UserName||Displays current status information for all jobs submitted by the user specified by the UserName variable. Normally, the status of all queued jobs is displayed.|
|-W||Displays a wide version of status information with longer queue names, device names, and job numbers. Longer 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 DelaySeconds||Displays requested queue information at intervals specified by the DelaySeconds variable. When the queue is empty, the display ends.|
|/var/spool/lpd/qdir/*||Contains the job description files.|
|/etc/qconfig||Contains the configuration file.|
|/etc/qconfig.bin||Contains the digested, binary version of the /etc/qconfig file.|
|Contains the remote back end.|
|/usr/lib/lpd/qstatus||Contains the command file.|
|/var/spool/lpd/stat/*||Contains the status files for the qstatus command.|
The enq command, lpd command, lpr command, qdaemon command, qchk command, rembak command.
The /etc/qconfig file.
Spooler Overview for System Management in the AIX 5L Version 5.1 Guide to Printers and Printing.
Remote Printing Overview in the AIX 5L Version 5.1 Guide to Printers and Printing.