You want: https://slurm.schedmd.com/scontrol.html#OPT_hostnames

-Paul Edmon-

On 1/6/2025 2:58 PM, Davide DelVento via slurm-users wrote:
Found it, I should have asked to my puppet as it's mandatory in some places :-D
It is simply 

scontrol show hostname gpu[01-02],node[03-04,12-22,27-32,36]

Sorry for the noise

On Mon, Jan 6, 2025 at 12:55 PM Davide DelVento <davide.quantum@gmail.com> wrote:
Hi all,
I remember seeing on this list a slurm command to change a slurm-friendly list such as

gpu[01-02],node[03-04,12-22,27-32,36]

into a bash friendly list such as

gpu01
gpu02
node03
node04
node12
etc

I made a note about it but I can't find my note anymore, nor the relevant message. Can someone please refresh my memory? I'll be more careful with such a note this time, I promise!

Thanks and happy new year!