pbs_manager(3B)
π NAME π
okay bestie, welcome to pbs_manager(3B) from PBS Professional β this one is all about modifying a PBS batch object. π«Ά
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_manager(int connect, int command, int object_type,
char *object_name, struct attropl *attrib_list,
char *extend)
πΈ DESCRIPTION πΈ
So pbs_manager issues a batch request to perform administrative functions at a server. It generates a Manager (9) batch request and sends it to the server over the connection specified by connect. β¨
You can use this to create, delete, and set attributes of objects such as queues. Itβs giving admin main character energy, fr fr. π
π REQUIRED PRIVILEGE π
This function requires Manager or Operator privilege depending on the operation, and root privilege when used with hooks.
When not used with hooks:
- Functions
MGR_CMD_CREATEandMGR_CMD_DELETErequire PBS Manager privilege. - Functions
MGR_CMD_SETandMGR_CMD_UNSETrequire PBS Manager or Operator privilege.
When used with hooks:
- All commands require root privilege on the server host.
- Functions
MGR_CMD_IMPORT,MGR_CMD_EXPORT, andMGR_OBJ_HOOKare used only with hooks, and therefore require root privilege on the server host. - Hook commands are run at the server host.
π¦ ARGUMENTS π¦
connectβ Return value ofpbs_connect(). Specifies the connection over which to send the batch request to the server.commandβ Operation to be performed. Valid values are specified inpbs_ifl.h.object_typeβ Specifies the type of object on which the command is to operate. Valid values are specified inpbs_ifl.h.object_nameβ Name of the object on which to operate.attrib_listβ Pointer to a list of attributes to be operated on. Each attribute is described in anattroplstructure, defined inpbs_ifl .has:
struct attropl {
struct attropl *next;
char *name;
char *resource;
char *value;
enum batch_op op;
};
extendβ Character string for extensions to the command. Not currently used.
π§ Members of attropl Structure π§
nextβ Points to the next attribute in the list. A null pointer terminates the list.nameβ Points to a string containing the name of the attribute.resourceβ Points to a string containing the name of a resource. Used only when the specified attribute contains resource information. Otherwise,resourceshould be a null pointer.
If the resource is already present in the objectβs attribute, the value is altered as specified. Otherwise the resource is added.
valueβ Points to a string containing the new value of the attribute or resource. For parameterized limit attributes, this string contains all parameters for the attribute.opβ Defines the manner in which the new value is assigned to the attribute or resource. The operators used for this function areSET,UNSET,INCR,DECR.
π USAGE FOR HOOKS π
Hook girlies, this part is for you π
π When importing a hook or hook configuration file π
- Set
commandtoMGR_CMD_IMPORT. - Set
object_typetoSITE_HOOK(orPBS_HOOKif you are importing a configuration file for a built-in hook; you cannot import a built-in hook). - Set
object_nameto the name of the hook. - In one
attroplstructure:- Set
nameto"content-type". - Set
valueto"application/x-python"for a hook, or"application/x-config"for a configuration file.
- Set
- In another
attroplstructure:- Set
nameto"content-encoding". - Set
valueto"default"or"base64".
- Set
- In a third
attroplstructure:- Set
nameto"input-file". - Set
valueto the name of the input file.
- Set
- Set
optoSET.
π When exporting a hook or hook configuration file π
- Set
commandtoMGR_CMD_EXPORT. - Set
object_typetoSITE_HOOK(orPBS_HOOKif you are exporting a configuration file for a built-in hook; you cannot export a built-in hook). - Set
object_nameto the name of the hook. - In one
attroplstructure:- Set
nametocontent-type. - Set
valueto"application/x-python"for a hook, or"application/x-config"for a configuration file.
- Set
- In another
attroplstructure:- Set
nameto"content-encoding". - Set
valueto"default"or"base64".
- Set
- In another
attroplstructure:- Set
nameto"output-file". - Set
valueto"default"or"base64".
- Set
- In a third
attroplstructure:- Set
nameto"output-file". - Set
valueto the name of the output file.
- Set
- Set
optoSET.
yes bestie, the page really lists output-file in those two separate blocks β Iβm preserving it exactly, no edits to the lore π
π₯ RETURN VALUE π₯
The routine returns 0 (zero) on success. β¨
If an error occurred, the routine returns a non-zero exit value, and the error number is available in the global integer pbs_errno.
β SEE ALSO β
qmgr(1B)pbs_connect(3B)
mwah π β this pageβs source/version tag is Local, itβs dated 6 May 2020, and itβs the pbs_manager(3B) page. Bye bestie, go slay those batch objects πβ¨
π¦ where this page comes from
- nixos 26.05: openpbs 23.06.06-unstable-2026-04-02
- nixpkgs unstable: openpbs 23.06.06-unstable-2026-04-02
- Copyright (C) 1994-2021 Altair Engineering, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms