Count PBS nodes

The following commands helps to get the informations about the nodes in a cluster running PBpro.

  1. nodes info 

 pbsnodes -a > pbsnodes.txt

2. count the nodes

grep -e ‘^cnode’ pbsnodes.txt | wc -l

3. To get the names of unique nodes

pbsnodes -a | grep -e ‘^cnode’ | sort | uniq -c