pbs_statnode(3B)
okay bestie, this is pbs_statnode(3B) from PBS Professional β the glow-up manual for getting status of PBS execution host(s) π
β¨
πΈ NAME πΈ
pbs_statnode β get status of PBS execution host(s) π«Ά
β¨ SYNOPSIS β¨
#include <pbs_error.h>
#include <pbs_ifl.h>
struct batch_status *
pbs_statnode(int connect, char *target, struct attrl *output_attribs,
char *extend)
π DESCRIPTION π
okay so this function issues a batch request to get the status of PBS execution hosts. It 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. If an execution host has multiple vnodes, this command reports aggregated information from the vnodes for that host. no cap π¦
Itβs identical to pbs_stathost(); retained for backward compatibility. periodt π
π ARGUMENTS π
connectβ return value ofpbs_connect(). Specifies the connection handle over which to send the batch request to the server. πtargetβ name of the 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(). do not forget this, bestie ππ
β SEE ALSO β
qstat(1B)pbs_connect(3B)pbs_statfree(3B)
cute sign-off π: source/version Local, date 15 November 2019, manual pbs_statnode(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