.SH "DESCRIPTION"
\fBsinfo\fR is used to view partition and node information for a
system running Slurm.

.SH "OPTIONS"

.TP
\fB\-a\fR, \fB\-\-all\fR
Display information about all partitions. This causes information to be
displayed about partitions that are configured as hidden and partitions that
are unavailable to user's group.

.TP
\fB\-d\fR, \fB\-\-dead\fR
If set only report state information for non\-responding (dead) nodes.

.TP
\fB\-e\fR, \fB\-\-exact\fR
If set, do not group node information on multiple nodes unless
their configurations to be reported are identical. Otherwise
cpu count, memory size, and disk space for nodes will be listed
with the minimum value followed by a "+" for nodes with the
same partition and state (e.g., "250+").

.TP
\fB\-\-federation\fR
Show all partitions from the federation if a member of one.

.TP
\fB\-h\fR, \fB\-\-noheader\fR
Do not print a header on the output.

.TP
\fB\-\-help\fR
Print a message describing all \fBsinfo\fR options.
.TP

\fB\-\-hide\fR
Do not display information about hidden partitions. By default, partitions
that are configured as hidden or are not available to the user's group
will not be displayed (i.e. this is the default behavior).

.TP
\fB\-i <seconds>\fR, \fB\-\-iterate=<seconds>\fR
Print the state on a periodic basis.
Sleep for the indicated number of seconds between reports.
By default, prints a time stamp with the header.

.TP
\fB\-\-local\fR
Show only jobs local to this cluster. Ignore other clusters in this federation
(if any). Overrides \-\-federation.
\fB\-n <nodes>\fR, \fB\-\-nodes=<nodes>\fR
Print information only about the specified node(s).
Multiple nodes may be comma separated or expressed using a
node range expression. For example "linux[00\-07]" would
indicate eight nodes, "linux00" through "linux07."
Performance of the command can be measurably improved for systems with large
numbers of nodes when a single node name is specified.

.TP
\fB\-\-noconvert\fR
Don't convert units from their original type (e.g. 2048M won't be converted to
2G).

.TP
\fB\-N\fR, \fB\-\-Node\fR
Print information in a node\-oriented format with one line per node
and partition. That is, if a node belongs to more than one partition, then one
line for each node\-partition pair will be shown.
If \fB\-\-partition\fR is also specified, then only one line per node in this
partition is shown.
The default is to print information in a partition\-oriented format.
This is ignored if the \fB\-\-format\fR option is specified.

.TP
\fB\-o <output_format>\fR, \fB\-\-format=<output_format>\fR
Specify the information to be displayed using an \fBsinfo\fR
format string. Format strings transparently used by \fBsinfo\fR
when running with various options are
.RS
.TP 15
.I "default"
"%#P %.5a %.10l %.6D %.6t %N"
.TP
.I "\-\-summarize"
"%#P %.5a %.10l %.16F  %N"
.TP
.I "\-\-long"
"%#P %.5a %.10l %.10s %.4r %.8h %.10g %.6D %.11T %N"
.TP
.I "\-\-Node"
"%#N %.6D %#P %6t"
.TP
.I "\-\-long \-\-Node"
"%#N %.6D %#P %.11T %.4c %.8z %.6m %.8d %.6w %.8f %20E"
.TP
.I "\-\-list\-reasons"
"%20E %9u %19H %N"
.TP
.I "\-\-long \-\-list\-reasons"
"%20E %12U %19H %6t %N"
.RE

