If you have access to an HP server running Windows but you don't have access to ILO information (such as IP info), you can export it all to an XML file using a tool HP includes in the Proliant Support Pack. The tool is called hponcfg.exe and it's located under C:\Program Files\HP\hponcfg on x86 and x64 systems.

In order to use hponcfg, you'll need to have the ILO driver installed on the system. If you go in Device Manager, you'll see an entry under Multifunction Adapters like this:

If the driver isn't loaded, you'll get an error when you try to run the tool:

HPONCFG RILOE-II/iLO setup and configuration utility
Version 1.4 (c) Hewlett-Packard Company, 2005

ERROR: CPQSMIF.DLL and SM2USER.DLL not found.
ACTION REQUIRED: Please install the latest Proliant support pack.

So, to write out the config to an XML file, you'd do something like this:

hponcfg /w ILOConfig.xml

You'll get a file something like this:


 



<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 = ""/>

 

<RIB_INFO MODE="write">
<MOD_NETWORK_SETTINGS>
<SPEED_AUTOSELECT VALUE = "Y"/>
<NIC_SPEED VALUE = "10"/>
<FULL_DUPLEX VALUE = "N"/>
<DHCP_ENABLE VALUE = "N"/>
<DHCP_GATEWAY VALUE = "Y"/>
<DHCP_DNS_SERVER VALUE = "Y"/>
<DHCP_STATIC_ROUTE VALUE = "Y"/>
<DHCP_WINS_SERVER VALUE = "Y"/>
<REG_WINS_SERVER VALUE = "Y"/>
<IP_ADDRESS VALUE = "192.168.100.100"/>
<SUBNET_MASK VALUE = "255.255.255.0"/>
<GATEWAY_IP_ADDRESS VALUE = "192.168.100.1"/>
<DNS_NAME VALUE = "ILOSGH123ABC4"/>
<DOMAIN_NAME VALUE = "briandesmond.net"/>
<PRIM_DNS_SERVER value = "192.168.100.10"/>
<SEC_DNS_SERVER value = "192.168.100.11"/>
<TER_DNS_SERVER value = "0.0.0.0"/>
<PRIM_WINS_SERVER value = "192.168.100.12"/>
<SEC_WINS_SERVER value = "192.168.100.13"/>
<STATIC_ROUTE_1 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_2 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>
<STATIC_ROUTE_3 DEST = "0.0.0.0" GATEWAY = "0.0.0.0"/>

 

<USER_INFO MODE="write">
<ADD_USER
USER_NAME = "admin"
USER_LOGIN = "admin"
PASSWORD = "%user_password%">
<ADMIN_PRIV value = "Y"/>
<REMOTE_CONS_PRIV value = "Y"/>
<RESET_SERVER_PRIV value = "Y"/>
<VIRTUAL_MEDIA_PRIV value = "Y"/>
<CONFIG_ILO_PRIV value = "Y"/>

 


 

There's a few interesting things you can glean from this:

  • The login at the top of the file is bogus, and as long as you're logged in locally as an administrator, you don't need to specify ILO credentials to use the tool
  • Under network settings, because SPEED_AUTOSELECT is "Y" (think auto/auto on the NIC), you can ignore the next two entries for NIC_SPEED and FULL_DUPLEX
  • Towards the bottom under users, it doesn't write out passwords, but it does write out usernames, so, we can see that this ILO has one user with username "admin"

You can use the XML file dumped here as a template that you can customize and import into other ILOs with the same hponcfg tool. To do this, you would run something like this:

hponcfg /f IloConfig.xml

This would import the contents of iloconfig.xml to the local ILO. As noted earlier as long as you're a local admin on the box, you can leave the bogus credentials at the top of the file. The tool is very finicky about the XML so if any of it is invalid, you'll get a confusing error pointing to the XML though rarely in the correct location. In general I'd recommend your remove any sections you're not configuring from your input file as the defaults will be retained.