We have 1,000 servers having different manufacturer and a mix of Solaris and Linux. They go down frequently and we end up rebooting by logging in to the Integrated Lights Out Manager (ILOM).

I want to automate this by having a script which reboots a host once it goes non-pingable.

So is a shell/Perl script to get into the ILOM and console of a server possible?

What can be my approach?

  • 1
    "They go down frequently..." Have you considered solving this problem first?
    – ceejayoz
    Jan 1, 2017 at 21:34

1 Answer 1


You might want to take a look at the expect utility. It can use used to automate scripts where input is required.

Personally, I'd be trying to understand why the systems crash so frequently that this is needed and solving the real problem.

  • 1
    ILO from HP can accept a private key, this might allow ssh ilo reboot
    – Archemar
    Jan 1, 2017 at 8:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.