[slurm-users] Node status (without repeats)

54 views
Skip to first unread message

Borchert, Christopher B ERDC-RDE-ITL-MS CIV

unread,
Aug 8, 2022, 1:14:35 PM8/8/22
to slurm...@lists.schedmd.com
Hello. How can I simply show the status of a node in Slurm? It repeats the
same output per partition even when the partition column isn't included.

$ sinfo -N -o '%N %a %t'
NODELIST AVAIL STATE
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle
roy-r1-cp15b up idle

Thanks,
Chris

Ole Holm Nielsen

unread,
Aug 8, 2022, 2:34:09 PM8/8/22
to slurm...@lists.schedmd.com
The "sinfo -N" command works as documented in "man sinfo" :-) What do
you mean by "simply show the status of a node"? There are other useful
commands:

1. scontrol show node roy-r1-cp15b

2. A small script "shownode" from
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/nodes

3. The "pestat" command from
https://github.com/OleHolmNielsen/Slurm_tools/tree/master/pestat can be
used like this:

pestat -w roy-r1-cp15b

I hope this helps.

/Ole


Brian Andrus

unread,
Aug 8, 2022, 2:46:28 PM8/8/22
to slurm...@lists.schedmd.com
It looks to me like you have the same node in multiple partitions. If
the output you are getting is basically what you want just pipe it to
'sort -u' or 'uniq'

Brian Andrus
Reply all
Reply to author
Forward
0 new messages