ICC Home Privacy and Legal Notice LC User Documents Banner

UCRL-WEB-201386

SLURM Reference Manual


SQUEUE Examples

[1]


Goal:
To display the default status report about all current SLURM-managed jobs on the machine (cluster) where you run SQUEUE.
Strategy:
Run SQUEUE with no options. An eight-column report, sorted by partition and then by time used (not by job ID or name), appears. SQUEUE automatically ends. Column ST here reports job STATE (status, see later section for details).
To add a time-limit column and see full-word status entries, use SQUEUE's -l (lowercase ell, --long) option. To report only on specified jobs rather than on all jobs, use the -j (--jobs) option with a comma-delimited list of (numerical) job IDs as the argument.
User: squeue

Rtne:
JOBID PARTITION     NAME     USER  ST       TIME  NODES NODELIST
46675    pbatch Rptn3202     bert   R   10:28:55    256 atlas[163-346,
                                                        572-583,663-679,
                                                        766-788,
                                                        1132-1151]
 4631    pbatch    runbo   jgross   R   10:17:15    280 atlas[616-630,
                                                        680-765,889-1032,
                                                        1097-1131]
 4007    pbatch paris03.   kubota   R   10:02:48     16 atlas[556-571]
 3866    pbatch NVE85Ryd     ikuo   R    5:21:10    144 atlas[525-552,631-
                                                        662,805-888]
 4655    pbatch     cp2k mcgrath5   R    1:52:10    128 atlas[104-162,475-
                                                        479,1033-1096]
 4827    pbatch   64chLd hiratani   R    1:51:50     16 atlas[584-599]
 4812    pbatch batch_MC   rieben   R    1:51:27     64 atlas[480-524,600-
                                                        615,793-795]
 5256    pbatch    d32_2     bosl   R    1:36:05     60 atlas[347-406]
 4736    pbatch psub_10m    mrhee   R    1:35:36     16 atlas[407-422]
 4743    pbatch psub_100    mrhee   R    1:35:04     16 atlas[439-454]
 5305    pbatch amBeA59_   aspuru   R      41:52      8 atlas[423-430]
 5101    pbatch     egas pederiva   R      32:22     32 atlas[455-474,789-
                                                        791,796-804]
66927    pdebug TVdebugS   awcook  PD       0:00     20
67151    pdebug    ale3d kippster   R      22:39      2 atlas[96-97]
67152    pdebug  inferno   kubota   R      22:00     16 atlas[40-55]
67168    pdebug    ale3d kippster   R       9:53      2 atlas[98-99]
67169    pdebug gd2d.Lin   benliu   R       7:00     16 atlas[56-71]


[2]


Goal:
To build a customized status report about current SLURM-managed jobs, for example, showing only job names, requested features (if any), and time used, with all rows in alphabetical (instead of time-used) order.
Strategy:
(1) Use SQUEUE's -o (lowercase oh, --format) option to specify which specific columns (job properties) you want to report, the width of each column in characters, and the order for the columns to appear (left to right). SQUEUE's general column-specification language is described with -o in the options section above. Here, %15j requests a 15-character job-name column, %10f requests a 10-character features-requested column, and %15M requests a 15-character time-used column.
(2) Use SQUEUE's -S (uppercase ess, --sort) option to arrange rows alphabetically by job name (j) rather than in the default order (the order shown in Example1).
User: squeue  -o "%15j %10f %15M" -S "j"

Rtne:
  NAME            FEATURES   TIME
  R20026          (null)     6:45:34
  TVdebugSession  (null)     25:18
  batch           (null)     1:52:09
  bw73d.scr       (null)     4:33:45
  cale.mcr-icc-de (null)     4:34
  case5_03_31_04. (null)     6:45:21
  jeep            (null)     20:14
  jobrestartl     (null)     3:09:13
  mcrh2.bat       (null)     1:37:24
  mcrh2.bat       (null)     10:31
  mcrh2.bat       (null)     10:14
  mcrh2.bat       (null)     9:16
  mcrh2.bat       (null)     2:32
  old_config      (null)     1:52:30
  pu1.psub        (null)     6:45:14
  pu2.psub        (null)     6:45:05
  runkull         (null)     0:49
  runover         (null)     6:45:27
  runpF3d_mcr     (null)     5:02:17
  sst             (null)     2:03:50




Navigation Links: [ Document List ] [ HPC Home ] [ Next ]