nerds:~ #

26Apr/06193

RIBCL: Reset Administrator Password on iLO

Last night I got locked out of my Compaq DL360's iLO. I searched the web to find how to reset the Administrator password and read that, for the most part, I'd have to be at the console. Bah! My servers are in San Jose and I'm up here in San Francisco, I didn't want to make a trip just to reset my passwords. I continued to look around the web for a solution and found that I could reset the Administrator password (or even add another user with admin privs) using Compaq's Remote Insight Board Command Language. Apparently, if you are processing RIBCL commands through your given operating sytem so long as you have the rights to login to the server. I logged in as my Windows Domain Admin and performed the following steps (Linux users, you can download the RPM for HPONCFG):

1. I installed SNMP because it was a preprequesite for HP Insight Management Agents.
2. I dowloaded and installed the HP Insight Management Agents.
3. I then downloaded HP Lights-Out Online Configuration Utility.
4. I ran into NTVDM errors trying to run the file so I just used WinRAR to extract the contents into C:\hp\ilo. I also extracted the zip file contained within the initial archive.
5. I then downloaded the HP Lights-Out XML Scripting Sample for Windows (Linux users can download the files in tgz format here or here.) extracted it and found the file I was looking for --

<ribcl VERSION="2.0">
<login USER_LOGIN="Administrator" PASSWORD="boguspassword">
  <user_INFO MODE="write">
   <mod_USER USER_LOGIN="Administrator">
    <password value="newpass"/>
   </mod_USER>
  </user_INFO>
</login>
</ribcl>

6. Using notepad, I opened up the sample file and modified it slightly. Initially, I just removed the LOGIN and ran the file but HPONCFG gave me a syntax error. I then added it back and gave the Administrator a bogus password. Apparently, the LOGIN line is required for syntax reasons but it is not actually processed.
7. Next, I opened a command line and changed directories to C:\hp\ilo and typed the following:

HPONCFG.exe /f Administrator_reset_pw.xml /l log.txt > output.txt

8. I opened up Firefox, navigated to my iLO machine and viola! I was able to login as Administrator.

If changing Administrator's password seems too scary, you can also add another user with administrator privileges. You can then login as that user and change the Administrator password via the web console. Use the following code, suited to your liking:

<ribcl version="2.0">
<login USER_LOGIN="Administrator" PASSWORD="boguspass">
  <user_INFO MODE="write" >
   <add_USER
    USER_NAME="Chrissy"
    USER_LOGIN="Chrissy"
    PASSWORD="mynewpass">
     <reset_SERVER_PRIV   value = "Y" />
     <admin_PRIV   value = "Y" />
   </add_USER>
  </user_INFO>
</login>
</ribcl>

Here's a zip of just hponcfg.exe, add_user.xml, and Administrator_reset_pwd.xml. Since it's an exe with no apparent supporting files, y ou may be able to just use that.

I see quite a few people have hit this page..if you found it useful, please let me know! If not, drop me a note and I'll see how I can help.

