User Tools

Site Tools


scontrol

scontrol

scontrol has more uses as an administrative tool, but can be used to get details job information.

The following command will list detailed information for all jobs in the queue.

scontrol show job

And this one will list details for a single job.

chris@node0:~$ scontrol show job 1823974
JobId=1823974 Name=runSimulator.sh
   UserId=rmathur2(1020) GroupId=rmathur2(1021)
   Priority=2 Account=(null) QOS=normal
   JobState=RUNNING Reason=None Dependency=(null)
   Requeue=1 Restarts=0 BatchFlag=1 ExitCode=0:0
   RunTime=1-20:47:06 TimeLimit=UNLIMITED TimeMin=N/A
   SubmitTime=2014-04-20T20:36:46 EligibleTime=2014-04-20T20:36:46
   StartTime=2014-04-20T20:36:46 EndTime=Unknown
   PreemptTime=None SuspendTime=None SecsPreSuspend=0
   Partition=all AllocNode:Sid=node0:22139
   ReqNodeList=(null) ExcNodeList=(null)
   NodeList=node1
   BatchHost=node1
   NumNodes=1 NumCPUs=1 CPUs/Task=1 ReqS:C:T=*:*:*
   MinCPUsNode=1 MinMemoryNode=0 MinTmpDiskNode=0
   Features=(null) Gres=(null) Reservation=(null)
   Shared=OK Contiguous=0 Licenses=(null) Network=(null)
   Command=/home/rmathur2/networkSimulator/./runSimulator.sh 25 3.5 .1 5 10 50 /home/rmathur2/networkSimulator/Results/withoutV/N25-T0.1-I50-S1-G3.5-C.1 1 0.1 1 1
   WorkDir=/home/rmathur2/networkSimulator

The “Shared=OK” at the start of the third-from-last line indicates that the job allows sharing of the node with other jobs. If the job was submitted with “–exclusive” it would show “Shared=0”.

scontrol.txt · Last modified: 2018/09/26 11:55 by root