[slurm-users] extended list of nodes allocated to a job
Renfro, Michael
Renfro at tntech.edu
Thu Aug 17 13:00:03 UTC 2023
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-bounces at lists.schedmd.com> on behalf of Alain O' Miniussi <alain.miniussi at oca.eu>
Date: Thursday, August 17, 2023 at 7:46 AM
To: Slurm User Community List <slurm-users at 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20230817/6db3d718/attachment.htm>
More information about the slurm-users
mailing list