Posted by: Chrissy   Filed under: Security Leave a comment
Comments (193) Trackbacks (8)
  1. There is a GUI available now in the new version of PSP, which does exactly the same as the command line. Except that it is very convenient and easy to use!!

  2. Worked like a charm!! Much appreciated!!

  3. Nice guide, worked perfectly!!

    Q: Is there a way to recover a password instead of changing it?

  4. Hi,

    Its a little of the topic, hope you’ll help me out.

    i am trying to configure “HP Integrity” servers through “cpqlocfg”
    but i am getting same error for all the xml scripts i have tried with,

    Connecting to Server..
    Negotiated cipher: 168-bit Triple DES with RSA and a SHA1 MAC
    cpqlocfg.exe: ERROR: Malformed RIB response: (146):
    501 Not Implemented
    501 Not Implemented
    The requested method is not recognized by this server.

    do we need to install advanced license to use cpqlocfg on integrity servers ?

    same cpqlocfg and xml scripts are working for proliant servers with advanced license .
    (newbie to ilo)
    please let me know where its going wrong, thanks in advance !!

  5. Fantastic, you just saved me a trip to the server room :)

  6. BRAVO!! Saved us multi-server outages (scheduling nightmare) on dozens of our servers with “inaccessible ILOs”. MANY MANY THANKS!!!

    In gratitude, have summarized (below) most helpful responses.
    Also, note this issue vanishes with cClass – assuming alternative ILO access/account-management via OA logon to each enclosure.

    HP should consider broadcast of your workaround as an alert. At a minimum (if not done already) it should be linked/posted in the HP Support forum.
    Tom
    ____________________________________________________________________
    If you get a “script failed” error, try;
    1) Check the log.txt. It might be that the password is too short.
    2) Verify the password length is at least 8 characters.
    3) Add/create a new user (instead of modifying an existing user).

    If attempts to reset the password of an EXISTING ILO user fails;
    1) You may be trying to reset the password for an account that does not exist.
    2) Remember, both login and password are case sensitive!
    3) Update the ilo firmware and/or drivers.
    _____________________________________________________________________
    If you get the error message “ERROR :firmware flash is in progress. Please wait for a while”, download and install a later version of HPONCFG from HP.COM.
    _____________________________________________________________________
    If you get “No RILOE II board found” error.
    Install the latest HP PSP (aka HP support pack/firmware).
    _____________________________________________________________________
    HPONCFG should be executed from the target server console session -
    It may, or may NOT work properly via alternatives (RDP/Terminal Services session, Citrix/Metaframe session, etc.)
    _____________________________________________________________________
    HPONCFG.exe is specific to the OS platform (32 vs. 64 bit)…there is a different version for x64 Windows, search for windows x64 (on hp.com).
    _____________________________________________________________________
    Suggestion – First reset the ILO to factory settings…then, reset the password. This ensures an account named “Administrator” exists, thus avoiding failed password reset of non-existent/renamed Administrator accounts!!

    Execute the following line before attempting Administrator account password reset:
    hponcfg /reset
    This resets the iLO to factory settings, including the Administrator’s password to the original (asset tag of the server).

  7. Thanks Chrissy, works a treat.

  8. Thanks very much it worked perfectly !!!!

  9. Thank you very much for this solution. I initially received a “password is too short” error and had to lengthen the password to eight alpha-numeric characters with at least one capital letter.

  10. Very nice. I really appreciate for such a nice post!

  11. Thank you very much for this perfect solution. It even works with ribcl Version 2.1.

  12. Hi all,

    I’ve tried to download the rpm so i can reset the pass on linux but the link above is not working.

    Do you have any idea where i can find it ?

    Many thanks

  13. It worked for me as well using the command

    hponcfg -f

    The utility i got it from Proliant Pack CD

    Thanks,
    Dani

  14. on one of my servers I get the following messages in my output.txt.

    sm2user.dll not found

    Any idea?

  15. You saved my day. Many thx!

  16. Super info – just what i needed – thanks :o )

  17. Youre my Hero! Thank you many times!

  18. That’s awesome, Daniel! Thanks for the info.

  19. Chrissy – thanks for the helpful info, worked like a champ and since I have DC’s and servers all across the US this sure makes life alot easier. You rock

  20. This is very helpfull but i ahve a problem.. i have a OLD ILO and not a ILOII.. any ideas?….

  21. 20 responses and none of them talking about how cute you are.

  22. Thank you..so much..it helped me also

  23. Hi Chrissy,
    I just wanted to say thanks — your post saved me from an undesired drive to my datacenter as well. Awesome!! :-)

    I also wanted to say how stoked I was to see another female in the IT industry. We are a rarity. =)

    Take care and thanks again!
    Natalie

  24. User addition worked from an Oracle Enterprise Linux 4U8 x86_64 box using hponcfg from the command line. Thanks !

  25. nice but i have a system but i can’t touch OS, I have no jumpers on the server to reset ilo password. The model is DL140 G3.

    how can reset ilo psw?!

  26. latest proliant support pack powered down the machine halfway through install. i lold.

  27. I get an error when I run it on my HP Proliant DL 360.

    It says “No ILO 2 board found”

    All my servers have iLO 1 boards. Anyone know of a way to reset iLO 1 administrator passwords?

  28. BINGO the new Proliant Support Pack includes a ilo online utlity that resets ilo 1 baords too!!!

    I am in, thanks guys.

  29. great help, thanks a lot!!

  30. I am getting following error. Can you help me with this?

    Syntax error: Line #0: syntax error near “<" in the line: "”
    Firmware Revision = 1.41 Device type = iLO Driver name = CpqCiDrv
    Script failed

  31. I write a version in Chinese for RHEL4 user. For Chinese reader to follow.
    http://freelamp.com/58718

  32. Thanks Mate, saved me a lot of reading.

  33. Hi

    need help in RILOE reset
    HPONCF doesnt work with RILOE 1…

    thanks

  34. Worked for me. Thanks a bunch.

  35. Amazingly helpfull, thanks

  36. Fantastic hint! I just had to gather physical info for servers spread all over the country…

    For those having trouble with the version of hponcfg.exe provided by Crissy and/or Brandon, there’s a good chance your server already has the HP management software installed. Just do a search for hponcfg.exe and if it shows up somewhere on the hard drive, use that instance (don’t forget to enable search in hidden folders.) Just move the xml file you need to the same directory where the exe lives and you should be good to go.

  37. Saviour of the day ;) Thanks!!

  38. my apple computer screen is blank with only a (?) question mark in the middle ,tried every thing what can i do to resolve this

  39. I’ve created a utility that will allow the hponcfg utility to be ran on remote systems. You can change the passwords remotely on many systems at once. If anyone needs it let me know. dbov21@yahoo.com

  40. Very Useful……….

  41. how about changing the iLO IP address from within the Windows UI?? so that I don’t need to reboot the servers… anybody please?? thanks in advance.

  42. You’re cool :O)


Leave a comment