[slurm-users] extended list of nodes allocated to a job
Greg Wickham
greg.wickham at kaust.edu.sa
Fri Aug 18 04:29:17 UTC 2023
“sinfo” can expand compressed hostnames too:
$ sinfo -n lm602-[08,10] -O NodeHost -h
lm602-08
lm602-10
$
-Greg
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Alain O' Miniussi <alain.miniussi at oca.eu>
Date: Thursday, 17 August 2023 at 4:53 pm
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [EXTERNAL] Re: [slurm-users] extended list of nodes allocated to a job
Hi Sean,
A colleague pointed to me the following commands:
#scontrol show hostname x[1000,1009,1029-1031]
x1000
x1009
x1029
x1030
x1031
#scontrol show hostlist x[1000,1009,1029,1030,1031]
x[1000,1009,1029-1031]
#
----
Alain Miniussi
DSI, Pôles Calcul et Genie Log.
Observatoire de la Côte d'Azur
Tél. : +33609650665
----- On Aug 17, 2023, at 3:12 PM, Sean Mc Grath <smcgrat at tcd.ie> wrote:
Hi Alain,
I don't know if slurm can do that natively. python-hostlist, https://www.nsc.liu.se/~kent/python-hostlist/<https://urldefense.com/v3/__https:/www.nsc.liu.se/*kent/python-hostlist/__;fg!!Nmw4Hv0!zu-j66_HMuY2DwAtvfY7Yrs4ZpO6nwagyKqKS7cXTQd3SdFcT8t7H0HIqCS8jMnik4EYhvTKPKFgSmUE8SZp0auhf8YDkEg$>, may provide the functionality you need. I have used it in the past to generate a list of hosts that can be looped over.
Hope that helps.
Sean
---
Sean McGrath
Senior Systems Administrator, IT Services
________________________________
From: slurm-users <slurm-users-bounces at lists.schedmd.com> on behalf of Alain O' Miniussi <alain.miniussi at oca.eu>
Sent: Thursday 17 August 2023 13:44
To: Slurm User Community List <slurm-users at lists.schedmd.com>
Subject: [slurm-users] extended list of nodes allocated to a job
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/20230818/01f3ebb5/attachment-0001.htm>
More information about the slurm-users
mailing list