ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

HP dynamic power setting

redfacebob
Advisor

HP dynamic power setting

Hello,

I have around 400 dl360G5 boxes, all set to static high power mode. I'd like to change them to 'dynamic' mode via linux command line without rebooting them and going into each box's rombios and setting it by hand.

Is there a way?

5 REPLIES
KarloChacon
Honored Contributor

Re: HP dynamic power setting

hi redfacebob

I am not a linux expert but there is no way to access BIOS without restarting server BUT
you can change that feature using iLO

check my picture attached

you log into ilo and go to power management -> settings -> and change to the new value and apply


also if you have scripting abilities (which I think mostly guys using linux have)

you can use ilo scripting I did the test before post this to be completely sure would work for you (I used a dl320s that had power saving feature)

so using ilo scripting you won't have to log in every ilo (tired right!!!) and change that setting

so I am going to summarize what I did

you must download HP Lights-Out XML Scripting Sample for Windows which contains the script file you need

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18964&prodSeriesId=1146658&prodNameId=1135772&swEnvOID=1005&swLang=8&mode=2&taskId=135&swItem=MTX-84d9a19b43b84516ac2d26d01f

and
HP Lights-Out Configuration Utility which will let you connect to your ilo IP and do the changes

http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18964&prodSeriesId=1146658&prodNameId=1135772&swEnvOID=1005&swLang=8&mode=2&taskId=135&swItem=MTX-5ee197c5bd7641359f45d876b1

so basically
I used this script
Set_Host_Power_Saver.xml (from 1° link)

you can have 3 values - number must be change in scrip file

OS control Mode = 1
HP Static Low Power mode = 2
HP Dynamic Power Savings mode = 3

more info here, page 132
http://bizsupport.austin.hp.com/bc/docs/support/SupportManual/c00294268/c00294268.pdf


and running this command
cpqlocfg -s 16.90.108.44 /f Set_Host_Power_Saver.xml /l log.txt > anyname.txt


where
cpqlocfg: is the utility
-s invoke ilo ip address
/f ilo script xml
/l log results of running command

I attached files I used

script details









modify login and Password as desired and change values from 1 to 3 as I indicated above

see attached file and picture

I hope it can help you

anything else just let me know

regards
Didn't your momma teach you to say thanks!
KarloChacon
Honored Contributor

Re: HP dynamic power setting

hi again

the .zip file I uploaded was incompleted with the command

cpqlocfg -s 16.90.108.44 /f Set_Host_Power_Saver.xml /l log.txt > anyname.txt

again attached

once I had to run a script on several servers but since I don't perl skills which can be used wih ilo scripting and create real scripts...

I did this to run an script on several ilo IPs

This on command line

for /f %i in (c:\ilo_script\ip.txt) do cpqlocfg -s %i -f script_ilo_file.xml -u Administrator -p Password

where ip.txt has the ip ilo addresses you want to modify

regards
Didn't your momma teach you to say thanks!
redfacebob
Advisor

Re: HP dynamic power setting

cool.

The xml script works as advertised.

on Redhat, use:

hponcfg -f filename.xml

thx.
KarloChacon
Honored Contributor

Re: HP dynamic power setting

glad to hear that worked

next time don't forget ass

http://forums11.itrc.hp.com/service/forums/helptips.do?#33

Didn't your momma teach you to say thanks!
KarloChacon
Honored Contributor

Re: HP dynamic power setting

sorry

I meant this "assign points"
"next time don't forget assign points"

this is something HP forum must have - An Edit button
Didn't your momma teach you to say thanks!