forked from ChunYen-Chen/CheckNode
-
Notifications
You must be signed in to change notification settings - Fork 0
CheckNode usage
Actionbot edited this page Apr 30, 2024
·
1 revision
-
Setup the code
sh setup.sh
-
Source
.bashrcsource ~/.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
qdoes not work with other options. - The default
.bashrcfile location is under~/or/home/<USER>/. - The order of the options does not matter. e.g.
-ijis equivalent to-ji.