If you have lost or forgotten the iLO password than please find the below steps to reset ilo password from command line.
To reset / set the password of the iLO from within the linux operating system on an HP server, the hponcfg utility needs to be installed
Here is some information about hponcfg -
The hponcfg utility is an online configuration tool used to set up and reconfigure the local iLO without requiring a reboot of the server operating system. It can be used to retrieve and change the iLO configuration of the local server from the linux command line.
Please login on the linux machine and create a new xml file
[root@localhost]#vim ilo_password.xml
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="x" PASSWORD="x">
<USER_INFO MODE="write">
<MOD_USER USER_LOGIN="Administrator">
<PASSWORD value="XXXXXXXX*"/>
</MOD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>
save the ilo_password.xml file
In above xml file, you just need to set PASSWORD value - XXXXXXX. Please put your new ILO password here.
To load this xml file in ILO, please use hponcfg command
[root@localhost]# hponcfg -w ilo_password.xml
Your iLO password will be reset, now please login in HPE iLO via new password XXXXXXX.
Please let me know in case of any query about this post. Thanks.