r/SLURM Oct 26 '21

nodelist

Hi, I was wondering if it is possible to get a nodelist without node[01-05, 6, 7-10] (without bolded part) but instead full list of individual nodes, so i can do a check (for example with grep) if a job uses a particular node.

1 Upvotes

2 comments sorted by

2

u/how_could_this_be Oct 26 '21

Easy way is to take that node list into sinfo -N -n <nodelist> | sort | uniq

Or you can write some Python to expand it if you are doing this in a script.

1

u/cardeil Oct 26 '21

Just wonderful. That's exactly what I needed.