1QSTAT(1P)                  POSIX Programmer's Manual                 QSTAT(1P)
2
3
4

PROLOG

6       This  manual  page is part of the POSIX Programmer's Manual.  The Linux
7       implementation of this interface may differ (consult the  corresponding
8       Linux  manual page for details of Linux behavior), or the interface may
9       not be implemented on Linux.
10

NAME

12       qstat - show status of batch jobs
13

SYNOPSIS

15       qstat [-f] job_identifier ...
16
17       qstat -Q [-f] destination ...
18
19       qstat -B [-f] server_name ...
20
21

DESCRIPTION

23       The status of a batch job, batch queue, or batch server is obtained  by
24       a  request  to the server. The qstat utility is a user-accessible batch
25       client that requests the status  of  one  or  more  batch  jobs,  batch
26       queues,  or servers, and writes the status information to standard out‐
27       put.
28
29       For each successfully processed batch job_identifier, the qstat utility
30       shall display information about the corresponding batch job.
31
32       For  each  successfully  processed destination, the qstat utility shall
33       display information about the corresponding batch queue.
34
35       For each successfully processed server name, the  qstat  utility  shall
36       display information about the corresponding server.
37
38       The qstat utility shall acquire batch job status information by sending
39       a Job Status Request to  a  batch  server.   The  qstat  utility  shall
40       acquire  batch  queue  status  information  by  sending  a Queue Status
41       Request to a batch server.  The qstat utility shall acquire server sta‐
42       tus information by sending a Server Status Request to a batch server.
43

OPTIONS

45       The  qstat  utility  shall  conform  to  the Base Definitions volume of
46       IEEE Std 1003.1-2001, Section 12.2, Utility Syntax Guidelines.
47
48       The following options shall be supported by the implementation:
49
50       -f     Specify that a full display is produced.
51
52       The minimum contents of a full display are specified in the STDOUT sec‐
53       tion.
54
55       Additional  contents  and  format of a full display are implementation-
56       defined.
57
58       -Q     Specify that the operand is a destination.
59
60       The qstat utility shall display information about each batch  queue  at
61       each destination identified as an operand.
62
63       -B     Specify that the operand is a server name.
64
65       The  qstat  utility shall display information about each server identi‐
66       fied as an operand.
67
68

OPERANDS

70       If the -Q option is presented to the qstat utility, the  utility  shall
71       accept  one  or more operands that conform to the syntax for a destina‐
72       tion (see Destination ).
73
74       If the -B option is presented to the qstat utility, the  utility  shall
75       accept one or more server_name operands.
76
77       If  neither the -B nor the -Q option is presented to the qstat utility,
78       the utility shall accept one or more operands that conform to the  syn‐
79       tax for a batch job_identifier (see Batch Job Identifier ).
80

STDIN

82       Not used.
83

INPUT FILES

85       None.
86

ENVIRONMENT VARIABLES

88       The  following  environment  variables  shall  affect  the execution of
89       qstat:
90
91       HOME   Determine the pathname of the user's home directory.
92
93       LANG   Provide a default value for the  internationalization  variables
94              that  are  unset  or  null.  (See the Base Definitions volume of
95              IEEE Std 1003.1-2001, Section  8.2,  Internationalization  Vari‐
96              ables  for the precedence of internationalization variables used
97              to determine the values of locale categories.)
98
99       LC_ALL If set to a non-empty string value, override the values  of  all
100              the other internationalization variables.
101
102       LC_COLLATE
103
104              Determine  the  locale  for  the behavior of ranges, equivalence
105              classes, and multi-character collating elements  within  regular
106              expressions.
107
108       LC_CTYPE
109              Determine  the  locale  for  the  interpretation of sequences of
110              bytes of text data as characters (for  example,  single-byte  as
111              opposed to multi-byte characters in arguments).
112
113       LC_MESSAGES
114              Determine  the  locale  that should be used to affect the format
115              and contents of diagnostic messages written to standard error.
116
117       LC_NUMERIC
118
119              Determine the locale for selecting the radix character used when
120              writing floating-point formatted output.
121
122

ASYNCHRONOUS EVENTS

124       Default.
125

STDOUT

