beautypg.com

2 view or download oa command documentation – HP OneView User Manual

Page 160

background image

Extract a script from a configured OA with the SHOW CONFIG CLI command. See the online
help for Enclosures for more information.

Copy an existing configuration script from the Enclosures or Enclosure Groups screen, and
then paste it into a new enclosure group. Edit the script as necessary before clicking OK to
apply. See the online help for Enclosures or Enclosure Groups for more information.

By entering a configuration script on the Enclosure Groups screen, a copy of the configuration
script is stored with every enclosure you add that is associated with that enclosure group.

The configuration script is run on the enclosure when:

You add an enclosure and the associated enclosure group contains a configuration script.

You edit the configuration script of an enclosure. Clicking OK to save your changes will run
the script.

You select Enclosures

→Actions→Reapply configuration to re-run the OA configuration script

associated with the enclosure (not the enclosure group). The action also verifies that SSO,
SNMP and NTP are configured correctly on the enclosure and that the OA firmware is up to
date. The action takes place immediately and requires no other interaction unless there is lost
connectivity to the enclosure, in which case you are prompted to re-enter the OA IP address
or host name and credentials.

You select Enclosures

→Actions→Update from group which copies the enclosure configuration

script from the associated enclosure group to the enclosure and then runs the script.

You can initially enter passwords, SNMP community strings, and pass phrases in plain text as you
create an enclosure or enclosure group script. However, all passwords, SNMP community strings,
and pass phrases are masked (replaced by *********) in any UI or REST API response and are
never displayed in plain text.

If you replace the ********* password string with another string and rerun the script, the password
is changed to the new string. Note that some commands cannot be run a second time. For example,
if you rerun the ADD USER username ********* command on the same enclosure and have
changed the ********* string, the command will fail because that user already exists. In this
situation, remove the newly added user before you rerun the script.

If any part of the command that is returned with ********* is changed, and you do not replace
*********

with another string, the value of the password or the SNMP community string becomes

*********. For example, if you submit the script with the command SET USER PASSWORD
user_name1 new_password

, the script returns SET USER PASSWORD user_name1

*********

. If you change the command to SET USER PASSWORD user_name2 *********, the

password for user_name2 is set to *********, and not new_password.

A subset of OA commands is disallowed in the enclosure configuration script to prevent conflicts
with the appliance configuration and settings. There is no syntax checking or other validation of
the remaining script. See

“Disallowed OA commands” (page 161)

for a list of the OA commands

not allowed in a configuration script.

“View or download OA command documentation” (page 160)

for a complete reference of OA

commands.

20.6.2 View or download OA command documentation

For a complete reference of OA commands, view or download the HP BladeSystem Onboard
Administrator Command Line Interface User Guide
from the HP Support Center.

Viewing or downloading OA command documentation

1.

Go to

http://www.hp.com/go/hpsc

.

2.

Select Manuals from the left navigation pane.

3.

Enter HP Onboard Administrator in the Search box.

4.

Select the returned result, HP Onboard Administrator.

160 Managing enclosures and enclosure groups