qstat [-a|-i|-r] [-n] [-s] [-G|-M] [-R] [-u user_list] [job_identifier... | destination...]
qstat -Q [-f][-W site_specific] [destination...]
qstat -q [-G|-M] [destination...]
qstat -B [-f][-W site_specific] [server_name...]
When requesting job status, synopsis format 1 or 2, qstat will output information about each or all jobs at each Jobs for which the user does not have status privilege are not displayed.
When requesting queue or server status, synopsis format 3 through 5, qstat will output information about each
If the operand is a job identifier, it must be in the following form:
where is the job identifier assigned at submittal time, see qsub. If the is omitted, the name of the default server will be used. If is supplied, the request will be for the job identifier currently at that Server.
If the operand is a destination identifier, it is one of the following three forms:
If is specified, the request is for status of all jobs in that queue at the default server. If the form is given, the request is for status of all jobs at that server. If a full destination identifier, is given, the request is for status of all jobs in the named queue at the named server.
If the option is given, the operands are destination identifiers as specified above. If is specified, the status of that queue at the default server will be given. If is specified, the status of the named queue at the named server will be given. If is specified, the status of all queues at the named server will be given. If no destination is specified, the status of all queues at the default server will be given.
If the option is given, the operand is the name of a server.
If job status is being displayed in the default format and the option is not specified, the following items are displayed on a single line, in the specified order, separated by white space:
- -
- the job identifier assigned by PBS.
- -
- the job name given by the submitter.
- -
- the job owner
- -
- the CPU time used
- -
- the job state:
E - Job is exiting after having run.
H - Job is held.
Q - job is queued, eligable to run or routed.
R - job is running.
T - job is being moved to new location.
W - job is waiting for its execution time
(-a option) to be reached.
S - (Unicos only) job is suspend.
If job status is being displayed and the option
is specified, the output will depend on whether qstat was compiled to
use a Tcl interpreter. See the configuration section for details. If Tcl
is not being used, full display for each job consists of the header line:
job identifier
Followed by one line per job attribute of the form:
If any of the options -a, -i, -r, -u, -n, -s, -G or -M are provided, the alternative display format for jobs is used. The following items are displayed on a single line, in the specified order, separated by white space:
If the -R option is provied, the line contains:
- -
- the job identifier assigned by PBS.
- -
- the job owner.
- -
- The queue in which the job currently resides.
- -
- The job name given by the submitter.
- -
- The session id (if the job is running).
- -
- The number of nodes requested by the job.
- -
- The number of cpus or tasks requested by the job.
- -
- The amount of memory requested by the job.
- -
- Either the cpu time, if specified, or wall time requested by the job, (hh:mm).
- -
- The job's current state.
- -
- The amount of cpu time or wall time used by the job (hh:mm).
The last three fields may not contain useful information at all sites or on all systems.
- -
- the job identifier assigned by PBS.
- -
- the job owner.
- -
- The queue in which the job currently resides.
- -
- The number of nodes requested by the job.
- -
- The number of cpus or tasks requested by the job.
- -
- The amount of memory requested by the job.
- -
- Either the cpu time or wall time requested by the job.
- -
- The job's current state.
- -
- The amount of cpu time or wall time used by the job.
- -
- The amount of SRFS space requested on the big file sysstem.
- -
- The amount of SRFS space requested on the fast file sysstem.
- -
- The amount of space requested on the parallel I/O file system.
Displaying Queue Status
If queue status is being displayed and the option was not specified, the following items are displayed on a single line, in the specified order, separated by white space:
- -
- the queue name
- -
- the maximum number of jobs that may be run in the queue concurrently
- -
- the total number of jobs in the queue
- -
- the enable or disabled status of the queue
- -
- the started or stopped status of the queue
- -
- for each job state, the name of the state and the number of jobs in the queue in that state.
- -
- the type of queue, execution or routing.
If queue status is being displayed and
the option is specified, the output will depend on whether qstat was
compiled to use a Tcl interpreter. See the configuration section for details.
If Tcl is not being used, the full display for each queue consists of
the header line:
queue_name
Followed by one line per queue attribute
of the form:
If the -q option is specified, queue information is displayed in the alternative format: The following information is displayed on a single line:
- -
- the queue name
- -
- the maximum amount of memory a job in the queue may request
- -
- the maximum amount of cpu time a job in the queue may request
- -
- the maximum amount of wall time a job in the queue may request
- -
- the maximum amount of nodes a job in the queue may request
- -
- the number of jobs in the queue in the running state
- -
- the number of jobs in the queue in the queued state
- -
- the maximum number (limit) of jobs that may be run in the queue concurrently
- -
- the state of the queue given by a pair of letters:
- either the letter E if the queue is Enabled or D if Disabled, and
- either the letter R if the queue is Running (started) or S if Stopped.
Displaying Server Status
If batch server status is being displayed and the option is not specified, the following items are displayed on a single line, in the specified order, separated by white space:
the name of the state and the number of jobs in the server in that state
- -
- the server name
- -
- the maximum number of jobs that the server may run concurrently
- -
- the total number of jobs currently managed by the server
- -
- the status of the server
- -
- for each job state,
If server status is being displayed and the
option is specified, the output will depend on whether qstat was compiled
to use a Tcl interpreter. See the configuration section for details. If
Tcl is not being used, the full display for the server consist of the
header line:
server name
Followed by one line per server attribute
of the form:
the flags list would contain
The operands list contains all other command line arguments following the flags. There will always be at least one element in operands because if no operands are typed by the user, the default destination or server name is used. The objects list contains all the information retrieved from the server(s) so the Tcl interpreter can run once to format the entire output. This list has the same number of elements as the operands list. Each element is another list with two elements. The first element is a string giving the type of objects to be found in the second. The string can take the values "server", "queue", "job" or "error". The second element will be a list in which each element is a single batch status object of the type given by the string discussed above. In the case of "error", the list will be empty. Each object is again a list. The first element is the name of the object. The second is a list of attributes. The third element will be the object text. All three of these object elements corespond with fields in the structure which is described in detail for each type of object by the man pages for pbs_statjob(3) , pbs_statque(3) , and pbs_statserver(3) . Each attribute in the second element list whose elements correspond with the structure. Each will be a list with two elements. The first will be the attribute name and the second will be the attribute value.
If the qstat command fails to process any operand, the command exits with a value greater than zero.