HP Server ilo2 Reset Password

Source: Internet
Author: User
Tags administrator password hp server
Where ilo2 is used

ILO is short for HP Machine Management Card, in our machine, this management card is used only for early HP dl3 [20 | 60 | 80 | 85] G [1 | 2 | 3 | 4 | 5. The biggest problem with this card is that it does not support IPMI operations, but HP provides the tool for operating this card: hponcfg.





Work
Packages and dependent packages

I have stored four versions of hponcfg on my machine. It should not be the latest, but it can be used. Take rhel5 or centos5 64-bit as an example:

Hponcfg: ftp: // 10.2.21.190/test/5_x64/hponcfg-1.9.0-3.noarch.rpm

Dependency package:

HP-Heath: ftp: // 10.2.21.190/test/5_x64/hp-health-8.2.5-50.rhel5.x86_64.rpm

HP-ILO: ftp: // 10.2.21.190/test/5_x64/hp-ilo-8.2.5-22.rhel5.x86_64.rpm

Procedure

Download the three files to the machine that requires resetting the Management Card password. install these files because of dependencies. We recommend that you install them together.

rpm -ivh hp*

The RPM database of some machines is damaged. You can add -- nodeps to force installation.


Similar to IPMI, you need to start a service similar to IPMI, which is provided by HP-ILO in/etc/init. d/HP-ILO

/etc/init.d/hp-ilo start

Special cases:

The kernel versions explicitly supported by HP-ILO are in/opt/HP-ILO/bin.

ls -l /opt/hp/hp-ilo/bin/

total 48

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-128.el5

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-128.el5PAE

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-128.el5xen

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-53.el5

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-53.el5PAE

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-53.el5xen

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-8.el5

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-8.el5PAE

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-8.el5xen

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-92.el5

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-92.el5PAE

drwxr-xr-x 2 root root 4096 Aug 10 16:24 2.6.18-92.el5xen


The kernel of the released version is supported. However, some machines in the game use the self-compiled kernel 2.6.18-53.1.14.el5.onwindpae, which cannot be detected when HP-ILO is started:

/etc/init.d/hp-ilo start<br> Starting hp-ilo: [FAILED]

Check installed kernel failed

The kernel is closest to 2.6.18-53. el5pae. You can modify the script, delete the check code, forcibly load the kernel module provided by 2.6.18-53. el5pae, and delete the kernel module from the script.

/opt/hp/hp-ilo/check_install_kernel.sh >> /var/spool/compaq/cma.log 



if [ $? != 0 ]; then

showfailure

cmaecho

cmaecho "Check installed kernel failed"

exit 1

fi

Load the following code

insmod /opt/hp/hp-ilo/bin/`uname -r`/${MOD}.ko 2>/tmp/hptest

Change

insmod /opt/hp/hp-ilo/bin/2.6.18-53.el5PAE/${MOD}.ko 2>/tmp/hptest

Start the HP-ILO service again.


Export the current configuration file:

hponcfg -w ilo.xml 


As shown below, the export is successful

Firmware Revision = 1.43 Device type = iLO 2 Driver name = hpilo

RILOE II/iLO configuration successfully written to file "ilo.xml"

Modify the exported configuration file and add the user verification information:

Open ILO. xml and find the last one.

<USER_INFO MODE="write">

</USER_INFO>


Delete all the content and add the modified user verification. The result is:

<USER_INFO MODE="write">

  <MOD_USER USER_LOGIN="Administrator"><PASSWORD value="oaksadmin"/></MOD_USER>

</USER_INFO>

Change the user's administrator password to Oak admin, save and quit.


Import the configuration file:

hponcfg -f ilo.xml 

As shown below, the import is successful

Firmware Revision = 1.43 Device type = iLO 2 Driver name = hpilo

Script succeeded




The ILO card is automatically reset and can be logged on after about one minute.

 



Other common usage

The configuration file exported by hponcfg contains all the configurations of the ILO card. Theoretically, you can modify and import the configuration file to perform all the operations on the ILO card.

Some machine management cards do not have the configured address or address configuration error, you can also modify it through this file.

<IP_ADDRESS VALUE = "10.22.224.110"/>

<SUBNET_MASK VALUE = "255.255.255.0"/>

<GATEWAY_IP_ADDRESS VALUE = "10.22.224.254"/>

<DHCP_ENABLE VALUE = "N"/>


Find the above section in the configuration file and modify it accordingly to set the static IP address.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.