How to reset iLO 5 password from ESXi 7 shell

Hi, Today I need to reset forgotten ilo password, and I can’t reset my ESXi host.

If you install ESXi from HPE customized ESXi image, you can use hponcfg application, that exists on ESXi.

First SSH to your ESXi, Then go to this address:

cd /opt/tools
cd /opt/hp/tools

Then we need to create an XML file. I used vi tools.

vi resetpassword.xml

You must copy and paste this below information and save and exit.

<LOGIN USER_LOGIN="Administrator" PASSWORD="yourpassword">
<USER_INFO MODE="write">
<MOD_USER USER_LOGIN="Administrator">
<PASSWORD value="yourpassword"/>

Then run this command:

./hponcfg -f ./resetpassword.xml

You see a successful message.

Finish 🙂