iLO Bulk Update Script

This is a script I have been meaning to post for a while now.

HP do not have any good way to bulk manage iLO devices. If you want to update iLOs you either use the web interface, or the config tools that can be run from the local machine using the RIBCL language. Finally, theres the that ships with the HP Scripting samples, which once again uses RIBCL. This might be ok when you only have a dozen machines to deal with, but when you have over 150 servers, you needed a better way. Building a linux host just to run in a bash/tcsh script was not an option.

So I wrote a powershell script that acts as a wrapper to

You can download it here. I suggest reading on for further details

Your script host machine does require you to have ActivePerl installed. There may be additional modules required by ActivePerl to run please follow the ActivePerl Documentation on how to add these.

To run, unzip the files to a location, and edit the configuration variables at the top of the script. If using a text file to enumerate iLO devices, simply add 1 host per line to the text file. if using DNS, it should be fairly self explanatory.

This script is invoked by running:

.\iLOWrapper.ps1 MyConfig.XML

Where MyConfig.XML is the name of the RIBCL configuration/command file you have prepared. I have left a sample xml file there that will log in to an iLO (after credentials are edited). For more information, Please read the HP Lights Out Scripting Guide.


The script itself is silent while running, and will output a summary report to screen or Β to file when complete. If the script terminates while processing, all report data will be lost. The summary will advise if the iLO settings were successfully applied, if an error occurred or if the iLO could not be contacted.

Be aware that the error messages are the output of the iLO device – and therefore the error messages are that of HP…which can be vague at times.


HP Bladesystem OAs will not like this script. They are unable to understand RIBCL as delivered by the script and will cause the powershell script to hang. Ideally, your OAs will have a different FQDN to that of your iLO devices.

Anyway, I hope that people find this useful. Happy to respond to comments/queries πŸ™‚

8 thoughts on “iLO Bulk Update Script

  1. Hugo

    Nice tool but when I did try to use it, I got the following error message:

    ./iLOWrapper.ps1: Exec format error. Wrong Architecture.

    Any hints?


    1. Hugo

      BTW, I am using RHEL 5.4:

      Linux 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

  2. Ben Post author

    Hi Hugo,

    Powershell is a windows based scripting language, so I suspect you will have some trouble running the script straight out of the box on RHEL.

    You may however be able to use Pash ( to run this on linux however.

  3. Hugo

    my confusion came because in your article you said this: “Building a linux host just to run in a bash/tcsh script was not an option.”, so I did assume your application was built for Linux platforms instead of windows. Anyways, I will take a look on Pash.


  4. itcoop


    Cool tool.

    I’m running several experimental OS’s that HP doesn’t have agents for. I was hoping that the iLO would have SNMP enabled to monitor the alarm lights on the front display of the server. iLO does not support SNMP without an OS with an agent. Now, I resort to sneakernet to check the status of each of my servers by looking at the lights.
    Do you have any suggestions on monitoring the bare hardware via iLO without an OS SIM agent?

    1. Ben Post author

      Hi itcoop,

      If the HP ITRC forums are anything to go by (I googled “SNMP Traps from iLO”), then sadly monitoring of hardware failure is only possible when the HP Agents are available.

      iLO will report on things like Power outages and things that directly effect it (Full event log, invalid logins).

      What might be possible is to schedule a script/task to run an additional 3rd party piece of software and email if anything is amiss? e.g. there are plenty of HDD S.M.A.R.T apps out there – perhaps script something to check the SMART status every hour and report back if it the status fails?

      May I enquire as to what OS’s you are running? Are they Linux variants?

  5. itcoop


    I thought I was logged into WordPress on my last post (sorry). I’m running a couple variants of VxWorks for turning the iLO HP PC into an “appliance” application. Also, I have some free licensed VMWare ESXi hosts. I was thinking about using the sample scripts that appear to use a REST style API to get info off of the iLO web page – similar to what you are suggesting. Have you used these XML/REST interfaces before?

    All of my monitoring and alerting for production systems is accomplished with The Dude. It is capable of executing local tasks and reporting or take action. Overall, it’s pretty flexible and friendly to those that don’t like computers which is why I keep it around.

  6. Ben Post author

    Yep, in fact the Bulk updater is nothing more than a wrapper around the cpqlocfg script with passes REST style XML to iLO and returns results.

    Using the GET_EMBEDDED_HEALTH Tag, you should be able to obtain information on Fans, CPU Temp/Health and power Supply. As mentioned before a 3rd party app could get you Drive Status.

    That just leaves Array Controller to monitor & any direct attached storage & memory to monitor. Not sure hopw you could get that info πŸ™‚

    Is WBEM an option? Google “VMWare HP ESXi” which is a relase of ESXi from HP with the management agents embedded – this is a hell of a lot easier than trying to install them manually. The catch is though that all faults generated are WBEM indications, not SNMP Traps.

    Hope thats of some help πŸ™‚
    Big fan of Mikrotik gear, so I know of The Dude πŸ™‚ Not sure if it supports WBEM though…

Comments are closed.