<div dir="ltr">Looks like Slurm itself only supports that format(in MB unit). Slurm commands output format is not very user friendly to me. If it can add some easy options, like for the output info of sinfo command in this email thread, how about adding support for lazy options, like sinfo -ABC, etc.<div><br></div><div>For the desired format in GB, one workaround may be to prepare a wrapper shell script, read in the sinfo output, and convert the MB to GB and print out to the screen.<br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 20, 2023 at 12:28 PM Arsene Marian Alain <<a href="mailto:alain.arsene@uah.es">alain.arsene@uah.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div class="msg3386674884341121291">
<div lang="ES" style="word-wrap:break-word">
<div class="m_3386674884341121291WordSection1">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dear slurm users, <u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span lang="EN-US">I would like to see the following information of my nodes "hostname, total mem, free mem and cpus". So, I used ‘sinfo -o "%8n %8m %8e %C"’ but in the output it shows me the memory in MB like "190560" and I need it in
GB (without decimals if possible) like "190GB". Any ideas or suggestions on how I can do that?<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">current output:<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HOSTNAME MEMORY FREE_MEM CPUS(A/I/O/T)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node01 190560 125249 60/4/0/64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node02 190560 171944 40/24/0/64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node05 93280 91584 0/40/0/40<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node06 513120 509448 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node07 513120 512086 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node08 513120 512328 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node09 513120 512304 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">desired output: <u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">HOSTNAME MEMORY FREE_MEM CPUS(A/I/O/T)<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node01 190GB 125GB 60/4/0/64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node02 190GB 171GB 40/24/0/64<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node05 93GB 91GB 0/40/0/40<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node06 512GB 500GB 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node07 512GB 512GB 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node08 512GB 512GB 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">node09 512GB 512GB 0/96/0/96<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">I would appreciate any help.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Thank you.<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Best Regards,<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US">Alain<u></u><u></u></span></p>
</div>
</div>
</div></blockquote></div>