pbs_stathost(3B)
π pbs_stathost(3B) π
okay bestie, welcome to the pbs_stathost(3B) page from the PBS Professional manual β this is the one where we go ask the server for the status of PBS execution hosts. no cap, itβs lowkey iconic. π
β¨ NAME β¨
pbs_stathost β get status of PBS execution host(s).
π SYNOPSIS π
#include <pbs_error.h>
#include <pbs_ifl.h>
struct batch_status *
pbs_stathost(int connect, char *target, struct attrl *output_attribs,
char *extend)
πΈ DESCRIPTION πΈ
Hereβs the vibe: you issue a batch request to get the status of PBS execution hosts.
Under the hood, this generates a Status Node (58) batch request and sends it to the server over the connection specified by connect. β¨
It returns specified attributes or all attributes of specified execution host or all execution hosts. And if an execution host has multiple vnodes, this command reports aggregated information from the vnodes for that host. fr fr, it rolls them up. π«Ά
π ARGUMENTS π
connectβ return value ofpbs_connect(). Specifies connection handle over which to send batch request to server.targetβ name of execution host whose attributes are to be reported. If this argument is a null pointer or points to a null string, returns attributes of all execution hosts known to the server.output_attribsβ pointer to a list of attributes to return. If this argument is null, 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.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 execution host(s).
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(). yes bestie, clean up after yourself β donβt leave it lying around. π
π¦ SEE ALSO π¦
qstat(1B)pbs_connect(3B)pbs_statfree(3B)
okay thatβs the whole page β source/version: Local; date: 15 November 2019; page: pbs_stathost(3B). mwah π
π¦ 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