Web Services Interface Guide
197 Dell Lifecycle Controller Web Services Interface Guide for Windows
AttributeValue: A new value to assign to the specified NICAttribute. If this value is valid, it is applied to the
PendingValue property or the Currentvalue property of the specified NICAttribute. The range of
acceptable strings is present in the MinLength and MaxLength fields.
EXAMPLE:
winrm i SetAttribute http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_NICService ?SystemCreationClassName=DCIM_ComputerSystem
+CreationClassName=DCIM_NICService +SystemName=DCIM:ComputerSystem
+Name=DCIM:NICService -u:[USER] -p:[PASSWORD]
-r:https://[IPADDRESS]/wsman -SkipCNcheck -SkipCAcheck -encoding:utf-8 -a:basic
-file:SetAttribute_NIC.xml
The input file SetAttribute_NIC.xml is shown below:
<p:SetAttributes_INPUT xmlns:p="http://schemas.dmtf.org/wbem/wscim/1/cim-
schema/2/root/dcim/DCIM_NICService">
<p:Target>NIC.Integrated.1-1-2</p:Target>
<p:AttributeName>VirtMacAddr</p:AttributeName>
<p:AttributeValue>11:22:33:44:55:66</p:AttributeValue>
</p:SetAttributes_INPUT>
OUTPUT:
SetAttribute_OUTPUT
Message = The command was successful
MessageID = NIC001
RebootRequired = Yes
ReturnValue = 0
SetResult = Set PendingValue
15.13 Setting the LegacyBootProto Attribute
The SetAttribute() method is used to set or change the value of a NIC attribute.
WARNING: The local BIOS setting always overwrites the LegacyBootProto option. This option is only
applied in the BIOS setup. By setting this attribute remotely, it appears that the value is set, but it really did
not because the local BIOS setting overrides it. Running a ‘get’ on the attribute remotely displays a
different current value.