bproc_setnodestatus – Change the status of a node
#include <sys/bproc.h> int bproc_setnodestatus (int node, int status);
The node to change the status of
The new status for the node
This call sets the status of a node. Note that it is not possible to change the status of a node that is marked as “down”, “pwroff”, or “halt”.
The node is not connected to the master daemon. It may be off or crashed or not far enough along in its boot process to connect to the master daemon.
The node is running but is currently unavailable to users. Nodes are only in this state if set that way explicitly by the administrator.
There is a problem with the node. Nodes are assigned this state if booting is unsuccessful.
The node is up and ready to accept processes. This is the only state in which non-root users can send jobs to the node.
Setting a node to this state will tell it to reboot.
Setting a node to this state will tell it to halt.
Setting a node to this state will tell it to power off.
The node is in the process of coming up (running the
node_upscript). A node should only be put in this state by the
Returns 0 on success.
Returns -1 on error, and sets
You do not have root access
Out of memory