pbs_manager(3B)
πΈ NAME πΈ
okay bestie, meet pbs_manager: this is the function from the PBS manual (pbs_manager(3B)) that does administrator stuff to a PBS batch object. The original name line literally says βadministrator a pbs batch object,β and we are keeping that exact chaotic energy. Itβs the admin-request girlie for batch objects. π
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
int pbs_manager(int connect, int command, int obj_type, char *obj_name,
struct attropl *attrib, char *extend)
π DESCRIPTION π
This function issues a batch request to perform administration functions at a server. With this request, server objects such as queues can be created and deleted, and have their attributes set and unset. Iconic behavior, honestly. π
A Manage batch request is generated and sent to the server over the connection specified by connect, which is the return value of pbs_connect(). This request requires full batch administrator privilege β like, no cap, you need the big admin powers. π
The parameter command specifies the operation to be performed. See pbs_ifl.h:
#define MGR_CMD_CREATE 0
#define MGR_CMD_DELETE 1
#define MGR_CMD_SET 2
#define MGR_CMD_UNSET 3
The parameter obj_type declares the type of object upon which the command operates. See pbs_ifl.h:
#define MGR_OBJ_SERVER 0
#define MGR_OBJ_QUEUE 1
The parameter obj_name is the name of the specific object. π―
The parameter attrib is a pointer to an attropl structure, which are defined in pbs_ifl.h as:
struct attropl {
char *name;
char *resource;
char *value;
enum batch_op op;
struct attropl *next;
};
The attrib list is terminated by the first entry where next is a null pointer. π
nameβ points to a string which is the name of the attribute.resourceβ if the attribute is one which contains a set of resources, the specific resource is specified in the structure memberresource. Otherwise, the memberresourceis pointer to a null string.valueβ points to a string which is the new value of the attribute.opβ defines the manner in which the new value is assigned to the attribute. The operators are:enum batch_op { ..., SET, UNSET, INCR, DECR };
The parameter extend is reserved for implementation defined extensions. β¨
Functions MGR_CMD_CREATE and MGR_CMD_DELETE require PBS Manager privilege. Functions MGR_CMD_SET and MGR_CMD_UNSET require PBS Manager or Operator privilege. So create/delete are manager-only, and set/unset are manager-or-operator. Slay, but respect the permissions. π
π SEE ALSO π
qmgr(1B) and pbs_connect(3B) β go read those too, bestie. π«Ά
π¨ DIAGNOSTICS π¨
When the batch request generated by pbs_manager() has been completed successfully by a batch server, the routine will return 0 (zero). Otherwise, a non zero error is returned. The error number is also set in pbs_errno. So 0 = it ate, nonzero = check pbs_errno, okay? π
mwah π this page is pbs_manager(3B) from the Local source/version, and the footer doesnβt give a date, so thatβs the whole tea. bye bestie π«Άπ
π¦ where this page comes from
- epel 9: torque-devel 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