Colin Westwater

HPE ProLiant iLO Configuration using PowerShell

We have pretty much standardised on HPE ProLiant servers. As part of this is the useful iLO interface for out of band management. In the past we have configured the iLO’s manually using the GUI. That has all changed now that HPE have iLO cmdlet’s to build and manage the iLO’s using PowerShell.

As part of my drive for CI and a personal goal of automating/scripting at least one process a month I saw an opportunity to convert the manual process to a script. This would result in a repeatable, standard process for configuring an iLO. It would not really provide much time and cost savings as this is really only done 3-4 times a year.

Add the standard login details we use for authentication (local users, no AD authentication)

Remove the default login

Patch up the the latest firmware revision

Add the iLO Advanced license key

Configure iLO Network and hostname

Configure SNTP

Configure SNMP

Setup AlertMail

Change the Power options

This is a total of 40 manual steps taking an average of 15-20 minutes. Let automate!

The code is pretty readable and commented, so I will let it lead you through. Please note this works for us. You can easily alter it for your setup. Also, lines 51 and 55 need changed for your SNMP and email setup. With this script you can provision an iLO in less than two minutes.