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-users-boun...@lists.schedmd.com> on behalf of Alain O' Miniussi <alain.miniu...@oca.eu> Date: Thursday, August 17, 2023 at 7:46 AM To: Slurm User Community List <slurm-users@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. ________________________________ Hi, I'm looking for a way to get the list of nodes where a given job is running in a uncompressed way. That is, I'd like to have node1,node2,node3 instead of node1-node3. Is there way to achieve that ? I need the information outside the script. Thanks ---- Alain Miniussi DSI, Pôles Calcul et Genie Log. Observatoire de la Côte d'Azur Tél. : +33609650665