<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body dir="auto">
I didn’t know that one! Thank you. <br>
<br>
<div dir="ltr">Sent from my iPhone</div>
<div dir="ltr"><br>
<blockquote type="cite">On Aug 17, 2023, at 09:50, Alain O' Miniussi <alain.miniussi@oca.eu> wrote:<br>
<br>
</blockquote>
</div>
<blockquote type="cite">
<div dir="ltr">
<div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; color: #000000">
<div>Hi Sean,<br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>A colleague pointed to me the following commands:<br data-mce-bogus="1">
</div>
<div><br data-mce-bogus="1">
</div>
<div>#scontrol show hostname x[1000,1009,1029-1031]<br>
x1000<br>
x1009<br>
x1029<br>
x1030<br>
x1031<br>
#scontrol show hostlist x[1000,1009,1029,1030,1031]<br>
x[1000,1009,1029-1031]<br>
#<br>
</div>
<div><br>
</div>
<div data-marker="__SIG_PRE__">----<br>
Alain Miniussi<br>
DSI, Pôles Calcul et Genie Log.<br>
Observatoire de la Côte d'Azur<br>
Tél. : +33609650665 <br>
<br>
</div>
<div><br>
<span id="zwchr" data-marker="__DIVIDER__">----- On Aug 17, 2023, at 3:12 PM, Sean Mc Grath <smcgrat@tcd.ie> wrote:<br>
</span><style style="display:none;">P { margin-top: 0px; margin-bottom: 0px; }</style></div>
<div data-marker="__QUOTED_TEXT__">
<blockquote style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Hi Alain,</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
I don't know if slurm can do that natively. <span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">python-hostlist, </span><a href="https://www.nsc.liu.se/~kent/python-hostlist/" style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;" target="_blank">https://www.nsc.liu.se/~kent/python-hostlist/</a><span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">,
may provide the functionality you need. I have used it in the past to generate a list of hosts that can be looped over.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">Hope that helps.</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;"><br>
</span></div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<span style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt;">Sean</span></div>
<div class="elementToProof">
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div id="Signature">
<div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
---</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Sean McGrath</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
Senior Systems Administrator, IT Services</div>
<div style="font-family: Calibri, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0); background-color: rgb(255, 255, 255);">
<br>
</div>
</div>
</div>
</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> slurm-users <slurm-users-bounces@lists.schedmd.com> on behalf of Alain O' Miniussi <alain.miniussi@oca.eu><br>
<b>Sent:</b> Thursday 17 August 2023 13:44<br>
<b>To:</b> Slurm User Community List <slurm-users@lists.schedmd.com><br>
<b>Subject:</b> [slurm-users] extended list of nodes allocated to a job</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt;">
<div class="PlainText">Hi,<br>
<br>
I'm looking for a way to get the list of nodes where a given job is running in a uncompressed way.<br>
That is, I'd like to have node1,node2,node3 instead of node1-node3.<br>
Is there way to achieve that ?<br>
I need the information outside the script.<br>
<br>
Thanks<br>
<br>
----<br>
Alain Miniussi<br>
DSI, Pôles Calcul et Genie Log.<br>
Observatoire de la Côte d'Azur<br>
Tél. : +33609650665<br>
<br>
</div>
</span></font></div>
<br>
</blockquote>
</div>
</div>
</div>
</blockquote>
</body>
</html>