ilo rest configuration

Configure a HP server using command line

Hello everyone !

For this first post, I propose to help you in the administration of your HP servers.

There is a tool that HP has published called ILO RESTful Interface tool that will allow you to launch a remote command on the server you want using the REST API. The advantage with this tool is that we can do some scripting and be able to directly launch the commands you want to several servers [subject covered in another article].

The tool can be found at this address (personally I took the Windows version)

So we’ll start by using the tool at its minimum, i.e. logging in and changing a “basic” parameter. For this, we will start the tool as administrator, then we will initiate it by simply typing:


Then we will connect to our ILO using the command:

login serveraddress -u user -p password 

Once all this is filled in you should be connected to the server! That’s already a good point.

The tool uses the REST api so the operation will be done with requests that we will push to the server (GET, SET, SELECT …) with these requests we will be able to either display the information, or modify it for the most basic ones. Warning: there is no confirmation when you type the commands, so be careful what you change.

So first of all I’m going to type “types” and the result of this command will give me all the categories I can go into.

Now I’m gonna go see what’s on the SNMP side:

select SnmpService.1.0.0

Now that we’ve selected our “types”, we’re going to look at the data it contains, so we’re going to start entering the “get” command and then press tab to see what we’re getting:

Tip, if you want to know what the parameters are used for, you can use this command:

info "parametername"

You’ll get a lot of information that way:

Now let’s say I want to change this parameter (the SNMP community parameter), I’ll use the SET query:

Here I define the communities in public [For the example it’s not very safe]

At the end of my modifications I don’t forget to save so that my changes are taken into account:

Here you go, you can now edit you server parameters remotely, now try to find the parameters you are looking for and try to automate it !

Leave a Reply

Your email address will not be published. Required fields are marked *