HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
ProLiant Servers (ML,DL,SL)
cancel
Showing results for 
Search instead for 
Did you mean: 

Send several SSH 'set' command to ILO without rebooting

 
jmjaceec
Occasional Visitor

Send several SSH 'set' command to ILO without rebooting

Hello,

We are currently planning migration of several console VLANs in our Datacenter. As a result ILO network settings will change.

We would like to automate as much as possible, we would like to update ILO IP address, subnet mask and gateway using SSH commands (we would like to avoid going through server OS).

The solution would then be to execute those 2 commands:

set /map1/enetport1/lanendpt1/ipendpt1 IPv4Address=%newIP% SubnetMask=%newMask%

set /map1/gateway1 AccesInfo=%newGtw%

 The problem is that ILO will reset automatically after executing each command, applying directly the new settings. This will cause it to be unreachable after executing the first command.

Is there any way to execute those 2 commands in one row, or to avoid automatic ILO reboot after first 'set' command?

 Thank you!

2 REPLIES
ukdc
Advisor

Re: Send several SSH 'set' command to ILO without rebooting

Hi

Here's a thread on stackoverflow on the same topic:

https://stackoverflow.com/questions/7540566/ilo3-multiple-ssh-commands

that draws a blank with the "ssh" method. Have you considered the RIBCL/HTTPS method instead (it's mentioned at the very end of that web page)? This is what I do for changes like these.

Jimmy Vance
HPE Pro

Re: Send several SSH 'set' command to ILO without rebooting

Use RIBCL commands to send the changes to the iLO's 

Take a look at the file calle Mod_Network_Settings.xml, the download includes the perl script. 

 HP Lights-Out XML PERL Scripting Sample for Linux
http://h20564.www2.hpe.com/hpsc/swd/public/detail?swItemId=MTX_aa985bb144db407d91b5076f6b

HP Lights-Out XML Scripting Sample for Windows
http://h20564.www2.hpe.com/hpsc/swd/public/detail?swItemId=MTX_c09a91ddee304f07a7f117be23

 

 

 

 

 




__________________________________________________
No support by private messages. Please ask the forum!      I work for HPE

If you feel this was helpful please click the KUDOS! thumb below!