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

Learning - AWS

Service Health Check  -------------- http://status.aws.amazon.com Region - Geographocal identify Region comprises of AV Zones AV Zone - AV zone comprises of physical infra (like DC, Network, Power, Physcial SErver, Stroage etc..) --------------------------- VPC - Virtual Private Cloud  - logically isolated on your network. Earlier : EC2-Classic - Comes with one single FLAT  N/W --------------- S3 - Simple Storage Service (ALL AMI  and Snapshot are Stored in S3 bucket )  EBS - Elastic Block Store - ( Where VOLUMES/Virtual Storage is created )  ( Root device type: ebs ) Virtualization type : hvm ( Hardware virutalization method ) Old method - Virtualization type : paravirtual. (  Instance Type -------------------------- General Purpose Compute Optimized GPU Instance Memory Optimized Storage Optimized -------------- A security group is a set of firewall rules that control the traffic for your instance.  you can add rules to allow specific traffic to ...