Web Services Interface Guide
125 Dell Lifecycle Controller Web Services Interface Guide for Windows
+Name=DCIM:LCService -file:[DIRECTORYPATH]\SetAttribute_LC.xml -
r:https://[IPADDRESS]:443/wsman -u:[USER] -p:[PASSWORD]
-auth:basic -encoding:utf-8 -SkipCNCheck -SkipCACheck
The input file SetAttribute_LC.xml is shown below:
<p:SetAttribute_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService">
<p:AttributeName>Part Firmware Update</p:AttributeName> <p:AttributeValue>Allow
version upgrade only</p:AttributeValue>
</p:SetAttribute_INPUT>
This method is used to set the values of multiple attributes.
Invoke SetAttributes() with the following parameters and syntax:
EXAMPLE 2:
winrm i SetAttributes http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService ?SystemCreationClassName=DCIM_ComputerSystem
+CreationClassName=DCIM_LCService +SystemName=DCIM:ComputerSystem
+Name=DCIM:LCService -file:[DIRECTORYPATH]\SetAttributes_LC.xml
-r:https://[IPADDRESS]:443/wsman -u:[USER] -p:[PASSWORD] -auth:basic -
encoding:utf-8 -SkipCNCheck -SkipCACheck
The input file SetAttributes_LC.xml is shown below:
<p:SetAttributes_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_LCService">
<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:
SetAttribute_OUTPUT
RebootRequired = No
ReturnValue = 0
SetResult = Set PendingValue