QSTAT(1P)
π qstat β bestie's guide to the POSIX Programmer's Manual π
okay so real talk, this page is part of the POSIX Programmer's Manual, and there's a lil heads-up you need to know before we dive in: the Linux implementation of this interface may differ (so go peek at the corresponding Linux manual page for the actual Linux behavior, fr), or honestly the interface may not even be implemented on Linux at all. π
β¨ PROLOG β¨
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
πΈ NAME πΈ
qstat β show status of batch jobs. that's it, that's the girl. π
π SYNOPSIS π
qstat [-f] job_identifier...
qstat -Q [-f] destination...
qstat -B [-f] server_name...
π¦ DESCRIPTION π¦
So the status of a batch job, batch queue, or batch server? You get it by making 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. iconic behavior honestly.
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.
Now here's the tea on how it actually talks to stuff: 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. And the qstat utility shall acquire server status information by sending a Server Status Request to a batch server. three requests, three vibes, all sending. β¨
π OPTIONS π
The qstat utility shall conform to the Base Definitions volume of POSIX.1β2017, Section 12.2, Utility Syntax Guidelines.
The following options shall be supported by the implementation:
-fβ Specify that a full display is produced.
The minimum contents of a full display are specified in the STDOUT section.
Additional contents and format of a full display are implementation-defined. (iykyk β your implementation decides the extras, bestie.)
-Qβ Specify that the operand is a destination.
The qstat utility shall display information about each batch queue at each destination identified as an operand.
-Bβ Specify that the operand is a server name.
The qstat utility shall display information about each server identified as an operand.
π OPERANDS π
- If the
-Qoption is presented to theqstatutility, the utility shall accept one or more operands that conform to the syntax for a destination (see Section 3.3.2, Destination). - If the
-Boption is presented to theqstatutility, the utility shall accept one or more server_name operands. - If neither the
-Bnor the-Qoption is presented to theqstatutility, the utility shall accept one or more operands that conform to the syntax for a batch job_identifier (see Section 3.3.1, Batch Job Identifier).
β STDIN β
Not used. she doesn't read your DMs. π
π INPUT FILES π
None.
π§ ENVIRONMENT VARIABLES π§
The following environment variables shall affect the execution of qstat:
HOMEβ Determine the pathname of the user's home directory.LANGβ Provide a default value for the internationalization variables that are unset or null. (See the Base Definitions volume of POSIX.1β2017, Section 8.2, Internationalization Variables the precedence of internationalization variables used to determine the values of locale categories.)LC_ALLβ If set to a non-empty string value, override the values of all the other internationalization variables. she's the main character, she overrides everybody. πLC_COLLATEβ Determine the locale for the behavior of ranges, equivalence classes, and multi-character collating elements within regular expressions.LC_CTYPEβ Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single-byte as opposed to multi-byte characters in arguments).LC_MESSAGESβ Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.LC_NUMERICβ Determine the locale for selecting the radix character used when writing floating-point formatted output.
π ASYNCHRONOUS EVENTS π
Default. no drama here, we love a chill section. π«Ά
β¨ STDOUT β¨
okay this is the big one, get comfy. ποΈ
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:
- The batch job_identifier
- The batch job name
- The
Job_Ownerattribute - The CPU time used by the batch job
- The batch job state
- The batch job location
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:
- The batch job_identifier
- The batch job name
- The
Job_Ownerattribute - The execution user ID
- The CPU time used by the batch job
- The batch job state
- The batch job location
- Additional implementation-defined information, if any, about the batch job or batch queue
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:
- The batch queue name
- The maximum number of batch jobs that shall be run in the batch queue concurrently
- The total number of batch jobs in the batch queue
- The status of the batch queue
- For each state, the number of batch jobs in that state in the batch queue and the name of the state
- The type of batch queue (execution or routing)
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:
- The batch queue name
- The maximum number of batch jobs that shall be run in the batch queue concurrently
- The total number of batch jobs in the batch queue
- The status of the batch queue
- For each state, the number of batch jobs in that state in the batch queue and the name of the state
- The type of batch queue (execution or routing)
- Additional implementation-defined information, if any, about the batch queue
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:
- The batch server name
- The maximum number of batch jobs that shall be run in the batch queue concurrently
- The total number of batch jobs managed by the batch server
- The status of the batch server
- For each state, the number of batch jobs in that state and the name of the state
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 server name
- The maximum number of batch jobs that shall be run in the batch queue concurrently
- The total number of batch jobs managed by the server
- The status of the server
- For each state, the number of batch jobs in that state and the name of the state
- Additional implementation-defined information, if any, about the server
π₯ STDERR π₯
The standard error shall be used only for diagnostic messages. that's its whole job, and she does it well.
πΈ OUTPUT FILES πΈ
None.
π¦ EXTENDED DESCRIPTION π¦
None. nothing to see here, moving on. π
π EXIT STATUS π
The following exit values shall be returned:
0β Successful completion. ate. π₯>0β An error occurred. π
π CONSEQUENCES OF ERRORS π
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.
π APPLICATION USAGE π
None.
π EXAMPLES π
None.
π§ RATIONALE π§
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. vintage queen. π
β FUTURE DIRECTIONS β
The qstat utility may be removed in a future version. bestie noooo π
π SEE ALSO π
- Chapter 3, Batch Environment Services,
qselect - The Base Definitions volume of POSIX.1β2017, Chapter 8, Environment Variables, Section 12.2, Utility Syntax Guidelines
π COPYRIGHT π
Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group. In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .
Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .
okay that's the whole page bestie, tysm for reading, mwah π
this lil masterpiece was brought to you by IEEE/The Open Group, dated 2017, and it's the QSTAT(1P) page β go forth and check your batch job status, you got this. π«Άβ¨
π¦ where this page comes from
- alpine 3.22: man-pages-posix 2017a-r0 Β· custom
- alpine 3.23: man-pages-posix 2017a-r0 Β· custom
- alpine 3.24: man-pages-posix 2017a-r0 Β· custom
- arch rolling: man-pages 6.19-1
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages-posix 2017a
- opensuse-leap 16.0: man-pages-posix 2017a-160000.4.1 Β· SUSE-IEEE
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms