Reference Guide

189 Lifecycle Controller Web Services Interface Guide for Linux
EXAMPLE:
wsman invoke -a SetAttribute
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BIOSService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_BIOSService
,SystemName=DCIM:ComputerSystem,Name=DCIM:B IOSService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetAttribute_BIOS.xml -j utf-8 -y basic
The input file SetAttribute_BIOS.xml is shown below:
<p:SetAttribute_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BIOSS
ervice”>
<p:Target>BIOS.Setup.1-1</p:Target>
<p:AttributeName>BootMode</p:AttributeName>
<p:AttributeValue>Bios</p:AttributeValue>
</p:SetAttribute_INPUT>
OUTPUT:
<n1:SetAttribute_OUTPUT>
<n1:Message>The command was successful</n1:Message>
<n1:MessageID>BIOS001</n1:MessageID>
<n1:RebootRequired>Yes</n1:RebootRequired>
<n1:ReturnValue>0</n1:ReturnValue>
<n1:SetResult>Set PendingValue</n1:SetResult>
</n1:SetAttribute_OUTPUT>
17.4 Setting Multiple BIOS BootMode Parameters
You can find and set multiple BIOS attributes associated with a specific device using the SetAttributes()
method. This example illustrates how to set the BiosMode and BootSeqRetry parameters.
Invoke SetAttributes() with the following parameters (from Section 17.1) and syntax:
TARGET: Obtained from the InstanceID field
AttributeName: Obtained from the AttributeName field
AttributeValue: Obtained from the PossibleValues field
EXAMPLE:
wsman invoke -a SetAttributes
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BIOSService?
SystemCreationClassName=DCIM_ComputerSystem,CreationClassName=DCIM_BIOSService
,SystemName=DCIM:ComputerSystem,Name=DCIM:BIOSService
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J SetAttributes_BIOS.xml -j utf-8 -y basic
The input file SetAttributes_BIOS.xml is shown below:
<p:SetAttributes_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BIOSS
ervice”>
<p:Target>BIOS.Setup.1-1</p:Target>
<p:AttributeName>BootMode</p:AttributeName>
<p:AttributeValue>Bios</p:AttributeValue>
<p:AttributeName>BootSeqRetry</p:AttributeName>
<p:AttributeValue>Disabled</p:AttributeValue>