Technical White Paper
schema/2/root/dcim/DCIM_LCService">
<p:ScheduledStartTime>00000000002200.000000:000</p:ScheduledStartTime>
<p:RebootIfRequired>false</p:RebootIfRequired>
</p:CreateConfigJob_INPUT>
The above command will schedule the job at 10pm. To poll for job completion, enumerate the
DCIM_LifecycleJob
job instance.
OUTPUT:
<n1:CreateConfigJob_OUTPUT>
<n1:Job>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anon
ymous</wsa:Address>
<wsa:ReferenceParameters>
<wsman:ResourceURI>http://schemas.dell.com/wbem/wscim/1/cimschema/
2/DCIM_LifecycleJob</wsman:ResourceURI>
<wsman:SelectorSet>
<wsman:Selector Name="InstanceID">JID_001300726718</wsman:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Selector>
</wsman:SelectorSet>
</wsa:ReferenceParameters>
</n1:Job>
<n1:ReturnValue>4096</n1:ReturnValue>
</n1:CreateConfigJob_OUTPUT>
To get the status of the above
jobID
or list all
jobIDs
, see 12.2.2 and 12.2.3, respectively.
12.2.2 Get LC Config Job Status
EXAMPLE:
wsman get http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_LifecycleJob
?__cimnamespace=root/dcim,InstanceID=JID_001300726718
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD -j utf-8 -y basic
The method either returns a list of Concrete job objects or a message is displayed indicating an error.
Check for the
JobStatus
property equal to
Completed
(shown below) to know the set has been
completed.
OUTPUT:
<n1:DCIM_LifecycleJob>
<n1:InstanceID>JID_001300726718</n1:InstanceID>
<n1:JobStartTime>20191010101010</n1:JobStartTime>
<n1:JobStatus>COMPLETED</n1:JobStatus>
<n1:JobUntilTime>2009:8:11</n1:JobUntilTime>
<n1:Message>The command was successful</n1:Message>
<n1:MessageID>LC001</n1:MessageID>
<n1:Name>LC Config</n1:Name>
<n1:PercentComplete>NA</n1:PercentComplete>
</n1:DCIM_LifecycleJob>
12.2.3 List All LC Jobs
EXAMPLE:
wsman enumerate http://schemas.dell.com/wbem/wscim/1/cim-schema/2/DCIM_LifecycleJob
?__cimnamespace=root/dcim -h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD -j utf-8 -y basic