Usage

The slurminfo script prints out various pieces of information regarding Slurm nodes and partitions on the cluster. The information is printed in a command line friendly fashion and can be printed in long, regular, and short versions. The long version prints all information possible, while regular and short only prints more relevant information.


Command Line:

slurminfo is called with the following command line prompt:

$ slurminfo [-a, --all | -l, --long | -s, --short]


Arguments:

The following is a list of arguments for scriptName:

[-a, --all]
Print all possible Slurm node and partition info.
[-l, --long]
Print all possible Slurm node and partition info.
[-s, --short]
Print only very relevant information for Slurm nodes and partitions.


Example:

For example, running slurminfo with the following command

$ slurminfo


Would result in the following command line output:

NODELIST      |PARTITION|AVAIL|STATE|CPUS|CPU_LOAD|MEMORY|FREE_MEM|SOCKETS|CORES|THREADS|NODES
tnorth-node10 |defq*    |up   |mix  |16  |1.01    |48223 |11761   |2      |8    |1      |1
tnorth-node11 |defq*    |up   |mix  |16  |1.01    |48223 |13304   |2      |8    |1      |1
tnorth-node12 |defq*    |up   |mix  |16  |1.01    |48223 |14377   |2      |8    |1      |1
tnorth-node13 |defq*    |up   |mix  |16  |0.01    |48221 |28484   |2      |8    |1      |1
tnorth-node01 |defq*    |up   |idle |16  |0.01    |48221 |8527    |2      |8    |1      |1
tnorth-node02 |defq*    |up   |idle |16  |0.01    |48221 |13992   |2      |8    |1      |1
tnorth-node03 |defq*    |up   |idle |16  |0.01    |48223 |9650    |2      |8    |1      |1
tnorth-node04 |defq*    |up   |idle |16  |0.01    |48223 |10722   |2      |8    |1      |1
tnorth-node05 |defq*    |up   |idle |16  |0.01    |48223 |8637    |2      |8    |1      |1
tnorth-node06 |defq*    |up   |idle |16  |0.01    |48223 |8223    |2      |8    |1      |1
tnorth-node07 |defq*    |up   |idle |16  |0.01    |48223 |11892   |2      |8    |1      |1
tnorth-node08 |defq*    |up   |idle |16  |0.01    |48223 |1452    |2      |8    |1      |1
tnorth-node09 |defq*    |up   |idle |16  |0.01    |48223 |12115   |2      |8    |1      |1
tnorth-node14 |defq*    |up   |idle |16  |0.01    |48223 |15716   |2      |8    |1      |1
tnorth-node15 |defq*    |up   |idle |16  |0.01    |48223 |11686   |2      |8    |1      |1
tnorth-node16 |defq*    |up   |idle |16  |0.01    |48223 |11306   |2      |8    |1      |1
tnorth-hmem   |hmem-32  |up   |idle |32  |0.01    |774007|753590  |4      |8    |1      |1
tnorth-node17 |hmem-40  |up   |idle |40  |0.82    |386969|293409  |4      |10   |1      |1
tnorth-node18 |hmem-40  |up   |idle |40  |0.01    |386969|383058  |4      |10   |1      |1
tnorth-hmem   |hmem     |up   |idle |32  |0.01    |774007|753590  |4      |8    |1      |1
tnorth-node17 |hmem     |up   |idle |40  |0.82    |386969|293409  |4      |10   |1      |1
tnorth-node18 |hmem     |up   |idle |40  |0.01    |386969|383058  |4      |10   |1      |1
tnorth-gpu    |gpu      |up   |idle |1   |0.01    |64318 |54988   |1      |1    |1      |1


All and Long Arguments

All:

The all argument will print every possible slurm node and partition info and can be called with the following command:

$ slurminfo --all


Short:

The short argument will print only very relevant information for slurm nodes and partitions and can be called with the following command:

$ slurminfo --short


Resulting in the following command line output:

NODELIST      |CPUS|MEMORY|S:C:T
tnorth-node01 |16  |48221 |2:8:1
tnorth-node02 |16  |48221 |2:8:1
tnorth-node03 |16  |48223 |2:8:1
tnorth-node04 |16  |48223 |2:8:1
tnorth-node05 |16  |48223 |2:8:1
tnorth-node06 |16  |48223 |2:8:1
tnorth-node07 |16  |48223 |2:8:1
tnorth-node08 |16  |48223 |2:8:1
tnorth-node09 |16  |48223 |2:8:1
tnorth-node10 |16  |48223 |2:8:1
tnorth-node11 |16  |48223 |2:8:1
tnorth-node12 |16  |48223 |2:8:1
tnorth-node13 |16  |48221 |2:8:1
tnorth-node14 |16  |48223 |2:8:1
tnorth-node15 |16  |48223 |2:8:1
tnorth-node16 |16  |48223 |2:8:1
tnorth-hmem   |32  |774007|4:8:1
tnorth-node17 |40  |386969|4:10:1
tnorth-node18 |40  |386969|4:10:1
tnorth-hmem   |32  |774007|4:8:1
tnorth-node17 |40  |386969|4:10:1
tnorth-node18 |40  |386969|4:10:1
tnorth-gpu    |1   |64318 |1:1:1