each field.
.TP
\fB%a\fR
State/availability of a partition
.TP
\fB%A\fR
Number of nodes by state in the format "allocated/idle".
Do not use this with a node state option ("%t" or "%T") or
the different node states will be placed on separate lines.
.TP
\fB%b\fR
Features currently active on the nodes, also see \fB%f\fR
.TP
\fB%B\fR
The max number of CPUs per node available to jobs in the partition.
.TP
\fB%c\fR
Number of CPUs per node
.TP
\fB%C\fR
Number of CPUs by state in the format
"allocated/idle/other/total". Do not use this with a node
state option ("%t" or "%T") or the different node states will
be placed on separate lines.
.TP
\fB%d\fR
Size of temporary disk space per node in megabytes
.TP
\fB%D\fR
Number of nodes
.TP
\fB%e\fR
Free memory of a node
.TP
\fB%E\fR
The reason a node is unavailable (down, drained, or draining states).
.TP
\fB%f\fR
Features available the nodes, also see \fB%b\fR
.TP
\fB%F\fR
Number of nodes by state in the format
"allocated/idle/other/total".  Note the use of this format option with a node
state format option ("%t" or "%T") will result in the different node states
being be reported on separate lines.
.TP
\fB%g\fR
Groups which may use the nodes
.TP
\fB%G\fR
Generic resources (gres) associated with the nodes
.TP
Default time for any job in the format "days\-hours:minutes:seconds"
.TP
\fB%m\fR
Size of memory per node in megabytes
.TP
\fB%M\fR
PreemptionMode
.TP
\fB%n\fR
List of node hostnames
.TP
\fB%N\fR
List of node names
.TP
\fB%o\fR
List of node communication addresses
.TP
\fB%O\fR
CPU load of a node
.TP
\fB%p\fR
Partition scheduling tier priority.
.TP
\fB%P\fR
Partition name followed by "*" for the default partition, also see \fB%R\fR
.TP
\fB%r\fR
Only user root may initiate jobs, "yes" or "no"
.TP
\fB%R\fR
Partition name, also see \fB%P\fR
.TP
\fB%s\fR
Maximum job size in nodes
.TP
\fB%S\fR
Allowed allocating nodes
.TP
\fB%t\fR
State of nodes, compact form
.TP
\fB%T\fR
State of nodes, extended form
.TP
\fB%u\fR
Print the user name of who set the reason a node is unavailable.
.TP
\fB%U\fR
Print the user name and uid of who set the reason a node is unavailable.
.TP
\fB%v\fR
Print the version of the running slurmd daemon.
Number of threads per core
.TP
\fB%z\fR
Extended processor information: number of sockets, cores, threads (S:C:T) per node
.TP
\fB%.<*>\fR
right justification of the field
.TP
\fB%<Number><*>\fR
size of field
.RE

.TP
\fB\-O <output_format>\fR, \fB\-\-Format=<output_format>\fR
Specify the information to be displayed.
Also see the \fB\-o <output_format>\fR, \fB\-\-format=<output_format>\fR
option described below (which supports greater flexibility in formatting, but
does not support access to all fields because we ran out of letters).
Requests a comma separated list of job information to be displayed.

.IP
The format of each field is "type[:[.]size]"
.RS
.TP 8
\fIsize\fR
is the minimum field size.
If no size is specified, 20 characters will be allocated to print the information.
.TP
\fI .\fR
indicates the output should be right justified and size must be specified.
By default, output is left justified.
.RE

.IP
Valid \fItype\fR specifications include:
.RS
.TP 6
\fBall\fR
Print all fields available in the \-o format for this data type with a
vertical bar separating each field.
.TP
\fBallocmem\fR
Prints the amount of allocated memory on a node.
.TP
\fBallocnodes\fR
Allowed allocating nodes.
.TP
\fBavailable\fR
State/availability of a partition.
.TP
\fBcluster\fR
Print the cluster name if running in a federation
be placed on separate lines.
.TP
\fBcores\fR
Number of cores per socket.
.TP
\fBdefaulttime\fR
Default time for any job in the format "days\-hours:minutes:seconds".
.TP
\fBdisk\fR
Size of temporary disk space per node in megabytes.
.TP
\fBfeatures\fR
Features available on the nodes. Also see \fBfeatures_act\fR.
.TP
\fBfeatures_act\fR
Features currently active on the nodes. Also see \fBfeatures\fR.
.TP
\fBgroups\fR
Groups which may use the nodes.
.TP
\fBgres\fR
Generic resources (gres) associated with the nodes.
.TP
\fBgresused\fR
Generic resources (gres) currently in use on the nodes.
.TP
\fBmaxcpuspernode\fR
The max number of CPUs per node available to jobs in the partition.
.TP
\fBmemory\fR
Size of memory per node in megabytes.
.TP
\fBnodes\fR
Number of nodes.
.TP
\fBnodeaddr\fR
List of node communication addresses.
.TP
\fBnodeai\fR
Number of nodes by state in the format "allocated/idle".
Do not use this with a node state option ("%t" or "%T") or
the different node states will be placed on separate lines.
.TP
\fBnodeaiot\fR
Number of nodes by state in the format
"allocated/idle/other/total".  Do not use this with a node
state option ("%t" or "%T") or the different node states will
be placed on separate lines.
.TP
\fBnodehost\fR
List of node hostnames.
.TP
Node TCP port.
.TP
\fBpreemptmode\fR
PreemptionMode.
.TP
\fBpriorityjobfactor\fR
Partition factor used by priority/multifactor plugin in calculating job priority.
.TP
\fBprioritytier\fR or \fBpriority\fR
Partition scheduling tier priority.
.TP
\fBreason\fR
The reason a node is unavailable (down, drained, or draining states).
.TP
\fBroot\fR
Only user root may initiate jobs, "yes" or "no".
.TP
\fBsize\fR
Maximum job size in nodes.
.TP
\fBstatecompact\fR
State of nodes, compact form.
.TP
\fBstatelong\fR
State of nodes, extended form.
.TP
\fBsockets\fR
Number of sockets per node.
.TP
\fBsocketcorethread\fR
Extended processor information: number of sockets, cores, threads (S:C:T) per node.
.TP
\fBtime\fR
Maximum time for any job in the format "days\-hours:minutes:seconds".
.TP
\fBtimestamp\fR
Print the timestamp of the reason a node is unavailable.
.TP
\fBthreads\fR
Number of threads per core.
.TP
\fBuser\fR
Print the user name of who set the reason a node is unavailable.
.TP
\fBuserlong\fR
Print the user name and uid of who set the reason a node is unavailable.
.TP
\fBversion\fR
Print the version of the running slurmd daemon.
.TP
\fBweight\fR
Scheduling weight of the nodes.
When nodes are in these states Slurm supports optional inclusion
of a "reason" string by an administrator.
This option will display the first 20 characters of the reason
field and list of nodes with that reason for all nodes that are,
by default, down, drained, draining or failing.
This option may be used with other node filtering options
(e.g. \fB\-r\fR, \fB\-d\fR, \fB\-t\fR, \fB\-n\fR),
however, combinations of these options that result in a
list of nodes that are not down or drained or failing will
not produce any output.
When used with \fB\-l\fR the output additionally includes
the current node state.

