qstat [-f] job_identifier ...
qstat -Q [-f] destination ...
The status of a batch job, batch queue, or batch server is obtained by a request to the server. The qstat utility is a user-accessible batch client that requests the status of one or more batch jobs, batch queues, or servers, and writes the status information to standard output.
For each successfully processed batch job_identifier, the qstat utility shall display information about the corresponding batch job.
For each successfully processed destination, the qstat utility shall display information about the corresponding batch queue.
For each successfully processed server name, the qstat utility shall display information about the corresponding server.
The qstat utility shall acquire batch job status information by sending a Job Status Request to a batch server. The qstat utility shall acquire batch queue status information by sending a Queue Status Request to a batch server. The qstat utility shall acquire server status information by sending a Server Status Request to a batch server.
The qstat utility shall conform to the Base Definitions volume of IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported by the implementation:
The minimum contents of a full display are specified in the STDOUT section.
Additional contents and format of a full display are implementation-defined.
The qstat utility shall display information about each batch queue at each destination identified as an operand.
The qstat utility shall display information about each server identified as an operand.
If the -Q option is presented to the qstat utility, the utility shall accept one or more operands that conform to the syntax for a destination (see Destination ).
If the -B option is presented to the qstat utility, the utility shall accept one or more server_name operands.
If neither the -B nor the -Q option is presented to the qstat utility, the utility shall accept one or more operands that conform to the syntax for a batch job_identifier (see Batch Job Identifier ).
The following environment variables shall affect the execution of qstat:
Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements within regular expressions.
Determine the locale for selecting the radix character used when writing floating-point formatted output.
If an operand presented to the qstat utility is a batch job_identifier and the -f option is not specified, the qstat utility shall display the following items on a single line, in the stated order, with white space between each item, for each successfully processed operand:
If an operand presented to the qstat utility is a batch job_identifier and the -f option is specified, the qstat utility shall display the following items for each success fully processed operand:
If an operand presented to the qstat utility is a destination, the -Q option is specified, and the -f option is not specified, the qstat utility shall display the following items on a single line, in the stated order, with white space between each item, for each successfully processed operand:
If the operands presented to the qstat utility are destinations, the -Q option is specified, and the -f option is specified, the qstat utility shall display the following items for each successfully processed operand:
If the operands presented to the qstat utility are batch server names, the -B option is specified, and the -f option is not specified, the qstat utility shall display the following items on a single line, in the stated order, with white space between each item, for each successfully processed operand:
If the operands presented to the qstat utility are server names, the -B option is specified, and the -f option is specified, the qstat utility shall display the following items for each successfully processed operand:
The standard error shall be used only for diagnostic messages.
The following exit values shall be returned:
In addition to the default behavior, the qstat utility shall not be required to write a diagnostic message to standard error when the error reply received from a batch server indicates that the batch job_identifier does not exist on the server. Whether or not the qstat utility waits to output the diagnostic message while attempting to locate the batch job on other servers is implementation-defined.
The following sections are informative.
The qstat utility allows users to display the status of jobs and list the batch jobs in queues.
The operands of the qstat utility may be either job identifiers, queues (specified as destination identifiers), or batch server names. The -Q and -B options, or absence thereof, indicate the nature of the operands.
The other options of the qstat utility allow the user to control the amount of information displayed and the format in which it is displayed. Should a user wish to display the status of a set of jobs that match a selection criteria, the qselect utility may be used to acquire such a list.
The -f option allows users to request a "full" display in an implementation-defined format.
Historically, the qstat utility has been a part of the NQS and its derivatives, the existing practice on which it is based.
Batch Environment Services , qselect