squeue is used for viewing the status of jobs. By default, squeue will output the following information about currently running jobs and jobs waiting in the queue: Job ID, Partition, Job Name, User Name, Job Status, Run Time, Node Count, and Node List. There are a large number of command-line options available for customizing the information provided by squeue. Below are a list of examples:
For more information about squeue see: http://slurm.schedmd.com/squeue.html
Example:
squeue -u sxg125
output:
JOBID PARTITION NAME USER ST TIME NODES NODELIST(REASON)
661587 batch bash sxg125 R 22:21 1 comp150t
Note the jobID (661587), status of the Job (R-> Running) and the compute node (comp150t) that the job is running.
Want to see details such as why your job is in PD (pending) state, in which node your job is running.
sq
output:
730814 batch slurm.sl bga11 PD 0:00 1 4 6950 (AssocMaxWallDurationPerJobLimi
730815 batch slurm.sl bga11 PD 0:00 1 4 6950 (AssocMaxWallDurationPerJobLimi
..
989833 batch 3DClasse txh310 R 21:59:56 16 240 3044 comp145t,comp146t,comp147t,comp149t,comp151t,comp154t,comp156t,comp157t,comp158t,comp159t,comp179t,comp185t,comp186t,comp187t,comp191t,comp192t
992383 batch job_chec sxl1036 R 1:43:13 2 16 3007 comp122t,comp123t
Also, show the start time and end time of the job:
squeue -u <CaseID> -o "%.9i %.9P %.8j %.8u %.2t %.10M %.6D %S %e"
output:
JOBID PARTITION NAME USER ST TIME NODES START_TIME END_TIME
676101 batch JOB sxg125 PD 0:00 1 2016-04-09T15:25:21
606057 batch JOB sxg125 R 8-01:08:45 1 2016-03-31T14:17:02 2016-04-31T14:17:02
606056 batch JOB sxg125 R 8-01:10:16 1 2016-03-31T14:15:31 2016-03-31T14:15:31
The job 676101 is estimated to start on April 09 at 15:25 and the end time of job 606057 is April 31 at 14:17.
You can filter squeue output to all jobs in your group using the -A flag:
squeue -o "%A %C %e %E %g %l %m %N %T %u" -A eecs600
output:
JOBID CPUS END_TIME DEPENDENCY GROUP TIME_LIMIT MIN_MEMORY NODELIST STATE USER
148137 1 2016-01-26T16:54:22 eecs600 2:00:00 1900 comp145t RUNNING aar93
148146 1 2016-01-27T01:14:27 eecs600 10:00:00 1900 comp148t RUNNING hxs356
Note the jobs status for the users in a group eecs600