Remote Lights-Out Mgmt (iLO 2, iLO, RILOE II) Forum
cancel

iLO - shutdown more than one server

Highlighted
Herfkens
New Member.

iLO - shutdown more than one server

Hello everyone,

Is it possible to remotely shutdown more than one server, blade in this case, with iLO at the same time?

I've found a script wich kan shutdown a server, but how is it possible to do this with more than one server at once?














































9 REPLIES
acartes
Acclaimed Contributor.

Re: iLO - shutdown more than one server

Yes, you can shutdown more than one blade using a script like the one shown.

Assuming that your script is named "poweroff.xml" and that you have already downloaded the HP Lights-Out Configuration Utility (CPQLOCFG) from
http://h18004.www1.hp.com/support/files/lights-out/us/revision/6269.html

Commands like this could do the trick:
C:\>cpqlocfg -s 192.168.1.1 -f poweroff.xml -u Admin -p pword
C:\>cpqlocfg -s 192.168.1.2 -f poweroff.xml -u Admin -p pword
C:\>cpqlocfg -s 192.168.1.3 -f poweroff.xml -u Admin -p pword
C:\>cpqlocfg -s 192.168.1.4 -f poweroff.xml -u Admin -p pword

where:
IP address (or network name) is that of the iLO in the target
poweroff.xml is the name of the script file
Admin is substituted for username in the script
pword is substituted for password in the script

You can also precede each line with "start" to run them in parallel.

Similar scripting ability is available in a perl example for Linux.

Other Windows client sample scripts here:
http://h18004.www1.hp.com/support/files/lights-out/us/revision/8238.html
Other Linux client sample scripts here:
http://h18004.www1.hp.com/support/files/lights-out/us/revision/8645.html
MichelNL
Regular Contributor.

Re: iLO - shutdown more than one server

Hi,

Is there a "nicer" way..?

For example that the scripts opens an text file with all the iLO IP's it has to do?
acartes
Acclaimed Contributor.

Re: iLO - shutdown more than one server

>> is there a "nicer" way?

Almost certainly, bnut I am not aware of any free tools provided by HP for scripting.

Have you considered using HP SIM? You can set up a task to do this and apply it to multiple nodes.
http://www.hp.com/go/hpsim
Oscar A. Perez
Outstanding Contributor.

Re: iLO - shutdown more than one server

I wrote this batch file long time ago.

Extract the attached zip file to a folder, edit ip_list.txt and add your iLOs IP addresses in there (1 per line), open a DOS window and execute:

shutdown.cmd ip_list.txt [iLO_username] [password]

I tested this on my Windows XP Pro SP2 and works fine. Also, be sure all iLOs have the same user/ password and that user must have enough rights to power On/Off the server.

Enjoy.



__________________________________________________
I work for Hewlett Packard

If you feel this was helpful please click the KUDOS! thumb below!
Oscar A. Perez
Outstanding Contributor.

Re: iLO - shutdown more than one server

Here is the file again. I hope it doesn't get corrupted during upload this time.



__________________________________________________
I work for Hewlett Packard

If you feel this was helpful please click the KUDOS! thumb below!
MichelNL
Regular Contributor.

Re: iLO - shutdown more than one server

Thanks..!
This works great!
JKytsi
Outstanding Contributor.

Re: iLO - shutdown more than one server

Hi,
Could You paste the script in reply, attachement is corrupted again.
Remember to give Kudos to answers! (click the KUDOS star)

You can find me from Twitter @JKytsi
Oscar A. Perez
Outstanding Contributor.

Re: iLO - shutdown more than one server

Try downloading the file using FireFox. For some reason it doesn't work with IE.



__________________________________________________
I work for Hewlett Packard

If you feel this was helpful please click the KUDOS! thumb below!
JKytsi
Outstanding Contributor.

Re: iLO - shutdown more than one server

it works, thanks =)
Remember to give Kudos to answers! (click the KUDOS star)

You can find me from Twitter @JKytsi