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: