- Setup the code
sh setup.sh
- Source
.bashrc
source ~/.bashrc
sh checknode.sh [-h|v|a|d|f|o|i|b|j|t|q|u] [-s user] [-l label]
- Show the free nodes
sh checknode.sh -f
- Show the idle user, job ID, and job user of each node
sh checknode.sh -ij
-h
: Display the help messages.-v
: Display the version.-f
: Only list the free nodes.-d
: Only list the down nodes.-o
: Only list the offline nodes.-s <jobId>
: Only display the specific job id.
The followings can only work on login node.
-b
: List the blocked users.-i
: List the idle users.-j
: List the job ID and job user of each node.-t
: List the start time of each job.-a
: List the content with optionb
,i
,j
, andt
.-q
: List the "showq" content.-u <user>
: Only display the specific user.-l <label>
: Only display the specific user.
- The option
q
does not work with other options. - The default
.bashrc
file location is under~/
or/home/<USER>/
. - The order of the options does not matter. e.g.
-ij
is equivalent to-ji
.