127       If  an operand presented to the qstat utility is a batch job_identifier
128       and the -f option is not specified, the qstat utility shall display the
129       following items on a single line, in the stated order, with white space
130       between each item, for each successfully processed operand:
131
132        * The batch job_identifier
133
134        * The batch job name
135
136        * The Job_Owner attribute
137
138        * The CPU time used by the batch job
139
140        * The batch job state
141
142        * The batch job location
143
144       If an operand presented to the qstat utility is a batch  job_identifier
145       and  the  -f  option  is specified, the qstat utility shall display the
146       following items for each success fully processed operand:
147
148        * The batch job_identifier
149
150        * The batch job name
151
152        * The Job_Owner attribute
153
154        * The execution user ID
155
156        * The CPU time used by the batch job
157
158        * The batch job state
159
160        * The batch job location
161
162        * Additional implementation-defined information,  if  any,  about  the
163          batch job or batch queue
164
165       If  an  operand presented to the qstat utility is a destination, the -Q
166       option is specified, and the -f option  is  not  specified,  the  qstat
167       utility  shall  display  the  following  items on a single line, in the
168       stated order, with white space between each item, for each successfully
169       processed operand:
170
171        * The batch queue name
172
173        * The  maximum  number  of  batch  jobs that shall be run in the batch
174          queue concurrently
175
176        * The total number of batch jobs in the batch queue
177
178        * The status of the batch queue
179
180        * For each state, the number of batch jobs in that state in the  batch
181          queue and the name of the state
182
183        * The type of batch queue (execution or routing)
184
185       If the operands presented to the qstat utility are destinations, the -Q
186       option is specified, and the -f option is specified, the qstat  utility
187       shall display the following items for each successfully processed oper‐
188       and:
189
190        * The batch queue name
191
192        * The maximum number of batch jobs that shall  be  run  in  the  batch
193          queue concurrently
194
195        * The total number of batch jobs in the batch queue
196
197        * The status of the batch queue
198
199        * For  each state, the number of batch jobs in that state in the batch
200          queue and the name of the state
201
202        * The type of batch queue (execution or routing)
203
204        * Additional implementation-defined information,  if  any,  about  the
205          batch queue
206
207       If  the operands presented to the qstat utility are batch server names,
208       the -B option is specified, and the -f option  is  not  specified,  the
209       qstat  utility  shall  display the following items on a single line, in
210       the stated order, with white space between each item, for each success‐
211       fully processed operand:
212
213        * The batch server name
214
215        * The  maximum  number  of  batch  jobs that shall be run in the batch
216          queue concurrently
217
218        * The total number of batch jobs managed by the batch server
219
220        * The status of the batch server
221
222        * For each state, the number of batch jobs in that state and the  name
223          of the state
224
225       If the operands presented to the qstat utility are server names, the -B
226       option is specified, and the -f option is specified, the qstat  utility
227       shall display the following items for each successfully processed oper‐
228       and:
229
230        * The server name
231
232        * The maximum number of batch jobs that shall  be  run  in  the  batch
233          queue concurrently
234
235        * The total number of batch jobs managed by the server
236
237        * The status of the server
238
239        * For  each state, the number of batch jobs in that state and the name
240          of the state
241
242        * Additional implementation-defined information,  if  any,  about  the
243          server
244

STDERR

246       The standard error shall be used only for diagnostic messages.
247

OUTPUT FILES

249       None.
250

EXTENDED DESCRIPTION

252       None.
253

EXIT STATUS

255       The following exit values shall be returned:
256
257        0     Successful completion.
258
259       >0     An error occurred.
260
261

CONSEQUENCES OF ERRORS

263       In  addition  to  the  default behavior, the qstat utility shall not be
264       required to write a diagnostic message to standard error when the error
265       reply received from a batch server indicates that the batch job_identi‐
266       fier does not exist on the server. Whether or  not  the  qstat  utility
267       waits  to  output the diagnostic message while attempting to locate the
268       batch job on other servers is implementation-defined.
269
270       The following sections are informative.
271

APPLICATION USAGE

273       None.
274

EXAMPLES

276       None.
277

RATIONALE

279       The qstat utility allows users to display the status of jobs  and  list
280       the batch jobs in queues.
281
282       The operands of the qstat utility may be either job identifiers, queues
283       (specified as destination identifiers), or batch server names.  The  -Q
284       and  -B  options,  or absence thereof, indicate the nature of the oper‐
285       ands.
286
287       The other options of the qstat utility allow the user  to  control  the
288       amount  of  information  displayed  and  the format in which it is dis‐
289       played. Should a user wish to display the status of a set of jobs  that
290       match  a selection criteria, the qselect utility may be used to acquire
291       such a list.
292
293       The -f option allows users to request a "full" display in an  implemen‐
294       tation-defined format.
295
296       Historically,  the qstat utility has been a part of the NQS and its de‐
297       rivatives, the existing practice on which it is based.
298

FUTURE DIRECTIONS

300       None.
301

SEE ALSO

303       Batch Environment Services, qselect
304
306       Portions of this text are reprinted and reproduced in  electronic  form
307       from IEEE Std 1003.1, 2003 Edition, Standard for Information Technology
308       -- Portable Operating System Interface (POSIX),  The  Open  Group  Base
309       Specifications  Issue  6,  Copyright  (C) 2001-2003 by the Institute of
310       Electrical and Electronics Engineers, Inc and The Open  Group.  In  the
311       event of any discrepancy between this version and the original IEEE and
312       The Open Group Standard, the original IEEE and The Open Group  Standard
313       is  the  referee document. The original Standard can be obtained online
314       at http://www.opengroup.org/unix/online.html .
315
316
317
318IEEE/The Open Group                  2003                            QSTAT(1P)
Impressum