.TP
\fB\-s\fR, \fB\-\-summarize\fR
List only a partition state summary with no node state details.
This is ignored if the \fB\-\-format\fR option is specified.

.TP
\fB\-S <sort_list>\fR, \fB\-\-sort=<sort_list>\fR
Specification of the order in which records should be reported.
This uses the same field specification as the <output_format>.
Multiple sorts may be performed by listing multiple sort fields
separated by commas.  The field specifications may be preceded
by "+" or "\-" for ascending (default) and descending order
respectively.  The partition field specification, "P", may be
preceded by a "#" to report partitions in the same order that
they appear in Slurm's  configuration file, \fBslurm.conf\fR.
For example, a sort value of "+P,\-m" requests that records
be printed in order of increasing partition name and within a
partition by decreasing memory size.  The default value of sort
is "#P,\-t" (partitions ordered as configured then decreasing
node state).  If the \fB\-\-Node\fB option is selected, the
default sort value is "N" (increasing node name).

.TP
\fB\-t <states>\fR , \fB\-\-states=<states>\fR
List nodes only having the given state(s).  Multiple states
may be comma separated and the comparison is case insensitive.
Possible values include (case insensitive): ALLOC, ALLOCATED,
COMP, COMPLETING, DOWN, DRAIN (for node in DRAINING or DRAINED
states), DRAINED, DRAINING, FAIL, FUTURE, FUTR,
IDLE, MAINT, MIX, MIXED, NO_RESPOND, NPC, PERFCTRS,
POWER_DOWN, POWERING_DOWN, POWER_UP, RESV, RESERVED, UNK, and UNKNOWN.
By default nodes in the specified state are reported whether
they are responding or not.
The \fB\-\-dead\fR and \fB\-\-responding\fR options may be
used to filtering nodes by the responding flag.

