On 05/03/2017 08:47 AM, Bjørn-Helge Mevik wrote:
Ole Holm Nielsen <[email protected]> writes:
I'm announcing an initial version 0.1 of the node status tool "pestat" for
Slurm.
Interesting tool!
Thanks!
This tool needs to expand Slurm hostlists like a[095,097-098] into
a095,a097,a098, so I found the nice tool
https://www.nsc.liu.se/~kent/python-hostlist/ by Kent Engström at NSC. It's
simple to install this as an RPM package, see
https://wiki.fysik.dtu.dk/niflheim/SLURM#expanding-host-lists
For the simple case you show, you could just use
$ scontrol show hostnames a[095,097-098]
a095
a097
a098
Thanks for the suggestion. Another colleague also told me, so the
current tool at ftp://ftp.fysik.dtu.dk/pub/Slurm/pestat now uses
"scontrol show hostnames" without the need for python-hostlist (which is
still a nice and very general tool).
/Ole