<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <p>Use the formatting commands.</p>
    <p>From the manpage for sinfo:<br>
    </p>
    <p><br>
    </p>
    <blockquote>
      <p>The format of each field is "%[[.]size]type[suffix]"<br>
        size<br>
            Minimum field size. If no size is specified, whatever is
        needed to print the information will be used.<br>
        .<br>
            Indicates the output should be right justified and size must
        be specified. By default output is left justified.<br>
        suffix<br>
            Arbitrary string to append to the end of the field.</p>
    </blockquote>
    <p><br>
    </p>
    <p>Brian Andrus<br>
    </p>
    <div class="moz-cite-prefix">On 4/7/2022 11:02 AM, Nicholas Yue
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CADYXiJLZ80fr2hftjtx6Dug2T+T5pK4EAj51-1xcmhjoC6dfVQ@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">Hi,
        <div><br>
        </div>
        <div>  I am spinning up an MPI/Slurm cluster on AWS</div>
        <div><br>
        </div>
        <div>  I am attempting to script the node names discovery for
          any given cluster</div>
        <div><br>
        </div>
        <div>  I tried `sinfo --Node --Format=NodeHost`</div>
        <div><br>
        </div>
        <div>  sinfo truncates the hostname to the first 20 characters
          but AWS creates hosts with longer names.</div>
        <div><br>
        </div>
        <div>  Is there some workaround to get the full host's name ?</div>
        <div><br>
        </div>
        <div>  If I need to use a different way or different command,I
          am OK with that.</div>
        <div><br>
        </div>
        <div>Cheers<br>
          -- <br>
          <div dir="ltr" class="gmail_signature"
            data-smartmail="gmail_signature">
            <div dir="ltr">Nicholas Yue<br>
              <a href="https://www.linkedin.com/in/nicholasyue/"
                target="_blank" moz-do-not-send="true"
                class="moz-txt-link-freetext">https://www.linkedin.com/in/nicholasyue/</a><br>
            </div>
          </div>
        </div>
      </div>
    </blockquote>
  </body>
</html>