qmgr(1B)
π qmgr(1B) β the PBS batch system manager, but make it make sense π
Okay so bestie, welcome to qmgr β the admin interface for the PBS batch system. This is from the PBS manual, section 1B, and it's literally your control room for queues, servers, and nodes. Think of it as the group chat where you tell the batch system what to do, and it actually listens (mostly). β¨
πΈ SYNOPSIS πΈ
qmgr [-a] [-c command] [-e] [-n] [-z] [server...]
π¦ DESCRIPTION π¦
So qmgr is the command that gives you an administrator interface to the batch system. It reads directives from standard input, checks the syntax of each one, and then sends the appropriate request to the batch server or servers. It's giving main character energy for sysadmins, fr fr. π
Here's the tea on who can do what:
- The
listorprintsubcommands ofqmgrcan be executed by general users β yes, even the non-admins can peek. π - Creating or deleting a queue requires PBS Manager privilege.
- Setting or unsetting server or queue attributes requires PBS Operator or Manager privilege.
No cap: if you don't have the right privilege, the server will reject your request. Don't say I didn't warn you. π
β¨ OPTIONS β¨
-aβ Abortqmgron any syntax errors or any requests rejected by a server. Like, it just stops. No second chances. π€-ccommand β Execute a single command and exitqmgr. One and done, periodt.-eβ Echo all commands to standard output. So you can see exactly what you typed. Very demure, very mindful. π-nβ No commands are executed, syntax checking only is performed. It's the "look but don't touch" option. π-zβ No errors are written to standard error. Quiet mode activated. Shhh. π€«
π OPERANDS π
The server operands identify the name of the batch server to which the administrator requests are sent. Each server conforms to this 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. Easy peasy. π
If server is not specified, the administrator requests are sent to the local server. So if you're lazy (same), it just goes local by default. π«Ά
π STANDARD INPUT π
The qmgr command reads standard input for directives until end of file is reached, or the exit or quit directive is read. So you can keep typing commands until you're literally done. No judgment. π
π 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. It's like a lil "hey bestie, I'm ready" vibe. β¨
If the -e option is specified, qmgr will echo the directives read from standard input to standard output. So you get receipts. π§Ύ
π STANDARD ERROR π
If the -z option is not specified, the qmgr command will write a diagnostic message to standard error for each error occurrence. So errors are loud by default β unless you use -z to silence them. π
π₯ EXTENDED DESCRIPTION π₯
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. It's interactive, iconic, and lowkey fun. π
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 \. So you can go wild with formatting β just don't forget the backslash. π
Comments begin with the # character and continue to end of the line. Comments and blank lines are ignored by qmgr. So you can leave lil notes for yourself. We love self-care. πΈ
π§ 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:activeβ sets the active objects. If the active objects are specified, and the name is not given in aqmgrcmd, the active object names will be used. It's like setting your status to "busy" and everyone knows. π±createβ is to create a new object, applies to queues and nodes. New object, who dis? πdeleteβ is to destroy an existing object, applies to queues and nodes. Gone. Reduced to atoms. πsetβ is to define or alter attribute values of the object. Glow-up time. β¨unsetβ is to clear the value of attributes of the object. Note: this form does not accept anOPand value, only the attribute name. So don't come for me with extra arguments. π ββοΈlistβ is to list the current attributes and associated values of the object. The "show me what you got" command. πprintβ is to print all the queue and server attributes in a format that will be usable as input to theqmgrcommand. It's giving copy-paste energy. π§Ύ
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 effected. So @server is the "everyone in the group chat" move. π’
attrβ specifies the name of an attribute of the object which is to be set or modified. If the attribute is one which consists 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:=β set the value of the attribute. If the attribute has an existing value, the current value is replaced with the new value. Full replacement, no survivors. π+=β increase the current value of the attribute by the amount in the new value. Math but make it admin. β-=β decrease the current value of the attribute by the amount in the new value. Subtraction slay. β
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 inclosed in quote marks ("). So if you're trying to be fancy with spaces, quote it or it will break. You've been warned. β οΈ
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
These are literally in the manual, so copy them exactly if you're testing. No cap. π§ͺ
π EXIT STATUS π
Upon successful processing of all the operands presented to the qmgr command, the exit status will be a value of zero. You ate that. π
If the qmgr command fails to process any operand, the command exits with a value greater than zero. So if things go sideways, you'll know. π
π«Ά SEE ALSO π«Ά
pbs_server(8B)pbs_queue_attributes(7B)pbs_server_attributes(7B)qstart(8B)qstop(8B)qenable(8B)qdisable(8)pbs_resources(7B)- and the PBS External Reference Specification
Go read those if you want the full lore. iykyk. π
And that's the whole vibe, bestie. This page is from the Local manual set and it's dated like the classic PBS docs β so if you're ever lost, just remember: qmgr is your admin bestie, and it's literally always there for you. Stay slaying, stay syntax-checking, and don't forget to quote your values. πβ¨π
π¦ where this page comes from
- epel 9: torque-client 6.1.3-8.el9 Β· OpenPBS and TORQUEv1.1
- nixos 26.05: torque 6.1.3h2
- nixpkgs unstable: torque 6.1.3h2
- Copyright (c) 1999-2000 Veridian Information Solutions, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms