Reference Guide

143 Lifecycle Controller Web Services Interface Guide for Linux
AttributeValue: A new value assigned to the specified NICAttribute. If this value is valid, it is applied
to the PendingValue property or the Currentvalue property of the specified NICAttribute. Range of
selection is attained from the LowerBound and UpperBound fields:
LowerBound = 0
UpperBound = 100
EXAMPLE:
wsman invoke -a SetAttribute
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_NICService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_NICService,
SystemName=DCIM:ComputerSystem,Name=DCIM:NICService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetAttribute_CNA_MaxBandwidth.xml
-j utf-8 -y basic
The input file SetAttribute_NIC.xml is shown below:
<p:SetAttributes_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_NICSe
rvice">
<p:Target>NIC.Integrated.1-1-2</p:Target>
<p:AttributeName>MaxBandwidth</p:AttributeN ame>
<p:AttributeValue>75</p:AttributeValue>
</p:SetAttributes_INPUT>
OUTPUT:
<n1:SetAttribute_OUTPUT>
<n1:Message>The command was successful</n1:Message>
<n1:MessageID>NIC001</n1:MessageID>
<n1:RebootRequired>Yes</n1:RebootRequired >
<n1:ReturnValue>0</n1:ReturnValue>
<n1:SetResult>Set PendingValue</n1:SetResult >
</n1:SetAttribute_OUTPUT>
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
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:
wsman invoke -a SetAttribute
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_NICService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_NICService,
SystemName=DCIM:ComputerSystem,Name=DCIM:NICService
-h $IPADDRESS -V -v -c dummy.cert -P 443