Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Ryan Novosielski
I didn’t know that one! Thank you. Sent from my iPhone On Aug 17, 2023, at 09:50, Alain O' Miniussi wrote:  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,10

Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Greg Wickham
“sinfo” can expand compressed hostnames too: $ sinfo -n lm602-[08,10] -O NodeHost -h lm602-08 lm602-10 $ -Greg From: slurm-users on behalf of Alain O' Miniussi Date: Thursday, 17 August 2023 at 4:53 pm To: Slurm User Community List Subject: [EXTERNAL] Re: [slurm-users] extended li

Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Alain O' Miniussi
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 l

Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Sean Mc Grath
Hi Alain, I don't know if slurm can do that natively. python-hostlist, https://www.nsc.liu.se/~kent/python-hostlist/, 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

Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Alain O' Miniussi
It's scontrol show hostname Sorry for the noise - On Aug 17, 2023, at 2:44 PM, alain miniussi alain.miniu...@oca.eu wrote: > 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

Re: [slurm-users] extended list of nodes allocated to a job

2023-08-17 Thread Renfro, Michael
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 on behalf of Alain O' Miniussi Date: Thursday, August 17, 2023 at 7:46 AM To: S