Configuring iLO through hponcfg on HP servers

On the test, I installed the hponcfg utility in Ubuntu Server.

The Ubuntu version can be viewed by the command:

lsb_release -a

Open the file in the text editor:

sudo nano /etc/apt/sources.list

And add to its end the official source where the utility is located (example for Ubuntu 14.04):

deb trusty current/non-free

Update the source list and install hponcfg:

sudo apt-get update
sudo apt-get install hponcfg

I will give another example of installation in Ubuntu 18.04:

sudo echo "deb bionic/current non-free" > /etc/apt/sources.list.d/mcp.list

curl | apt-key add -
curl | apt-key add -
curl | apt-key add -
curl | apt-key add -

sudo apt update
sudo apt install hp-health hponcfg amsd ams ssacli ssaducli ssa

Now we import the current iLO settings into a file:

sudo hponcfg -a -w iloconfig.cfg

Make a copy of the file just in case:

sudo cp iloconfig.cfg iloconfig_new.cfg

And we can edit a new file for our own needs, for example, via the nano editor (Ctrl+X for exit, y/n for saving or canceling changes):

sudo nano iloconfig_new.cfg

For example, to manually specify the IP, we change the following lines:

dhcp_enable value="N">
<ip_address value="">
<subnet_mask value="">
<gateway_ip_address value="">

Then export the file with the new settings back:

sudo hponcfg -f iloconfig_new.cfg -l log.txt

Done, the iLO settings will be changed.

See also my article:
Resetting the iLO password via hponcfg on HP servers

Leave a comment

Leave a Reply