Reset the HP iLO Administrator password with hponcfg on ESXi

Sometimes you need to reset the ILO Administrator password. Sure, you can reboot the server, press F8 and then reset the Administrator password. If you have installed a HP customized ESXi image, then there is a much better way to reset the password: HPONCFG.

Check the /opt/hp/tools directory. You will find a binary called hponcfg.

All you need is a simple XML file. You can use the VI editor or you can copy the necessary file with WinSCP to the root home directory on your ESXi host. I prefer VI.

Press i to switch to the insert mode. Then paste this content into the file. You don’t have to know the current password!

Press ESC and then :wq<ENTER> to save the file and leave the VI. Now use HPONCFG together with the XML file to reset the password.

That’s it! You can now login with “Administrator” and “password”.

Reset the HP iLO Administrator password with hponcfg on ESXi
4.8 (96.36%) 33 votes
Patrick Terlisten
Follow me

Patrick Terlisten

vcloudnine.de is the personal blog of Patrick Terlisten. Patrick has nearly 2 decades of experience in IT, especially in the areas infrastructure, cloud, automation and industrialization. Patrick was selected as VMware vExpert (2014 - 2017), as well as PernixData PernixPro.

Feel free to follow him on Twitter and/ or leave a comment.
Patrick Terlisten
Follow me

12 thoughts on “Reset the HP iLO Administrator password with hponcfg on ESXi

  1. Robert Strohl

    Did not work for me. My server is running Windows Server 2012 R2 Core (no GUI). Do you have any recommendations for how to reset ILO password on Server Core?

    Reply
  2. Vivek

    Hi

    If i change the Administrator password of ILO with above method whether license key of ilo will get disappear ( deactivate)

    Reply
  3. Achille

    Thank you
    We changed the motherboard of one of our server and the licence key was lost.
    We used your technique to get the serial key from another server on the same cluster

    Reply
  4. Ahmed

    I’m trying this, and it says “Please wait while the firmware is reset.” Hmm. It finishes with ‘Script succeeded’, but still can’t log in with ‘password’.
    I had copied your text into a text editor, saved it as pwreset.xml, and dropped it in the same folder as hponcfg. Any thoughts?

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *