Web Services Interface Guide
196 Dell Lifecycle Controller Web Services Interface Guide for Windows
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>MaxBandwidth</p:AttributeName>
<p:AttributeValue>75</p:AttributeValue>
</p:SetAttributes_INPUT>
OUTPUT:
SetAttribute_OUTPUT
Message = The command was successful
MessageID = NIC001
RebootRequired = Yes
ReturnValue = 0
SetResult = Set PendingValue
15.12 Setting the VirtMacAddr Attribute
The SetAttribute() method is used to set or change the value of a CNA attribute. The I/O identity string
attributes: (VirtMacAddr, VirtIscsiMacAddr, VirtFIPMacAddr, VirtWWN, and VirtWWPN) display a unique
behavior. After setting them to a non-default value, the attribute values are retained until there is AC
power supply. If the AC power supply is disconnected, the attributes revert to their default values.
Invoke the SetAttribute() method with the following parameters and syntax:
Target: FQDD attained through DCIM_NICString
AttributeName: Attained from AttributeName field