(PBS Queue Manager) PBS batch system manager.
Synopsis
qmgr [-a] [-c command] [-e] [-n] [-z] [server...]
Description
The qmgr command provides an administrator interface to query and configure batch system parameters (see Server parameters).
The command reads directives from standard input. The syntax of each directive is checked and the appropriate request is sent to the batch server or servers.
The list or print subcommands of qmgr can be executed by general users. Creating or deleting a queue requires PBS Manager privilege. Setting or unsetting server or queue attributes requires PBS Operator or Manager privilege.
By default, the user root is the only PBS Operator and Manager. To allow other users to be privileged, the server attributes operators and managers will need to be set (i.e., as root, issue 'qmgr -c 'set server managers += <USER1>@<HOST>'). See "TORQUE/PBS Integration Guide - RM Access Control" in the Moab Workload Manager Administrator's Guide.
If qmgr is invoked without the -c option and standard output is connected to a terminal, qmgr will write a prompt to standard output and read a directive from standard input.
Commands can be abbreviated to their minimum unambiguous form. A command is terminated by a new line character or a semicolon, ";", character. Multiple commands may be entered on a single line. A command may extend across lines by escaping the new line character with a back-slash "\".
Comments begin with the "#" character and continue to end of the line. Comments and blank lines are ignored by qmgr.
Options
Operands
The server operands identify the name of the batch server to which the administrator requests are sent. Each server conforms to the following syntax:
host_name[:port]
where host_name is the network name of the host on which the server is running and port is the port number to which to connect. If port is not specified, the default port number is used.
If server is not specified, the administrator requests are sent to the local server.
Standard input
The qmgr command reads standard input for directives until end of file is reached, or the exit or quit directive is read.
Standard output
If Standard Output is connected to a terminal, a command prompt will be written to standard output when qmgr is ready to read a directive.
If the -e option is specified, qmgr will echo the directives read from standard input to standard output.
Standard error
If the -z option is not specified, the qmgr command will write a diagnostic message to standard error for each error occurrence.
Directive syntax
A qmgr directive is one of the following forms:
command server [names] [attr OP value[,attr OP value,...]]
command queue [names] [attr OP value[,attr OP value,...]]
command node [names] [attr OP value[,attr OP value,...]]
where command is the command to perform on an object.
Commands are:
Command | Description |
---|---|
active | Sets the active objects. If the active objects are specified, and the name is not given in a qmgr cmd the active object names will be used. |
create | Is to create a new object, applies to queues and nodes. |
delete | Is to destroy an existing object, applies to queues and nodes. |
set | Is to define or alter attribute values of the object. |
unset |
Is to clear the value of attributes of the object. This form does not accept an OP and value, only the attribute name. |
list | Is to list the current attributes and associated values of the object. |
Is to print all the queue and server attributes in a format that will be usable as input to the qmgr command. | |
names |
Is a list of one or more names of specific objects The name list is in the form: [name][@server][,queue_name[@server]...] with no intervening white space. The name of an object is declared when the object is first created. If the name is @server, then all the objects of specified type at the server will be affected. |
attr |
Specifies the name of an attribute of the object which is to be set or modified. If the attribute is one which consist of a set of resources, then the attribute is specified in the form: attribute_name.resource_name |
OP |
Operation to be performed with the attribute and its value:
|
value | The value to assign to an attribute. If the value includes white space, commas or other special characters, such as the "#" character, the value string must be enclosed in quote marks ("). |
The following are examples of qmgr directives:
create queue fast priority=10,queue_type=e,enabled = true,max_running=0
set queue fast max_running +=2
create queue little
set queue little resources_max.mem=8mw,resources_max.cput=10
unset queue fast max_running
set node state = "down,offline"
active server s1,s2,s3
list queue @server1
set queue max_running = 10 - uses active queues
Exit status
Upon successful processing of all the operands presented to the qmgr command, the exit status will be a value of zero.
If the qmgr command fails to process any operand, the command exits with a value greater than zero.
Related topics
Non-Adaptive Computing topics