Reference Guide

97 Lifecycle Controller Web Services Interface Guide for Linux
OUTPUT:
<n1:CreateConfigJob_OUTPUT>
<n1:Job>
<wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/an
onymous</wsa:Address>
<wsa:ReferenceParameters>
<wsman:ResourceURI>http://schemas.dell.com/wbem/wscim/1/cimsche
ma/2/DCIM_LifecycleJob</wsman:ResourceURI>
<wsman:SelectorSet>
<wsman:Selector Name="InstanceID">JID_001300726718</wsman
:Selector>
<wsman:Selector Name="__cimnamespace">root/dcim</wsman:Se
lector>
</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_Lifecyc
leJob?__cimnamespace=root/dcim
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-j utf-8 -y basic
OUTPUT:
DCIM_LifecycleJob
InstanceID = JID_001272324322
JobStartTime