VMware ESXi – changing HP ILO password from ESXi CLI

I don’t know if you’ve ever used HP customized ESXi installation ISO, but if you never had, I strongly recommend using it. Not only for HP ESXi utilities but also for other things like HP drivers which are included in it.

Anyway. In this article I wanted to give you a brief information about tools provided by HP for ESXi. These can make your life a lot easier!

If your host wasn’t installed with HP customized image, you should install HP ESXi utilities using offline bundle available in Software Delivery Repository on HP Pages. In the .zip package you will find 4 .vib files. Installation of packages is as easy as running following command from CLI:

Example (on different package):

2015-04-22 13_59_30-10.13.16.65 - PuTTY

Then, if needed, simply reboot your server and log in to ESXi’s SSH again. If everything went well, you should see all HP tools under /opt/hp/tools path.

hp-on-tools

Running ./hponcfg will show you available use options – like reading, writing or even resetting ILO to factory defaults. Coolest thing is that we do not need to prepare complete ilo config file in order to change IP or Administrator password – you just write a small part of it!

hponcfg

Ok, to explain things clearly:

1. Configuring ILO IP address using HP tools

You will need to save small part of configuration in a temporary file on your ESXi host. For example in /tmp directory. Here’s the content:

Of course – don’t forget to set it up with your, proper IP addresses. As soon as file is saved, we can commit changes by running following command:

ILO will reset automatically and should be reachable under IP address you specified.

2. Resetting ILO Administrator password using HP tools

Create a file with .xml extension (for example /tmp/new_pass.xml) with following contents:

Just replace “CHANGE-ME” with your new password and commit changes by running following command:

3. Resetting ILO to factory defaults using HP tools

Nothing simpler – just run following command:

Your ILO will reset to factory defaults and reboot immediately after that.

4. Exporting ILO configuration using HP tools

Sometimes you just may want to find out what’s ILO IP / hostname / administrator login name or such things. You may find exporting ilo configuration useful. To do so, run following command:

Complete ILO configuration will be saved in /tmp/ilo-config.txt file.

That’s it. If you have any questions – don’t hesitate to leave a comment!

Leave a Reply