pbs_statvnode(3B)

πŸ“¦ version 23.06.06-unstable-2026-04, in nixos 26.05, nixpkgs unstable

πŸ’… NAME

okay bestie, you're looking at the pbs_statvnode(3B) page from PBS Professional, and this function is literally here to get the status of PBS vnode(s) on execution hosts. no cap. 🫢

🧚 SYNOPSIS

#include <pbs_error.h>
#include <pbs_ifl.h>

struct batch_status *
pbs_statvnode(int connect, char *target, struct attrl *output_attribs,
              char *extend)

✨ DESCRIPTION

so the vibe is: this routine issues a batch request to get the status of PBS vnodes on execution hosts.

It generates a Status Node (58) batch request and sends it to the server over the connection specified by connect. slay.

What comes back? Either the specified attributes, or all attributes of a specified execution host vnode, or all attributes of all execution host vnodes. choose your adventure. 🌈

🌸 ARGUMENTS

  • connect β€” this is the return value of pbs_connect(), fr fr. It specifies the connection handle over which to send the batch request to the server. πŸ’«
  • target β€” the name of the execution host vnode whose attributes are to be reported. If this argument is a null pointer or points to a null string, it returns attributes of all execution host vnodes known to the server. all the vnodes, periodt. πŸ“
  • output_attribs β€” pointer to a list of attributes to return. If this argument is null, it returns all attributes. Each attribute is described in an attrl structure, defined in pbs_ifl.h as:
struct attrl {
        char         *name;
        char         *resource;
        char         *value;
        struct attrl *next;
};
  • extend β€” character string for extensions to command. Not currently used. (it's giving "reserved for later" energy, but that's what the page says. 🍡)

πŸŽ€ 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. It's used only when the specified attribute contains resource information. Otherwise, resource should be a null pointer. important. ⚠️
  • 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 vnode(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

bestie, you MUST free the list of batch_status structures when no longer needed β€” by calling pbs_statfree(). no leaks, no excuses, okay? 🧚✨

🌈 SEE ALSO

  • qstat(1B)
  • pbs_connect(3B)
  • pbs_statfree(3B)

that's the pbs_statvnode(3B) page β€” from PBS Professional / Local, dated 15 November 2019. bye bestie, mwah πŸ’–πŸ«Ά

πŸ“¦ where this page comes from