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.
~ # ls -l /opt/hp/tools/ total 5432 -r-xr-xr-x 1 root root 5129574 Oct 28 2014 conrep -r--r--r-- 1 root root 108802 Oct 28 2014 conrep.xml -r-xr-xr-x 1 root root 59849 Jan 16 2015 hpbootcfg -r-xr-xr-x 1 root root 251 Jan 16 2015 hpbootcfg_esxcli -r-xr-xr-x 1 root root 232418 Jul 14 2014 hponcfg -r-xr-xr-x 1 root root 12529 Oct 31 2013 hptestevent -r-xr-xr-x 1 root root 250 Oct 31 2013 hptestevent_esxcli
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. Change the directory to /opt/hp/tools. Then open the pwreset.xml.
~ # vi pwreset.xml
Press i to switch to the insert mode. Then paste this content into the file. You don’t have to know the current password!
<RIBCL VERSION="2.0"> <LOGIN USER_LOGIN="Administrator" PASSWORD="unknown"> <USER_INFO MODE="write"> <MOD_USER USER_LOGIN="Administrator"> <PASSWORD value="password"/> </MOD_USER> </USER_INFO> </LOGIN> </RIBCL>
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.
~ # /opt/hp/tools/hponcfg -f pwreset.xml HP Lights-Out Online Configuration utility Version 4.4-0 (c) Hewlett-Packard Company, 2014 Firmware Revision = 1.85 Device type = iLO 3 Driver name = hpilo iLO IP Address: 172.16.1.52 Script succeeded
That’s it! You can now login with “Administrator” and “password”.
- Why you should change your KRBTGT password prior disabling RC4 - July 28, 2022
- Use app-only authentication with the Microsoft Graph PowerShell SDK - July 22, 2022
- Getting started with the Microsoft Graph PowerShell SDK - July 21, 2022