Reference Guide

193 Lifecycle Controller Web Services Interface Guide for Linux
<n1:ReturnValue>0</n1:ReturnValue>
</n1:DeletePendingConfiguration_OUTPUT>
17.9 17.9 Managing BIOS Passwords
The ChangePassword() method is used to set the BIOS passwords. You can either set, change or delete
the BIOS System or setup password. Setting the BIOS password is performed in several stages as
described in the following sections.
17.9.1 Setting the BIOS Password
The following example sets the BIOS System password to “NEW_PASSWORD”. Three instances of XML
are shown below to demonstrate the following scenarios:
No BIOS password is set
Changing an existing BIOS password
Deleting an existing BIOS password
Invoke ChangePassword() method with the following parameters:
Target Obtained from any BIOS enumerate WS-Man command
PasswordType Either 1 for System or 2 for setup
OldPassword Reference following XML case A), B) or C)
NewPassword Reference following XML case A), B) or C)
EXAMPLE:
wsman invoke -a ChangePassword
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 change_bios_password.xml -j utf-8 -y basic
The input file change_bios_password.xml is shown below:
No BIOS password is set: The OldPassword parameter is not required. It may be set to “null” or
left blank as shown below.
Changing an existing BIOS password: Both the OldPassword and NewPassword parameters are
required.
NOTE: Entering only the NewPassword parameter indicates a “pass” in the setting and creating a
new job, however the job fails.
Deleting an existing BIOS password: The OldPassword parameter is required. The NewPassword
parameter may be set to “null”, set to blank, or omitted completely.
<p:ChangePassword_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:PasswordType>1</p:PasswordType>
<p:OldPassword></p:OldPassword>
<p:NewPassword>NEW_PASSWORD</p:NewPassword>
</p:ChangePassword_INPUT>
OUTPUT:
Either of the following may result:
<n1:ChangePassword_OUTPUT>
<n1:Message> BIOS does not support Change Password feature</n1:Message>