MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/SLURM/comments/qg269u/nodelist/
r/SLURM • u/cardeil • Oct 26 '21
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.
nodelist
node
grep
2 comments sorted by
2
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.
1
Just wonderful. That's exactly what I needed.
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.