This section demonstrates how Moab uses the Moab RM language (formerly called WIKI) to communicate with SLURM. For SLURM configuration instructions, see the Moab-SLURM Integration Guide.
Only nodes updated more recently than <UPDATETIME> will be
returned where <UPDATETIME> is specified as the epoch time of interest.
Setting <UPDATETIME> to '0' will return information for all nodes. Specify
a colon delimited list of NODEID's if specific nodes are desired or use the keyword
'ALL' to receive information for all nodes.
W.2.1.1.2 Moab RM Language Resources
Response Format
The query resources response format is one or more line of the following format
(separated with a newline, " "):
<NODEID> <ATTR>=<VALUE>[;<ATTR>=<VALUE>]...
<ATTR> is one of the names in the table below and the format of <VALUE> is dependent on <ATTR>.
Moab RM Language Query Resources
Example
request:
response:
W.2.1.2 Moab RM Language Query Workload
W.2.1.2.1 Moab RM Language Query Workload Request
Format
Only jobs updated more recently than <UPDATETIME> will be
returned where <UPDATETIME> is specified as the epoch time of interest.
Setting <UPDATETIME> to '0' will return information for all jobs. Specify a
colon delimited list of JOBID's if information for specific jobs is desired or use the
keyword 'ALL' to receive information about all jobs.
W.2.1.2.2 Moab RM Language Query Workload
Response Format
FIELD is
either the text name listed below or 'A<FIELDNUM>'
(ie, 'UPDATETIME' or 'A2')
STATUSCODE values:
0 SUCCESS -1
INTERNAL ERROR
RESPONSE is a statuscode
sensitive message describing error or state details
W.2.1.2.3 Moab RM Language Query Workload
Example
W.2.1.3 StartJob
The 'StartJob'
command may only be applied to jobs in the 'Idle' state. It causes the job to
begin running using the resources listed in the NodeID list.
STATUSCODE >= 0
indicates SUCCESS STATUSCODE < 0
indicates FAILURE RESPONSE is a
text message possibly further describing an error or state
W.2.1.4 CancelJob
The
'CancelJob' command, if applied to an active job, will terminate its execution.
If applied to an idle or active job, the CancelJob command will change the job's state
to 'Canceled'.
send CMD=CANCELJOB ARG=<JOBID>
TYPE=<CANCELTYPE>
<CANCELTYPE> is one of the following:
ADMIN
(command initiated by scheduler administrator) WALLCLOCK (command initiated by scheduler because job exceeded its
specified wallclock limit)
receive SC=<STATUSCODE> RESPONSE=<RESPONSE>
STATUSCODE >= 0
indicates SUCCESS STATUSCODE < 0
indicates FAILURE RESPONSE is a
text message further describing an error or state
W.2.1.5 SuspendJob
The
'SuspendJob' command can only be issued against a job in the state 'Running'.
This command suspends job execution and
results in the job changing to the 'Suspended' state.
send CMD=SUSPENDJOB ARG=<JOBID>
receive SC=<STATUSCODE> RESPONSE=<RESPONSE>
STATUSCODE >= 0
indicates SUCCESS STATUSCODE < 0
indicates FAILURE RESPONSE is a
text message possibly further describing an error or state
W.2.1.6 ResumeJob
The
'ResumeJob' command can only be issued against a job in the state 'Suspended'.
This command resumes a suspended job returning it to the 'Running' state.
send CMD=RESUMEJOB ARG=<JOBID>
receive SC=<STATUSCODE> RESPONSE=<RESPONSE>
STATUSCODE >= 0
indicates SUCCESS STATUSCODE < 0
indicates FAILURE RESPONSE is a
text message further describing an error or state
W.2.1.7 RequeueJob
The
'RequeueJob' command can only be issued against an active job in the state 'Starting'
or 'Running'. This command requeues the job, stopping execution and returning the job to an idle state in the queue. The requeued job will
be eligible for execution the next time resources are available.
send CMD=REQUEUEJOB ARG=<JOBID>
receive SC=<STATUSCODE> RESPONSE=<RESPONSE>
STATUSCODE >= 0
indicates SUCCESS STATUSCODE < 0
indicates FAILURE RESPONSE is a
text message further describing an error or state
W.2.1.8 SignalJob
The
'SignalJob' command can only be issued against an active job in the state 'Starting' or
'Running'. This command signals the job, sending the specified signal to the
master process. The signalled job will be remain in the same state it was before
the signal was issued.