Reference Guide

145 Lifecycle Controller Web Services Interface Guide for Linux
<p:AttributeValue>PXE</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.14 Setting CNA LAN Modes
The SetAttributes() method is used to set or change the values of a group of NIC attributes.
Invoke SetAttributes() with the following parameters (from Section 15.1) and syntax:
Target: FQDD attained through DCIM_NICEnumeration
AttributeName: Attained from AttributeName field
AttributeValue: A new value assigned to the specified NICAttribute. If this value is valid, it will be
applied to the PendingValue property or the Currentvalue property of the specified NICAttribute.
Possible selections are attained from PossibleValues field.
EXAMPLE:
wsman invoke -a SetAttributes
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 SetAttributes_NIC_LAN_Modes.xml -j utf-8 -y basic
The input file SetAttributes_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.Embedded.1-1</p:Target>
<p:AttributeName>LegacyBootProto</p:AttributeName>
<p:AttributeValue>PXE</p:AttributeValue>
<p:AttributeName>LnkSpeed</p:AttributeName>
<p:AttributeValue>10Mbps Half</p:AttributeValue>
<p:AttributeName>WakeOnLan</p:AttributeName>
<p:AttributeValue>Disabled</p:AttributeValue>
<p:AttributeName>VLanMode</p:AttributeName>
<p:AttributeValue>Enabled</p:AttributeValue>
<p:AttributeName>IscsiTgtBoot</p:AttributeName>
<p:AttributeValue>OneTime Disabled</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>