pbs_statserver(3B)
β¨ NAME β¨
pbs_statserver β get status of a PBS batch server. this is the pbs_statserver(3B) manual, and itβs literally here to make the whole status-check situation make sense π
πΈ SYNOPSIS πΈ
bestie, hereβs the C signature in all its glory:
#include <pbs_error.h>
#include <pbs_ifl.h>
struct batch_status *
pbs_statserver(int connect, struct attrl *output_attribs, char *extend)
π¦ DESCRIPTION π¦
okay so: this function issues a batch request to get the status of a batch server. it generates a Status Server (21) batch request and sends it to the server over the connection specified by connect. periodt. β¨
π ARGUMENTS π
letβs go through these one by one, no skipping π
connectβ return value ofpbs_connect(). specifies the connection handle over which to send the batch request to the server.output_attribsβ pointer to a list of attributes to return. if this argument is a null pointer or points to a null string, returns all attributes. each attribute is described in anattrlstructure, defined inpbs_ifl.has:
struct attrl {
char *name;
char *resource;
char *value;
struct attrl *next;
};
extendβ character string for extensions to command. not currently used. iconic but unused, honestly π«Ά
π§ Members of attrl Structure
okay, hereβs what each member is giving:
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.valueβ points to a string containing the value of the attribute or resource. should always be a pointer to a null string.nextβ points to next attribute in list. a null pointer terminates the list.
π RETURN VALUE π
returns a pointer to a batch_status structure describing the server. slay.
if an error occurred, the routine returns a null pointer, and the error number is available in the global integer pbs_errno. so if you get a null pointer, check pbs_errno, bestie π
π The batch_status Structure
the batch_status structure is defined in pbs_ifl.h as:
struct batch_status {
struct batch_status *next;
char *name;
struct attrl *attribs;
char *text;
}
π§Ό CLEANUP π§Ό
bestie, you must free thebatch_statusstructure when no longer needed, by callingpbs_statfree(). do not skip this, fr fr π
π SEE ALSO π
go check these out:
qstat(1B)pbs_connect(3B)pbs_statfree(3B)
β¨ Sign-off: source/version vibes are PBS Professional / Local, date is 15 November 2019, page is pbs_statserver(3B) β byeee, go get that server status π
π¦ 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