HP Integrated Lights-Out 2 Management Processor Scripting and Command Line Resource Guide
HPONCFG /f add_user.xml /s username="test user",login="testlogin",password=testpasswd
Example 2: In this example, %host_power% is a variable.
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<SERVER_INFO MODE="write">
<!-- Modify the HOST_POWER attribute to toggle power on the host server -->
<!-- HOST_POWER="No" (Turns host server power off) -->
<!-- A graceful shutdown will be attempted for ACPI-aware -->
<!-- operating systems configured to support graceful shutdown. -->
<!-- HOST_POWER="Yes" (Turns host server power on) -->
<SET_HOST_POWER HOST_POWER="%host_power%"/>
</SERVER_INFO>
</LOGIN>
</RIBCL>
• To power on the system, enter:
HPONCFG /f Set_Host_Power.xml /s host_power=YES
• To power off the system, enter:
HPONCFG /f Set_Host_Power.xml /s host_power=NO
Capturing and restoring a configuration
You can use HPONCFG to capture basic configuration information in an XML readable file format
and use the file to set or restore the configuration of the management processor. This feature is
available with HPONCFG version 1.2 and greater which writes the configuration information in
HP RIBCL format.
• To capture a configuration, you must specify the name and location of the output file on the
command line. For example:
HPONCFG /w config.xml
The utility displays a message when it successfully writes the configuration information to the
output file as requested. The following is an example of the contents of the output file:
<!-- HPONCFG VERSION = "1.2" -->
<!-- Generated 07/06/05 09:06:51 -->
<RIBCL VERSION="2.1">
<LOGIN USER_LOGIN="Administrator" PASSWORD="password">
<DIR_INFO MODE="write">
<MOD_DIR_CONFIG>
<DIR_AUTHENTICATION_ENABLED VALUE = "N"/>
<DIR_LOCAL_USER_ACCT VALUE = "Y"/>
<DIR_SERVER_ADDRESS VALUE = ""/>
<DIR_SERVER_PORT VALUE = "636"/>
<DIR_OBJECT_DN VALUE = ""/>
<DIR_OBJECT_PASSWORD VALUE = ""/>
<DIR_USER_CONTEXT_1 VALUE = ""/>
<DIR_USER_CONTEXT_2 VALUE = ""/>
<DIR_USER_CONTEXT_3 VALUE = ""/>
</MOD_DIR_CONFIG>
</DIR_INFO>
<RIB_INFO MODE="write">
68 HPONCFG online configuration utility










