SLURM Reference Manual for HP XC System Software

[2]
GOAL: To build a customized status report about specic nodes on a SLURM-managed cluster
(here, MCR), for example, showing only CPUs/node, temporary disk space per node, and
allowed nodes/job.
STRATEGY: (1) Specify which nodes you want reported by using SINFO's -n (--nodes) option (which
here selects MCR nodes from 1 to 500 inclusive).
(2) Use SINFO's -o (lowercase oh, --format) option to specify which specic columns
(node properties) you want to report, the width of each column in characters, and the
order for the columns to appear (left to right). SINFO's general column-specication
language is described with -o in the options section (page 54) above. Here, %15N requests
a 15-character node-list column, %.6c requests a 6-character right-justied CPUs/node
column, %.8d requests an 8-character right-justied disk-space column, and %.12s requests
a 12-character right-justied nodes/job column. For an explanation of each possible
column heading in an SINFO report, see the SINFO Output Fields section (page 58)
above.
User: sinfo -n "mcr[1-500]" -o "%15N %.6c %.8d %.12s"
Rtne:
NODELIST CPUS TMP_DISK JOB_SIZE
mcr[40-103] 2 1 1-16
mcr[104-500] 2 1 1-infinite
SLURM Reference Manual - 62