<

Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x

Reset HP servers ILO password remotely WITHOUT rebooting the server (Windows 2003 / 2008)

Published on
69,603 Points
65,303 Views
3 Endorsements
Last Modified:
The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server.
We would only need to create and run scripts using this utility to meet the purpose. Scripts could be used to set / reset things like Password, IP, Subnet Mask, etc.
To demonstrate an example, lets try to reset a servers ILO password using this utility.

Please bear in mind, the utility would first need to be installed on the server and you need to be able to connect to the server either by RDP/VNC/etc. for this to work.

This utility comes handy with the servers Proliant Support Pack (PSP) however you could also get it from
HPONCFG

Script:
Create a file named "resetilopwd.xml" on the server and open it with notepad. Paste and customize the following code and save it in the directory where the utility is installed:
 
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN=Administrator PASSWORD=ANYTHING>
<USER_INFO MODE=write>
<MOD_USER USER_LOGIN=Administrator>
<PASSWORD value=newpassword/>
</MOD_USER>
</USER_INFO>
</LOGIN>
</RIBCL>

Open in new window


The field where we have the text 'ANYTHING' could not be left blank as the utility needs the 'PASSWORD' parameter to run. Hence, even if you do not know the existing password, just put anything in it as the password here does not need to be correct.
Replace 'newpassword' with whatever you want the new password to be.

Script Execution:
Log onto the server via RDP/VNC/etc. Open command prompt and change the directory location to where you have the utility installed.
By default, it is installed at "C:\Program Files\HP\hponcfg"

Execute the following command and you should then be good to go!

hponcfg.exe /f resetilopwd.xml

If the script executes successfully, the command prompt will acknowledge with a success line. I have tried this on HP's various Blades and Rack Mounted servers and it has worked like a charm.

Like I said earlier, this utility could be used to change various ILO configurations, it would only be the script that would differ to meet the purpose.

Refer "HP Integrated Lights Out Scripting and Command Line" document which is attached to this article for more information. This will help you to create scripts for different purpose.

#wyn

HP-Integrated-Lights-Out-Scripti.pdf
3
Comment
Author:ashwynr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 2

Expert Comment

by:Vivek Reddy
0
 

Expert Comment

by:darkbluegr
any way to do it in ESX5 virtualized server?
0
 
LVL 14

Author Comment

by:ashwynr
Yes, you could use the Pearl script named 'locfg.pl' to reset iLO settings.
If you look for "HP Lights-Out XML PERL Scripting Sample for Linux" under your HP server model, there are a number of sample scripts that could be used for Linux/ESX systems.

I've never tried doing this on Linux/ESX servers but you could give it a try. The below link from HP might be of some help.

http://h30499.www3.hp.com/t5/ITRC-remote-lights-out-mgmt-iLO/iLO-script-tools-hponcfg-for-VMWare/td-p/5191349
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 14

Author Comment

by:ashwynr
Sorry, I meant Perl script above. Ignore the typo :)
0
 

Expert Comment

by:darkbluegr
Looks great! will give it a go and post back my findings :)
0
 

Expert Comment

by:darkbluegr
lets add this link to our ilo auditing resources
http://practicaladmin.wordpress.com/tag/locfg-pl/
0
 
LVL 1

Expert Comment

by:gbrayut
You can also reset the password via SSH into the iLO and using the following command:

set /map1/accounts1/root password=NewP@ssword

Some versions might use /map1/accounts/ instead of accounts1. Combining this with common scripting tools like sshpass means you can easily automate the process.
0

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Join & Write a Comment

Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month