Configuring HP Lights-Out 100 (LO100) Remote Management from the Host Operating System

Spread the love

I recently had to configure the HP Lights-Out 100 (LO100) Remote Management on a HP ProLiant ML150 G6. Due to the server being in operation I wanted to configure the LO100 from the host operating system (Windows Server 2008r2). On iLO equipped HP servers there is the HP Lights-Out Online Configuration Utility for that, but for LO100 another tool needs to be used.

A brief internet search led me to a very useful serverfault question of which the answers led me the way. lo100cfg.exe is the tool to use. It’s part of the SmartStart Scripting Toolkit which is available on the HP homepage. For the HP ProLiant ML150 G6 the Windows Server 2008 r2 download can be found here.

smartstart-scripting-toolkit

Installation is straight forward. Once installed the lo100cfg.exe can be found in the C:\SWSetup\SP50308\Tools\System directory.

How to Check the Current Configuration

Start the command line and navigate into C:\SWSetup\SP50308\Tools\System. Executing lo100cfg.exe without arguments will show the syntax and supported arguments.

C:\SWSetup\SP50308\Tools\System>lo100cfg.exe
Lights Out 100 Config v1.2-4
Copyright 2008 Hewlett-Packard Development Company, L.P.

loo100cfg [ -h | -x | -v | -i "file.xml" | -k "<xml/>" | -o "file.xml" | -s ]

Supported Arguments:
-h               - List of command line arguments supported and descriptions.
-x               - Displays example XML to perform configuration tasks.
-v               - Output the current copyright and version information.
-i "file.xml"    - Load and run the given XML configuration file.
-k "<xml/>"      - Load and run the XML-formatted configuration string.
-o "file.xml"    - Save the current configuration to a file.
-s               - Output the current configuration to the console.

To get the current configuration the command argument -s is used. The current configuration is returned to the console in XML format.

C:\SWSetup\SP50308\Tools\System>lo100cfg.exe -s
<lo100cfg>
  <summary>
    <firmware version= ...

How to Set a Static IP Address

To configure the management NIC with a static IP an XML file containing the  designated XML configuration parameters is needed. Lets assume we need the management NIC to have the IP 10.10.10.18, subnet mask 255.255.252.0 and gateway IP 10.10.10.1 . The XML file would look as follows:

<lo100cfg>
  <nic mode="static">
    <ipv4 address="10.10.10.18" mask="255.255.252.0" gateway="10.10.10.1" />
  </nic>
</lo100cfg>

To apply the configuration to the management processor we need to execute the lo100cfg.exe with the -i argument followed by the filename.

C:\SWSetup\SP50308\Tools\System>lo100cfg.exe -i nic.xml

How to Add a User Account

Another useful configuration task is to add a user account. The XML file to create a user account would look like this:

<lo100cfg>
  <users>
    <add_user id="ID" name="NAME" password="PASSWORD" privilege_level="PRIVILEGE_LEVEL" />
  </users>
</lo100cfg>

The valid values for the parameters are the following:

id=[1-16]
privilege_level="user|operator|administrator|oem"

To apply the configuration to the management processor we use the same argument as before with the new filename.

C:\SWSetup\SP50308\Tools\System>lo100cfg.exe -i user.xml

Further Examples

Executing the command lo100cfg.exe -x will give you some more configuration examples to adjust the management processor to your needs.

C:\SWSetup\SP50308\Tools\System>lo100cfg.exe -x
Lights Out 100 Config v1.2-4
Copyright 2008 Hewlett-Packard Development Company, L.P.

Example output from an LO100 module:
<lo100cfg>
   <license_key key="12345-12345-12345-12345-12345" />
   <power restore_policy="power_off" />
   <serial_port mode="dedicated" />
   <nic mode="dhcp" type="dedicated">
      <ipv4 address="10.10.10.18" mask="255.255.252.0" gateway="10.10.10.1" />
      <firewall http_active="yes" ping_active="yes" telnet_active="yes" />
   </nic>
   <users>
      <user id="1" name="" privilege_level="user" />
      <user id="2" name="operator" privilege_level="operator" />
      <user id="3" name="admin" privilege_level="admin" />
      <user id="4" name="oem" privilege_level="oem" />
   </users>
</lo100cfg>

XML configuration parameters and requirements:
power restore_policy="power_off|power_restore|power_on"
serial_port mode="dedicated|shared"
nic mode="dhcp|static"
nic type="dedicated|shared"
ipv4 address="0.0.0.0"
ipv4 mask="0.0.0.0"
ipv4 gateway="0.0.0.0"
firewall http_active="yes|no"
firewall ping_active="yes|no"
firewall telnet_active="yes|no"
users add_user id=[1-16] name="user" password="user"
               privilege_level="user|operator|administrator|oem"
users delete_user id=[1-16]
log clear="yes|no"

Clear the BMC log:
<lo100cfg>
   <log clear="yes" />
</lo100cfg>

Turn power on after a power failure:
<lo100cfg>
   <power restore_policy="power_on" />
</lo100cfg>

Turn power off after a power failure:
<lo100cfg>
   <power restore_policy="power_off" />
</lo100cfg>

Restore power to last state before power failure:
<lo100cfg>
   <power restore_policy="power_restore" />
</lo100cfg>

Configure a dedicated serial port:
<lo100cfg>
   <serial_port mode="dedicated" />
</lo100cfg>

Configure a shared serial port:
<lo100cfg>
   <serial_port mode="shared" />
</lo100cfg>

Configure the NIC with DHCP settings:
<lo100cfg>
   <nic mode="dhcp" />
</lo100cfg>

Configure the NIC with a static IP:
<lo100cfg>
   <nic mode="static">
      <ipv4 address="10.10.10.18" mask="255.255.252.0" gateway="10.10.10.1" />
   </nic>
</lo100cfg>

Configure a dedicated NIC:
<lo100cfg>
   <nic type="dedicated" />
</lo100cfg>

Configure a shared NIC:
<lo100cfg>
   <nic type="shared" />
</lo100cfg>

Configure firewall parameters:
<lo100cfg>
   <nic>
      <firewall http_active="yes" ping_active="no" telnet_active="no" />
   </nic>
</lo100cfg>

Add a user account:
<lo100cfg>
   <users>
      <add_user id="7" name="user" password="user" privilege_level="oem" />
   </users>
</lo100cfg>

Changing a user account::
<lo100cfg>
   <users>
      <change_user id="8" name="user" password="user" privilege_level="oem" />
   </users>
</lo100cfg>

Delete a user account:
<lo100cfg>
   <users>
      <delete_user id="9" />
   </users>
</lo100cfg>

Set a license key:
<lo100cfg>
   <set_license_key key="12345-12345-12345-12345-12345" />
</lo100cfg>

 

Leave a Reply