Web Services Interface Guide

Dellâ„¢ Lifecycle Controller 2 Web Services Interface Guide for Windows Version: 2.1.0
142
RebootRequired = Yes
ReturnValue = 0
SetResult = Set PendingValue
15.15 Setting the iSCSI Boot Target
The SetAttributes() method is used to set or change the values of the iSCSI boot target attributes.
Invoke the SetAttributes() method with the following parameters (from 15.1) and syntax:
Target: FQDD attained through DCIM_NICEnumeration
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. Possible choices are attained from PossibleValues field, such as:
Possible values: Disabled, Enabled
EXAMPLE:
winrm i SetAttributes 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:SetAttributes_iSCSI_BootTarget.xml
The information in the input file SetAttribute_iSCSI_BootTarget.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-1</p:Target>
<p:AttributeName>BootToTarget</p:AttributeName>
<p:AttributeValue>Enabled</p:AttributeValue>
<p:AttributeName>IscsiInitiatorIpAddr</p:AttributeName>
<p:AttributeValue>10.10.10.10</p:AttributeValue>
<p:AttributeName>IscsiInitiatorSubnet</p:AttributeName>
<p:AttributeValue>255.255.255.0</p:AttributeValue>
<p:AttributeName>IscsiInitiatorGateway</p:AttributeName>
<p:AttributeValue>10.10.10.1</p:AttributeValue>
<p:AttributeName>IscsiInitiatorPrimDns</p:AttributeName>
<p:AttributeValue>10.10.10.2</p:AttributeValue>
<p:AttributeName>IscsiInitiatorSecDns</p:AttributeName>
<p:AttributeValue>10.10.10.3</p:AttributeValue>
<p:AttributeName>IscsiInitiatorName</p:AttributeName>