The mjobctl command controls various aspects of jobs. It is used to submit, cancel, execute, and checkpoint jobs. It can also display diagnostic information about each job. The mjobctl command enables the Moab administrator to control almost all aspects of job behavior. See 11.0 General Job Administration for more details on jobs and their attributes.
Format
Flag
Name
Format
Default
Description
Example
-c
CANCEL
JOBID
---
Cancel a job
cancel job job1045
-C
CHECKPOINT
JOBID
---
Checkpoint a job
checkpoint job job1045
-h
HOLD
<HOLDTYPE> <JOBEXP>
<HOLDTYPE> = { user | batch | system | defer | ALL }
Modify a specific job attribute. NOTE: for priority, use the '-p' flag NOTE: Modification of the job dependency is also communicated to the RM in the case of SLURM and PBS/Torque
add 10 minutes to the job walltime
reset job's effective queue time
set the job variable Flag1 to TRUE
-M
MESSAGE
{<INTEGER>|sig<SIGNAME>}
---
send a signal to all jobs matching the job expression
send an interrupt signal to job 1664
send signal 47 to job 1664
-n
NAME
---
select jobs by job name
-p
PRIORITY
---
modify a job's system priority
add 1000 priority points to the job's overall priority
Add a "Where" constraint clause to the current command. The "Where" constraint only works for
completed jobs. CompletionTime will filter according to the completed jobs' completion times. StartTime will
filter according to the completed jobs' start times.
prints all completed jobs still in memory that completed between Jan. 1, 2007 and Mar. 1, 2007
-x
EXECUTE
JOBID
---
Execute a job.
execute job job1045
Parameters
Name
Format
Default
Description
Example
JOB EXPRESSION
<STRING>
---
the name of a job or a regular expression for several jobs
NOTE: Moab uses regular expressions conforming to the POSIX 1003.2 standard. This standard is somewhat different than the regular expressions commonly used for filename matching in Unix environments. (see 'man 7 regex') To interpret a job expression as a regular expression, either specify the expression using a designated expression or wildcard character (one of '[]*?^$') or set the parameter USEJOBREGEX to TRUE
NOTE: In most cases, it is necessary to quote the job expression (i.e. "job13[5-9]") to prevent the shell from intercepting and interpreting the special characters.