Simpler Navigation coming for Servers and Operating Systems
Coming soon: a much simpler Servers and Operating Systems section of the Community. We will combine many of the older boards, and you won't have to click through so many levels to get at the information you need. If you are looking for an older board and do not find it, check the consolidated boards, as the posts are still there.
cancel
Showing results for 
Search instead for 
Did you mean: 

batch rename ilo name

gratchie
Occasional Contributor

batch rename ilo name


any ideas how I can batch rename ILO server name?
4 REPLIES
David Claypool
Honored Contributor

Re: batch rename ilo name

See http://www.hp.com/go/ilo

--> More iLO3 Documentation --> "HP ProLiant Integrated Lights-Out 3 v 1.05 Scripting and Command Line Guide, and
--> iLO Sample Scripts
gratchie
Occasional Contributor

Re: batch rename ilo name

Do you know how I can set variables when running hponcfg from the OA itself?

I'm trying to rename all nodes but when I do something like:

"hponcfg 1a test.xml hostname=foobar.com"

The server name becomes %hostname% instead of the defined variable.

Contents of TEST.XML













Jiri Konecny
Occasional Advisor

Re: batch rename ilo name

Don't know, if it helps, but we use modified RIBCL script Mod_Network_Setting.xml. Whole package of scripts can be donwloaded from HP Lights-Out XML Scripting Sample for Windows page (http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=18964&prodSeriesId=1146658&swItem=MTX-84d9a19b43b84516ac2d26d01f&prodNameId=1135772&swEnvOID=1005&swLang=8&taskId=135&mode=5)

Script:
IBCL VERSION="2.1">










Replace {{HOSTNAME}} and {{DOMAIN}} with your values.

This RIBCL script then put to following command on RHEL 5 OS:
hponcfg -f Mod_Nettwork_Settings.xml
Pieter 't Hart
Honored Contributor

Re: batch rename ilo name

hponcfg has the commandline option:
/s namevaluepairs - Substitute variables present in input config file with values specified in "namevaluepairs"

is this what you are lokking for?