Technical White Paper
</p:SetupJobQueue_INPUT>
Here the
JobArray
element shows a list of
Jobids
that are to be scheduled to run.
TIME_NOW
is a
special value that represents “running the tasks immediately”. The
UntilTime
value specifies the
“maintenance windows”. Once a task is not run after passing
UntilTime
, it should not be run again.
Upon successfully invocation of the SetupJobQueue() method, the aforementioned times will be
listed when enumerated in Section 10.2.3.
OUTPUT:
Returns 0 for success or non-zero for error with
messageID
and message description.
<n1:SetupJobQueue_OUTPUT>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:SetupJobQueue_OUTPUT>
Entering an invalid
jobid
or XML syntax error can yield one of the following error messages:
<n1:SetupJobQueue_OUTPUT>
<n1:Message> Job Cannot be Scheduled </n1:Message>
<n1:MessageID>SUP016</n1:MessageID>
<n1:ReturnValue>2</n1:ReturnValue>
</n1:SetupJobQueue_OUTPUT>
<n1:SetupJobQueue_OUTPUT>
<n1:Message>Invalid Job Id </n1:Message>
<n1:MessageID>SUP011</n1:MessageID>
<n1:ReturnValue>2</n1:ReturnValue>
</n1:SetupJobQueue_OUTPUT>
10.2.2 Delete Job Queue
The DeleteJobQueue() method takes in a
jobID
and then deletes it from the job store.
Note: When clearing all jobs and pending data using the keyword
JID_CLEARALL
, as shown in
example 2, the remote services instrumention is restarted to clear the cache [LC 1.x ONLY]. Users
should allow two minutes for this process to complete.
Invoke DeleteJobQueue() with the following parameters and syntax:
[JobID]: The jobID of a particular job instance to be deleted from a jobqueue
EXAMPLE 1:
wsman invoke -a DeleteJobQueue
http://schemas.dmtf.org/wbem/wscim/1/cimschema/
2/root/dcim/DCIM_JobService
?SystemCreationClassName=DCIM_ComputerSystem,
CreationClassName=DCIM_JobService,SystemName=Idrac,Name=JobService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD -k JobID="JobID"
-j utf-8 -y basic
The example below uses JID_CLEARALL for the
jobID
, which is a predefined value that represents
“deleting all jobs in the jobstore”.