iLO 2 Scripting and Command Line Guide

NOTE:
If you are not using the command line to enter the user name and password, and are using
the XML file, 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:
'admin"admin'
If you use CPQLOCFG or LOCFG, and enter the password or command 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 or command 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 or command 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 or command 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 the IT administrator preferences.
The -L switch defines the log file name and file location. 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.
NOTE: Do not use this switch if launching from HP SIM.
The output values may 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 name-value pairs. Separate multiple name-value pairs 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>
From the command line, enter:
cpqlocfg -f filename -s serverip -t user=Admin,password=pass
CPQLOCFG parameters 53