Scheduler Control Commands
Scontrol
Overview
scontrol [options] [command]
Option | Short | Long | Description |
Help | -h | --help | Show scontrol help. |
One-Line | -o | --oneliner | Use one line per record for show command. |
All | -a | --all | List all jobs on all partitions for show command. |
Details | -d | --details | List all available information about jobs for show command. |
Verbose | -v | --verbose | Show debugging information when running any command. |
Command | Input | Example | Description |
update | specification | scontrol update jobid=12345 timelimit=4-00:00:00 | Used to update a job specification. If timelimit, numcpus, numtasks, numnodes, minmemorycpu, or minmemorynode is updated for a pending job it must be less than what was initially requested. This command doesn't usually work for running jobs. |
hold | jobList | scontrol hold 12345 | Hold a pending job to prevent it from running. |
suspend | jobList | scontrol suspend 12345 | Suspend a running job to allow other jobs to run. |
requeue | jobList | scontrol requeue 12345 | Requeue a running, suspended, or completed job. |
resume | jobList | scontrol resume 12345 | Resume a suspended job. |
release | jobList | scontrol release 12345 | Release a held job. |
show |
|
show job 12345 | Show details about an entity. |
|
|
|
|
|
sacctmgr show assoc user=$USER format=account -P |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Examples
[user@log001 ~] scontrol show job 185995 -d
JobId=185995 JobName=lipo2Nano_-0.2_17500_1.0472.sh
UserId=jspngler(10123) GroupId=users(100) MCS_label=N/A
Priority=4294771864 Nice=0 Account=mlaradjilab QOS=normal
JobState=RUNNING Reason=None Dependency=(null)
Requeue=1 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
DerivedExitCode=0:0
RunTime=3-22:27:11 TimeLimit=5-00:00:00 TimeMin=N/A
SubmitTime=2019-04-11T17:44:03 EligibleTime=2019-04-11T17:44:03
StartTime=2019-04-18T10:06:03 EndTime=2019-04-23T10:06:03 Deadline=N/A
PreemptTime=None SuspendTime=None SecsPreSuspend=0
LastSchedEval=2019-04-18T10:06:03
Partition=computeq AllocNode:Sid=log002:91002
ReqNodeList=(null) ExcNodeList=(null)
NodeList=c063
BatchHost=c063
NumNodes=1 NumCPUs=8 NumTasks=1 CPUs/Task=8 ReqB:S:C:T=0:0:*:*
TRES=cpu=8,mem=3200M,node=1,billing=8
Socks/Node=* NtasksPerN:B:S:C=0:0:*:* CoreSpec=*
Nodes=c063 CPU_IDs=10-13,20-23 Mem=3200 GRES_IDX=
MinCPUsNode=8 MinMemoryCPU=400M MinTmpDiskNode=0
Features=(null) DelayBoot=00:00:00
Gres=(null) Reservation=(null)
OverSubscribe=OK Contiguous=0 Licenses=(null) Network=(null)
Command=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.2/lipo2Nano_-0.2_17500_1.0472.sh --job-name=5NM_-0.2_17500_1.0472 -D /home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.2
WorkDir=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.2
StdErr=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.2/MD-185995-4294967294.err
StdIn=/dev/null
StdOut=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.2/MD-185995-4294967294.out
Power=
[jspngler@log001 ~] scontrol show job 186120
JobId=186120 JobName=lipo2Nano_-0.7_21500_2.0944.sh
UserId=jspngler(10123) GroupId=users(100) MCS_label=N/A
Priority=4294771739 Nice=0 Account=mlaradjilab QOS=normal
JobState=PENDING Reason=AssocMaxJobsLimit Dependency=(null)
Requeue=1 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
RunTime=00:00:00 TimeLimit=5-00:00:00 TimeMin=N/A
SubmitTime=2019-04-11T17:49:49 EligibleTime=2019-04-11T17:49:49
StartTime=Unknown EndTime=Unknown Deadline=N/A
PreemptTime=None SuspendTime=None SecsPreSuspend=0
LastSchedEval=2019-04-22T08:46:10
Partition=computeq AllocNode:Sid=log002:91002
ReqNodeList=(null) ExcNodeList=(null)
NodeList=(null)
NumNodes=1 NumCPUs=8 NumTasks=1 CPUs/Task=8 ReqB:S:C:T=0:0:*:*
TRES=cpu=8,mem=3200M,node=1
Socks/Node=* NtasksPerN:B:S:C=0:0:*:* CoreSpec=*
MinCPUsNode=8 MinMemoryCPU=400M MinTmpDiskNode=0
Features=(null) DelayBoot=00:00:00
Gres=(null) Reservation=(null)
OverSubscribe=OK Contiguous=0 Licenses=(null) Network=(null)
Command=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/lipo2Nano_-0.7_21500_2.0944.sh --job-name=5NM_-0.7_21500_2.0944 -D /home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7
WorkDir=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7
StdErr=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/MD-186120-4294967294.err
StdIn=/dev/null
StdOut=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/MD-186120-4294967294.out
Power=
[jspngler@log001 ~] scontrol update job 186120 minmemorycpu=300
[jspngler@log001 ~] scontrol show job 186120
JobId=186120 JobName=lipo2Nano_-0.7_21500_2.0944.sh
UserId=jspngler(10123) GroupId=users(100) MCS_label=N/A
Priority=4294771739 Nice=0 Account=mlaradjilab QOS=normal
JobState=PENDING Reason=AssocMaxJobsLimit Dependency=(null)
Requeue=1 Restarts=0 BatchFlag=1 Reboot=0 ExitCode=0:0
RunTime=00:00:00 TimeLimit=5-00:00:00 TimeMin=N/A
SubmitTime=2019-04-11T17:49:49 EligibleTime=2019-04-11T17:49:49
StartTime=Unknown EndTime=Unknown Deadline=N/A
PreemptTime=None SuspendTime=None SecsPreSuspend=0
LastSchedEval=2019-04-22T08:46:32
Partition=computeq AllocNode:Sid=log002:91002
ReqNodeList=(null) ExcNodeList=(null)
NodeList=(null)
NumNodes=1 NumCPUs=8 NumTasks=1 CPUs/Task=8 ReqB:S:C:T=0:0:*:*
TRES=cpu=8,mem=2400M,node=1
Socks/Node=* NtasksPerN:B:S:C=0:0:*:* CoreSpec=*
MinCPUsNode=8 MinMemoryCPU=300M MinTmpDiskNode=0
Features=(null) DelayBoot=00:00:00
Gres=(null) Reservation=(null)
OverSubscribe=OK Contiguous=0 Licenses=(null) Network=(null)
Command=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/lipo2Nano_-0.7_21500_2.0944.sh --job-name=5NM_-0.7_21500_2.0944 -D /home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7
WorkDir=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7
StdErr=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/MD-186120-4294967294.err
StdIn=/dev/null
StdOut=/home/jspngler/nanoPatch/test/2N_D10_vesicle/U_-0.7/MD-186120-4294967294.out
Power=