Skip to main content

How to reset HP ILO password without reboot when you forgot the admin (root) password: ESX, Windows & Linux

How to reset HP ILO password without reboot when you forgot the admin (root) password: ESX, Windows & Linux

This is still a test subject and i gathered all the methods and pasting it here for future reference & need to check whether the below steps are working or not on ESX and ESXI.  I am sure its working for Linux and Windows if the ILO drivers installed.

ESX:

You can configure the ILO board when you reboot your server and press <F8> but all your VM’s will be powered down. The other way is installing hponcfg in the service console.First we need to download the below three rpm files from HP site.

Then copy files to the tmp folder of your server console. Install the rpm files using the following command.

[root@esxhost tmp]# rpm -ihv hponcfg-version.linux.rpm hpasm-version.rhel3.i386.rpm hprsm-version.rhel3.i386.rpm

Create a Password_ILO_reset.xml file and copy it to your tmp folder.

<RIBCL VERSION=”2.0″>
<LOGIN USER_LOGIN=”Administrator” PASSWORD=”anytext”>
<USER_INFO MODE=”write”>
<MOD_USER USER_LOGIN=”Administrator”>
<PASSWORD value=”kumarvsphere”/>
</MOD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

Execute the following command and your password is kumarvsphere.

[root@esxhost tmp]# hponcfg -f Password_ILO_reset.xml
Script succeeded

ESXI:

1. SSH to the ESXi host

2. cd /opt/hp/tools

3. Export the current config: ./hponcfg -w /tmp/ilo_config.txt

4. Edit the above export config file (/tmp/ilo_config.txt) and change the following variables:

<IP_ADDRESS VALUE = “10.10.10.10″/>
< SUBNET_MASK VALUE = “255.255.255.0″/>
< GATEWAY_IP_ADDRESS VALUE = “10.10.10.1″/>
< DHCP_ENABLE VALUE = “N”/>

5. Commit the updated config to the ILO: ./hponcfg -f /tmp/ilo_config.txt

6. You must now reset the Administrator password. Create the file: reset_admin_pw.xml

with the below info and add the new password in the password section:

<ribcl VERSION=”2.0″>
< login USER_LOGIN=”Administrator” PASSWORD=”YOUR-NEW-PASSWORD”>
< user_INFO MODE=”write”>
< mod_USER USER_LOGIN=”Administrator”>
< password value=”kumarvsphere”/>
< /mod_USER>
< /user_INFO>
< /login>
< /ribcl>

7. commit “reset_admin_pw.xml” to the ILO: ./hponcfg -f reset_admin_pw.xml

8. You should be able to reach the ILO web management interface and login as Administrator.

XML Script to add another user:

<ribcl version=”2.0″>
<login USER_LOGIN=”Administrator” PASSWORD=”boguspass”>
<user_INFO MODE=”write” >
<add_USER
USER_NAME=”vmware”
USER_LOGIN=”vmware123″
PASSWORD=”mynewpass”>
<reset_SERVER_PRIV value = “Y” />
<admin_PRIV value = “Y” />
</add_USER>
</user_INFO>
</login>
< /ribcl>

Linux:

1.Check if the package is already installed or not using the below command.

# rpm -qf /sbin/hponcfg

hponcfg-1.9.0-3

2.List/Check the content of the package

# rpm -ql hponcfg-1.9.0-3

/sbin/hponcfg

3.Create a xml file like below or you can copy the same content and change the “kumarvsphere” to your password

# vi passwd_reset_ilo.xml

# cat passwd_reset_ilo.xml

<ribcl version=”2.0″>

<login user_login=”Administrator” password=”boguspassword”>

<user_info mode=”write”>

<mod_user user_login=”Administrator”>

<password value=”kumarvsphere”>

</password>

</mod_user>

</user_info>

</login>

#

4. Run the below command to reset the Administrator password

#  hponcfg -f passwd_reset_ilo.xml -l log.txt

Firmware Revision = 1.92 Device type = iLO Driver name = hpilo

Script succeeded

Now we will be able to login with kumarvsphere in to ILO.

Windows:

1)Click Start

HP System Tools and launch HP Lights-Out Online Configuration Utility

Click on User tab

Select Administrator user account and click on View/Modify

Enter the new password & Apply

2) We can use xml file as well to reset the password in windows as well.

<RIBCL VERSION=”2.0″>

<LOGIN USER_LOGIN=”Administrator” PASSWORD=”password”>

<USER_INFO MODE=”write”>

<MOD_USER USER_LOGIN=”Administrator”>

<PASSWORD value=”kumarvsphere”/>

</MOD_USER>

</USER_INFO>

</LOGIN>

</RIBCL>

If running through command prompt we can see the output by using below command:

HPONCFG.exe /f ILO_PASSWORD_RESET.xml /l log.txt > OutputLog.txt

Comments

Popular posts from this blog

Veritas cluster Interview Questions-2

Please go through questions and answers. Let me know if you have any doubt by leaving comment. Adding and removing cluster node  Q-1 How to add a node in an existing cluster? Ans:    Adding a node into an existing cluster is a multi steps process. 1:       Set up the hardware Before adding a node to an existing cluster, node must be physically connected with the cluster.       1: Connect the VCS private Ethernet controllers       2: Connect the node to the shared storage 2:       Install the VCS software in the node           Install the VCS software and install the license. 3:       Configure LLT and GAB Create the LLT & GAB configuration files (/etc/llthosts, /etc/llttab and /etc/gabtab) in the new node and update the files on the existing node. 4:       Add the node to an existing cluster We have to perform below given tasks in any of the existing node of a cluster          1:Make to cluster configuration R/W           # haconf –makerw           2:Add the new node to the cl