Create Users with the HP iLO CLI

I must admit, configuring stuff on HP boxes via their Integrated Lights Out (iLO) is something you don’t have to do often… generally you do it when you set a new box up and that’s it. But with the amount of blades coming into the lab these days, I figured it was about time I started using the CLI to do stuff rather than the web based UI.

Of course the interface is fully documented here, but the commands, contexts and properties are documented in different sections so it doesn’t flow that well. So I thought what the hell, I might as well put up a few posts on the quickest way to do some common tasks. Starting with this one.

The task at hand was to create some users on each blade in order to play around with vSphere’s Distributed Power Management feature. You can do this in 2 simple commands:

create /map1/accounts1 username=dpm_usr password=a_strong_password
set /map1/accounts1/dpm_usr group=oemhp_power

This will result in a user being created with only the ‘Virtual Power and Reset’ privilege, which is all that is required for DPM to work. Do we like the principle of least privilege? Yes we do :). This looks as follows in the iLO UI:

Pretty cool. Doing this via the CLI on 16 blades sure was a lot faster than pointing and clicking my way through. Will post up some more examples as I come across them!


6 Responses to “Create Users with the HP iLO CLI”

  1. NiTRo Says:

    Hi Stu, the hp link doesn’t work šŸ˜‰

    • stu Says:

      Woops – thx for pointing out the broken link fellas, I left the http:// off the front of the URL so WordPress thought it was a local link!

  2. Christian Says:

    RIBCL + HPONCFG using the OA CLI (or external scripts) is even simpler. You can configure all iLO settings on an entire enclosure with 1 command.

    See for a couple of examples.

  3. Mike Laverick Says:

    I tried this via the GUI on the old ILO1 (Ive got G1s) and found powermanagement rights weren’t enough to make DPM work. Think it might an ILO1 issue, nice to see this has been resolved with ILO2…

  4. McG Says:

    Thanks for the info. I’ll have to give it a go this week…and see what other nuggets are in that CLI guide.

    FYI, the link to HP’s PDF is bad…looks like you have your article’s URL prepended to HP’s URL.

  5. RTFM Education » Blog Archive » PowersHell: Enabling DPM Settings (IPMI/iLO/BMC) Says:

    […] […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: