HP iLO 3 Scripting and Command Line Guide
3 LOCFG.PL usage
LOCFG.PL Utility
To use the LOCFG.PL utility, you must have the following PERL modules:
• Net::SSLeay
• IO::Socket::SSL
You must also have a valid iLO user account and password for each XML script to use LOCFG.PL.
To process the request, your account must have the appropriate iLO privileges.
The LOCFG.PL script connects to iLO using an SSL connection.
For example:
perl locfg.pl -s {servername|ipaddress}[:port] [-l logfilename]-f
input_filename [-u username -p password] [iLO 3]
LOCFG.PL command line switches
The following command line switches are available to be used with LOCFG.PL:
Table 3 LOCFG.PL command line switches
EffectSwitch
DNS name of target server.-s servername
Do not use this switch if launching from HP SIM.
IP address of the target server.-s ipaddress
Do not use this switch if launching from HP SIM.
If a port is not specified, the port defaults to :443.:port
Name of the file to log all output to.-l logfilename
A default file with the server name and IP address is created if this option is not specified.
Do not use this switch if launching from HP SIM.
Filename containing the RIB commands.-f input_filename
Command line user name. Entering this at the command line overrides the user login name
from the script.
-u username
1
Command line password. Entering this at the command line overrides the password from
the script.
-p password
1
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.
-t namevaluepairs
Enables interactive input of username and password.-i
Enables verbose message mode. The resulting log file contains all commands sent, all
responses received, and any errors. By default, only errors and responses from GET
commands are logged without this switch.
-v
Specifies the type of targeted management processor.iLO 3
This flag is optional. Without this flag, LOCFG.PL detects the iLO type automatically. The
iLO 3 firmware performs better when this flag is present.
1
Use -u and -p with caution, because command line options are visible on Linux systems.
For more information, see “RIBCL XML Scripting Language” (page 60).
LOCFG.PL Utility 21










