Thursday, June 20, 2013

Checking status of nodes for Torque

pbsnodes is a very useful command to check status of nodes. One of my favourite usage is check list the status of the nodes

# pbsnodes -l free
node-c00        free
node-c01        free
Other option includes "active", "all", "busy", "down", "free", "offline", "unknown", and "up"

# pbsnodes -a
 node-c00
     state = free
     np = 8
     properties = pulasan
     ntype = cluster
     jobs = 0/31516.starfruit-h00
     status = rectime=1371836955,varattr=,jobs=31516.node-c00,state=free,
netload=1810185981631,gres=,loadave=1.00,ncpus=8,physmem=16436612kb,
availmem=27307052kb,totmem=28626300kb,idletime=5540229,nusers=1,nsessions=1,
sessions=18708,uname=Linux node-c00.linuxtoolkit.blogspot.com 2.6.18-164.el5 
#1 SMP Thu Sep 3 03:28:30 EDT 2009 x86_64,opsys=linux
All attributes of a node or all nodes are listed. This is the default if no flag is given

Clear OFFLINE from listed nodes
# pbsnodes -c node-c00


Add the OFFLINE state
# pbsnodes -o node-c00


No comments: