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 http://downloads.linux.hpe.com/SDR/repo/mcp 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 http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free" > /etc/apt/sources.list.d/mcp.list

curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | 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="192.168.1.150">
<subnet_mask value="255.255.255.0">
<gateway_ip_address value="192.168.1.1">

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