.TP
\fB\-T\fR, \fB\-\-reservation\fR
Only display information about Slurm reservations.
.TP
\fBAVAIL\fR
Partition state: \fBup\fR or \fBdown\fR.
.TP
\fBCPUS\fR
Count of CPUs (processors) on each node.
.TP
\fBS:C:T\fR
Count of sockets (S), cores (C), and threads (T) on these nodes.
.TP
\fBSOCKETS\fR
Count of sockets on these nodes.
.TP
\fBCORES\fR
Count of cores on these nodes.
.TP
\fBTHREADS\fR
Count of threads on these nodes.
.TP
\fBGROUPS\fR
Resource allocations in this partition are restricted to the
named groups.  \fBall\fR indicates that all groups may use
this partition.
.TP
\fBJOB_SIZE\fR
Minimum and maximum node count that can be allocated to any
user job.  A single number indicates the minimum and maximum
node count are the same.  \fBinfinite\fR is used to identify
partitions without a maximum node count.
.TP
\fBTIMELIMIT\fR
Maximum time limit for any user job in
days\-hours:minutes:seconds.  \fBinfinite\fR is used to identify
partitions without a job time limit.
.TP
\fBMEMORY\fR
Size of real memory in megabytes on these nodes.
.TP
\fBNODELIST\fR
Names of nodes associated with this configuration/partition.
.TP
\fBNODES\fR
Count of nodes with this particular configuration.
.TP
\fBNODES(A/I)\fR
Count of nodes with this particular configuration by node
state in the form "available/idle".
.TP
\fBNODES(A/I/O/T)\fR
Count of nodes with this particular configuration by node
state in the form "available/idle/other/total".
.TP
\fBno\fR indicates resources are never oversubscribed.
\fBexclusive\fR indicates whole nodes are dedicated to jobs
(equivalent to srun \-\-exclusive option, may be used even
with select/cons_res managing individual processors).
\fBforce\fR indicates resources are always available to be oversubscribed.
\fByes\fR indicates resource may be oversubscribed or not
per job's resource allocation.
.TP
\fBSTATE\fR
State of the nodes.
Possible states include: allocated, completing, down,
drained, draining, fail, failing, future, idle, maint, mixed,
perfctrs, power_down, power_up, reserved, and unknown plus
Their abbreviated forms: alloc, comp, down, drain, drng,
fail, failg, futr, idle, maint, mix, npc, pow_dn, pow_up, resv,
and unk respectively.
Note that the suffix "*" identifies nodes that are presently
not responding.
.TP
\fBTMP_DISK\fR
Size of temporary disk space in megabytes on these nodes.

.SH "NODE STATE CODES"
.PP
Node state codes are shortened as required for the field size.
These node states may be followed by a special character to identify
state flags associated with the node.
The following node sufficies and states are used:
.TP 4
\fB*\fR
The node is presently not responding and will not be allocated
any new work.  If the node remains non\-responsive, it will
be placed in the \fBDOWN\fR state (except in the case of
\fBCOMPLETING\fR, \fBDRAINED\fR, \fBDRAINING\fR,
\fBFAIL\fR, \fBFAILING\fR nodes).
.TP
\fB~\fR
The node is presently in a power saving mode (typically
running at reduced frequency).
.TP
\fB#\fR
The node is presently being powered up or configured.
.TP
\fB%\fR
The node is presently being powered down.
.TP
\fB$\fR
The node is currently in a reservation with a flag value of "maintenance".
.TP
\fB@\fR
The node is pending reboot.
.TP 12
.TP
\fBDOWN\fR
The node is unavailable for use. Slurm can automatically
place nodes in this state if some failure occurs. System
administrators may also explicitly place nodes in this state. If
a node resumes normal operation, Slurm can automatically
return it to service. See the \fBReturnToService\fR
and \fBSlurmdTimeout\fR parameter descriptions in the
\fBslurm.conf\fR(5) man page for more information.
.TP
\fBDRAINED\fR
The node is unavailable for use per system administrator
request.  See the \fBupdate node\fR command in the
\fBscontrol\fR(1) man page or the \fBslurm.conf\fR(5) man page
for more information.
.TP
\fBDRAINING\fR
The node is currently executing a job, but will not be allocated
to additional jobs. The node state will be changed to state
\fBDRAINED\fR when the last job on it completes. Nodes enter
this state per system administrator request. See the \fBupdate
node\fR command in the \fBscontrol\fR(1) man page or the
\fBslurm.conf\fR(5) man page for more information.
.TP
\fBFAIL\fR
The node is expected to fail soon and is unavailable for
use per system administrator request.
See the \fBupdate node\fR command in the \fBscontrol\fR(1)
man page or the \fBslurm.conf\fR(5) man page for more information.
.TP
\fBFAILING\fR
The node is currently executing a job, but is expected to fail
soon and is unavailable for use per system administrator request.
See the \fBupdate node\fR command in the \fBscontrol\fR(1)
man page or the \fBslurm.conf\fR(5) man page for more information.
.TP
\fBFUTURE\fR
The node is currently not fully configured, but expected to be available at
some point in the indefinite future for use.
.TP
\fBIDLE\fR
The node is not allocated to any jobs and is available for use.
.TP
\fBMAINT\fR
The node is currently in a reservation with a flag value of "maintainence".
.TP
\fBREBOOT\fR
The node is currently scheduled to be rebooted.
.TP
\fBMIXED\fR
The node has some of its CPUs ALLOCATED while others are IDLE.
.TP
The node is in an advanced reservation and not generally available.
.TP
\fBUNKNOWN\fR
The Slurm controller has just started and the node's state
has not yet been determined.

