Skip to content

Linux on HP Proliant: Reset iLO Password From OS

Problem Statement
I’ve a Linux system running on HP Proliant and I do not know the username/password configured for the iLO. Of course, the simplest way in mind to reset the password is by rebooting the server to iLO level. Nevertheless, it’s not an option if the server can’t be rebooted (it’s a production server, can’t simply reboot it) or the physical hardware is located so far far away.

Info
Machine: HP ProLiant BL20p G3
OS: Red Hat Enterprise Linux 4
Kernel: 2.6.9-89.0.20.ELsmp

Step-by-step Process

  1. Ensure these packages are installed,
    • hponcfg (HP Lights-Out Online Configuration Utility for Linux)
    • hp-ilo (HP ProLiant Channel Interface Device Driver for iLO)
  2. Get linux-LOsamplescripts tarball file (HP Lights-Out XML PERL Scripting Sample for Linux) from HP
  3. Extract file Administrator_reset_pw.xml from the tarball
    [root@MHPKECP6 ~]# tar xzvf linux-LOsamplescripts3.10.0.tgz Administrator_reset_pw.xml
    Administrator_reset_pw.xml
  4. Reset Administrator’s password,
    [root@MHPKECP6 ~]# hponcfg -f Administrator_reset_pw.xml
    Firmware Revision = 1.82 Device type = iLO Driver name = hpilo
    Script succeeded
  5. Administrator’s password of the iLO is reset to ‘password’.

Tips

  • If you want to reset password for other username or use different password, just edit the Administrator_reset_pw.xml file, and change these values,
    1. <MOD_USER USER_LOGIN="Administrator">
    2.             <PASSWORD value="password"/>
  • Sometimes, your running kernel might not be compatibled with the module provided by HP.
    [root@MHPKECP6 jmirwan]$ /etc/init.d/hp-ilo status
    Status of hp-ilo:
      hpilo driver is NOT loaded...
    [root@MHPKECP6 jmirwan]$ /etc/init.d/hp-ilo start
      Starting hp-ilo:                                         [FAILED]
      Check installed kernel failed

    To solve it, install kernel development package and run /opt/hp/hp-ilo/check_install_kernel.sh

    If kernel development package is not installed, you’ll see this error:
    [root@MHPKECP6 jmirwan]# /opt/hp/hp-ilo/check_install_kernel.sh
    This kernel requires a rebuild. Seeking source files
    Basic source files appear to be installed. Investigating further.
    The file: /lib/modules/2.6.9-89.0.20.ELsmp/build/.config
    does NOT exist. There must be a Linux kernel
    '.config' file with CONFIG_MODULES enabled to build this
    package.
    Checking Sources for RHEL 4
    The package kernel-smp-devel-2.6.9-89.0.20.EL is missing

    If it’s installed, you’ll see this output:
    [root@MHPKECP6 jmirwan]$ /opt/hp/hp-ilo/check_install_kernel.sh
    This kernel requires a rebuild. Seeking source files
    Basic source files appear to be installed. Investigating further.
    Checking Sources for RHEL 4
    The package kernel-smp-devel-2.6.9-89.0.20.EL has been found

Credit to netnerds.net

Comments

Post a Comment

Your email is never published nor shared. Required fields are marked *