Reference Guide

132 Lifecycle Controller Web Services Interface Guide for Linux
<n1:MessageID>BOOT001</n1:MessageID>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:ChangeBootOrderByInstanceID_OUTPUT>
14.5 Enable or Disable the Boot SourceChangeBootSourceState()
The ChangeBootSourceState() method is called to change the enabled status of
BootSourceSetting instances to Disable or Enable. The input parameter, source, is an array of
InstanceID of BootSourceSetting instances. Enumerating the BootSourceSetting Class in Section 14.3,
displays the CurrentEnabledStatus field which provides the applicable status.
Note 1: In order for the changes to be applied, the CreateTargetedConfigJob() method in Section 17.7
must be ran.
Note 2: BIOS does not support the setting of EnabledState for BCV devices.
Invoke ChangeBootSourceState() with the following parameters and syntax:
[INSTANCE ID]: Obtained from the BootSourceSetting Class enumeration, this example uses the
field IPL.
source: Reference to the InstanceID attribute from Section 14.3
EnabledState: State of boot source element. Disabled=0, Enabled=1
EXAMPLE:
wsman invoke -a ChangeBootSourceState
http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BootConfigSett
ing?InstanceID=$INSTANCEID
-h $IPADDRESS -V -v -c dummy.cert -P 443
-u $USERNAME -p $PASSWORD
-J ChangeBootSourceState.xml -j utf-8 -y basic
The input file ChangeBootSourceState.xml is shown below:
<p:ChangeBootSourceState_INPUT
xmlns:p=“http://schemas.dmtf.org/wbem/wscim/1/cimschema/2/root/dcim/DCIM_BootC
onfigSetting">
<p:EnabledState>0</p:EnabledState>
<p:source>IPL:Optical.SATAEmbedded.A1:
eb8aeb15796fb85f8e1447f0cfb8a68e</p:source>
</p:ChangeBootSourceState_INPUT>
OUTPUT:
<n1:ChangeBootSourceState_OUTPUT>
<n1:Message>The command was successful</n1:Message>
<n1:MessageID>BOOT001</n1:MessageID>
<n1:ReturnValue>0</n1:ReturnValue>
</n1:ChangeBootSourceState_OUTPUT>
The source input is obtained
from the BootSourceSetting
inventory in Section 14.3