.SH "ENVIRONMENT VARIABLES"
.PP
Some \fBsinfo\fR options may
be set via environment variables. These environment variables,
along with their corresponding options, are listed below. (Note:
Commandline options will always override these settings.)
.TP 20
\fBSINFO_ALL\fR
\fB\-a, \-\-all\fR
.TP
\fBSINFO_FEDERATION\fR
Same as \fB\-\-federation\fR
.TP
\fBSINFO_FORMAT\fR
\fB\-o <output_format>, \-\-format=<output_format>\fR
.TP
\fBSINFO_LOCAL\fR
Same as \fB\-\-local\fR
.TP
\fBSINFO_PARTITION\fR
\fB\-p <partition>, \-\-partition=<partition>\fR
.TP
\fBSINFO_SORT\fR
\fB\-S <sort>, \-\-sort=<sort>\fR
.TP
\fBSLURM_CLUSTERS\fR
Same as \fB\-\-clusters\fR
.TP
\fBSLURM_CONF\fR
The location of the Slurm configuration file.
.TP
\fBSLURM_TIME_FORMAT\fR
Specify the format used to report time stamps. A value of \fIstandard\fR, the
default value, generates output in the form "year\-month\-dateThour:minute:second".
A value of \fIrelative\fR returns only "hour:minute:second" if the current day.
For other dates in the current year it prints the "hour:minute" preceded by
"Tomorr" (tomorrow), "Ystday" (yesterday), the name of the day for the coming
week (e.g. "Mon", "Tue", etc.), otherwise the date (e.g. "25 Apr").
For other years it returns a date month and year without a time (e.g.
"6 Jun 2012"). All of the time stamps use a 24 hour format.

A valid strftime() format can also be specified. For example, a value of
"%a %T" will report the day of the week and a time stamp (e.g. "Mon 12:34:56").

.SH "EXAMPLES"
.eo

> sinfo -s
PARTITION AVAIL TIMELIMIT NODES(A/I/O/T) NODELIST
batch     up     infinite 2/6/0/8        adev[8-15]
debug*    up        30:00 0/8/0/8        adev[0-7]

.fi

Report more complete information about the partition debug:
.nf

> sinfo --long --partition=debug
PARTITION AVAIL TIMELIMIT JOB_SIZE ROOT OVERSUBS GROUPS NODES STATE NODELIST
debug*    up        30:00        8 no   no       all        8 idle  dev[0-7]
.fi

Report only those nodes that are in state DRAINED:
.nf

> sinfo --states=drained
PARTITION AVAIL NODES TIMELIMIT STATE  NODELIST
debug*    up        2     30:00 drain  adev[6-7]

.fi

Report node-oriented information with details and exact matches:
.nf

> sinfo -Nel
NODELIST    NODES PARTITION STATE  CPUS MEMORY TMP_DISK WEIGHT FEATURES REASON
adev[0-1]       2 debug*    idle      2   3448    38536     16 (null)   (null)
adev[2,4-7]     5 debug*    idle      2   3384    38536     16 (null)   (null)
adev3           1 debug*    idle      2   3394    38536     16 (null)   (null)
adev[8-9]       2 batch     allocated 2    246    82306     16 (null)   (null)
adev[10-15]     6 batch     idle      2    246    82306     16 (null)   (null)

.fi

Report only down, drained and draining nodes and their reason field:
.nf

> sinfo -R
REASON                              NODELIST
Memory errors                       dev[0,5]
Not Responding                      dev8

.fi
.ec

.SH "COPYING"
Copyright (C) 2002\-2007 The Regents of the University of California.
Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
details.

.SH "SEE ALSO"
\fBscontrol\fR(1), \fBsmap\fR(1), \fBsqueue\fR(1),
\fBslurm_load_ctl_conf\fR (3), \fBslurm_load_jobs\fR (3),
\fBslurm_load_node\fR (3),
\fBslurm_load_partitions\fR (3),
\fBslurm_reconfigure\fR (3), \fBslurm_shutdown\fR (3),
\fBslurm_update_job\fR (3), \fBslurm_update_node\fR (3),
\fBslurm_update_partition\fR (3),
\fBslurm.conf\fR(5)

Man(1) output converted with man2html