Reference Guide
96 Lifecycle Controller Web Services Interface Guide for Linux
wsman invoke -a SetAttributes
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_LCService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_LCService,
SystemName=DCIM:ComputerSystem,Name=DCIM:LCService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetAttributes_LC.xml -j utf-8 -y basic
The input file SetAttributes_LC.xml is shown below:
<p:SetAttributes_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_LCSer
vice">
<p:AttributeName>Part Firmware Update</p:AttributeName>
<p:AttributeValue>Allow version upgrade only</p:AttributeValue>
<p:AttributeName>Collect System Inventory on Restart</p:AttributeName>
<p:AttributeValue>Enabled</p:AttributeValue>
</p:SetAttributes_INPUT>
OUTPUT:
<n1:SetAttribute_OUTPUT>
<n1:RebootRequired>No</n1:RebootRequired>
<n1:ReturnValue>0</n1:ReturnValue>
<n1:SetResult>Set PendingValue</n1:SetResult>
</n1:SetAttribute_OUTPUT>
12.2 Part Replacement Configuration and Management
If the SetAttribute[s]() method has been invoked, the pending values must be applied by creating a
configuration job. The CreateConfigJob() method in the DCIM_LCService class creates a configuration
job and runs it at the specified time.
12.2.1 Create Config Job
Invoke CreateConfigJob() with the following parameters and syntax:
EXAMPLE:
wsman invoke -a CreateConfigJob
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_LCService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_LCService,
SystemName=DCIM:ComputerSystem,Name=DCIM:LCService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J CreateConfigJob.xml
-j utf-8 -y basic
The input file CreateConfigJob.xml is shown below:
<p:CreateConfigJob_INPUT
xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_LCSer
vice">
<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.