Given a job ID:
scontrol show hostnames $(scontrol show job some_job_id | grep ' NodeList=' | cut -d= -f2) | paste -sd,
Maybe there’s something more built-in than this, but it gets the job done.
From:
slurm-users <slurm-use...@lists.schedmd.com> on behalf of Alain O' Miniussi <alain.m...@oca.eu>
Date: Thursday, August 17, 2023 at 7:46 AM
To: Slurm User Community List <slurm...@lists.schedmd.com>
Subject: [slurm-users] extended list of nodes allocated to a job
External Email Warning
This email originated from outside the university. Please use caution when opening attachments, clicking links, or responding to requests.
________________________________
“sinfo” can expand compressed hostnames too:
$ sinfo -n lm602-[08,10] -O NodeHost -h
lm602-08
lm602-10
$
-Greg
On Aug 17, 2023, at 09:50, Alain O' Miniussi <alain.m...@oca.eu> wrote: