bproc_setnodestatus¶
Name¶
bproc_setnodestatus – Change the status of a node
Synopsis¶
#include <sys/bproc.h>
int bproc_setnodestatus (int node, int status);
Arguments¶
nodeThe node to change the status of
statusThe new status for the node
Description¶
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”.
bproc_node_downThe 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.
bproc_node_unavailableThe node is running but is currently unavailable to users. Nodes are only in this state if set that way explicitly by the administrator.
bproc_node_errorThere is a problem with the node. Nodes are assigned this state if booting is unsuccessful.
bproc_node_upThe node is up and ready to accept processes. This is the only state in which non-root users can send jobs to the node.
bproc_node_rebootSetting a node to this state will tell it to reboot.
bproc_node_haltSetting a node to this state will tell it to halt.
bproc_node_pwroffSetting a node to this state will tell it to power off.
bproc_node_bootThe node is in the process of coming up (running the
node_upscript). A node should only be put in this state by theBProcmaster daemon.
Errors¶
- EPERM
 You do not have root access
- ENOMEM
 Out of memory
- EIO
 I/O error