HP Integrated Lights-Out 2 Management Processor Scripting and Command Line Resource Guide

NOTE:
If you are not using the command line to enter the user name and password, and are using
the XML file, you can use the double-quotes special character (). However, if you use in
the password in the XML file, you must change the outside double quotes to single quotes, for
example: adminadmin.
If you use CPQLOCFG or LOCFG, and enter the password on the command line with the -p
option, you cannot use the double-quotes special character (). There are two other special
characters, the ampersand (&), and the less-than sign (<) that need to be treated differently.
To enter a password that uses either of these special characters requires the user to put
double-quotes around the password, for example: "admin&admin" or "admin<admin".
If you use LOCFG and enter the password on the command line with the -i option, you do
not need double-quotes around the password, for example: admin&admin or admin<admin.
The password does not work with the double-quotes () if you use the -i option.
The -L and -V switches might or might not be set depending on IT administrator preferences.
The -L switch defines where the log file is generated and what the file name is. If this switch
is omitted, a default log file with the DNS name or the IP address is created in the same
directory used to launch CPQLOCFG.
Do not use the -L switch if you are launching from HP SIM.
NOTE: The output values might need to be modified to match the RIBCL syntax.
The -L switch cannot designate an output log file. A default log file named with the DNS
name or the IP address is created in the same directory where CPQLOCFG is launched.
The optional -V switch turns on the verbose message return. The resulting log file contains all
commands sent to the Remote Insight board, all responses from the Remote Insight board, and
any errors. By default, only errors and responses from GET commands are logged without
this switch.
The -t namevaluepairs switch substitutes variables (%variable%) in the input file with
values specified in namevaluepairs. Separate multiple namevaluepairs with a comma
(,).
For example:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="%user%" PASSWORD="%password%">
<USER_INFO MODE="read">
<GET_ALL_USERS/>
</USER_INFO>
</LOGIN>
</RIBCL>
Using a command line enter:
Cpqlocfg -f filename -s serverip -t user=Admin,password=pass
If the parameter contains multiple words, you must enclose the phrase within double quotes
(""). Up to 25 variables are supported in an XML file. The maximum length of variable name
is 48 characters.
Web agent example:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<RIB_INFO MODE="write">
<MOD_SNMP_IM_SETTINGS>
50 Group administration and iLO 2 scripting