pbs_statsched(3B)
πΈ NAME πΈ
pbs_statsched β get status of PBS schedulers.
okay bestie, this is the pbs_statsched(3B) page from PBS Professional, and it's literally your cheat code for grabbing scheduler status. slay. π
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
struct batch_status *
pbs_statsched(int connect,
struct attrl *output_attribs, char *extend)
π DESCRIPTION π
okay so this routine issues a batch request to get the status of the PBS schedulers.
It generates a Status Scheduler (81) batch request and sends it to the server over the connection specified by connect.
This command returns status of the default scheduler and all multischeds. periodt. π
π ARGUMENTS π
connectβ Return value ofpbs_connect(). Specifies connection handle over which to send batch request to 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.
π Members of attrl Structure π
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 list of batch_status structures describing the default scheduler and all multischeds.
If an error occurred, the routine returns a null pointer, and the error number is available in the global integer pbs_errno.
π¦ 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 π§
You must free the list of batch_status structures when no longer needed, by calling pbs_statfree().
bestie, this is not optional. free the list when you're done, okay? π
π SEE ALSO π
qstat(1B), pbs_connect(3B), pbs_statfree(3B)
xoxo, your Local girlie π β source/version: Local, date: 15 November 2019, page: pbs_statsched(3B) out π
π¦ 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