Installing HP ProLiant Utilities on Ubuntu Server
Table of Contents
Background
As mentioned in my “Self-Hosting with Docker and Argo Tunnel” post, I bought a HP DL360 G5 server a little while back. I’m most comfortable with Ubuntu Server, so I opted to install that on the sever. I recently learned that HP has utilities you can install on Linux to modify and view system-level settings and information, which is pretty cool.
I wanted to try them out, however, my server being a Gen 5, has not been supported for a long time and Ubuntu isn’t part of the of the group of OSs (Red Hat and SUSE) that get Service Packs. So the documentation and support is minimal, and it took me a bit of time to figure everything out.
Disclaimer: I’m working on a Gen 5 server, so things may vary.
Installation
First, in order to install the utilities, you need to add the source to apt
:
1sudo echo "deb http://downloads.linux.hpe.com/SDR/repo/mcp bionic/current non-free" > /etc/apt/sources.list.d/mcp.list
Next, you need enroll HPE’s public keys:
1curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
2curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
3curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
4curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -
Now, you just need to update your apt
sources, and install the utilities.
Despite the names of the packages listed on HPE’s page, I found that some of the packages simply didn’t exist, or had different names.
Utilities Overview
All of these utilities require being run as root.
hp-health
What Is It
“HPE System Health Application and Command line Utilities (Gen9 and earlier)”
Basically lets you view and adjust a lot of system-level settings from the command line.
Command
1hpasmcli
Example
1nathan@zeus:[~]$ sudo hpasmcli
2HPE management CLI for Linux (v2.0)
3Copyright 2015 Hewlett Packard Enterprise Development LP.
4
5--------------------------------------------------------------------------
6NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
7 Type 'help' to get a list of all top level commands.
8--------------------------------------------------------------------------
9hpasmcli> help
10CLEAR DISABLE ENABLE EXIT HELP NOTE QUIT REPAIR SET SHOW
11hpasmcli> show temp
12Sensor Location Temp Threshold
13------ -------- ---- ---------
14#1 I/O_ZONE 48C/118F 65C/149F
15#2 AMBIENT 24C/75F 40C/104F
16#3 PROCESSOR_ZONE 30C/86F 95C/203F
17#4 PROCESSOR_ZONE 30C/86F 95C/203F
18#5 POWER_SUPPLY_BAY 35C/95F 60C/140F
19#6 PROCESSOR_ZONE 30C/86F 95C/203F
20#7 PROCESSOR_ZONE 30C/86F 95C/203F
21
22hpasmcli>
hponcfg
What Is It
“HPE RILOE II/iLO online configuration utility”
Command-line configuration for iLO
Command
1hponcfg
Example
1nathan@zeus:[~]$ sudo hponcfg -h
2HP Lights-Out Online Configuration utility
3Version 5.3.0 Date 3/21/2018 (c) 2005,2018 Hewlett Packard Enterprise Development LP
4Firmware Revision = 1.61 Device type = iLO 2 Driver name = hpilo
5
6USAGE:
7 hponcfg -?
8 hponcfg -h
9 hponcfg -m minFw
10 hponcfg -r [-m minFw]
11 hponcfg -b [-m minFw]
12 hponcfg [-a] -w filename [-m minFw]
13 hponcfg -g [-m minFw]
14 hponcfg -f filename [-l filename] [-s namevaluepair] [-v] [-m minFw] [-u username] [-p password]
15 hponcfg -i [-l filename] [-s namevaluepair] [-v] [-m minFw] [-u username] [-p password]
16
17 -h, --help Display this message
18 -? Display this message
19 -r, --reset Reset the Management Processor to factory defaults
20 -b, --reboot Reboot Management Processor without changing any setting
21 -f, --file Get/Set Management Processor configuration from "filename"
22 -i, --input Get/Set Management Processor configuration from the XML input
23 received through the standard input stream.
24 -w, --writeconfig Write the Management Processor configuration to "filename"
25 -a, --all Capture complete Management Processor configuration to the file.
26 This should be used along with '-w' option
27 -l, --log Log replies to "filename"
28 -v, --xmlverbose Display all the responses from Management Processor
29 -s, --substitute Substitute variables present in input config file
30 with values specified in "namevaluepairs"
31 -g, --get_hostinfo Get the Host information
32 -m, --minfwlevel Minimum firmware level
33 -u, --username iLO Username
34 -p, --password iLO Password
amsd
What Is It
“HPE Agentless Management Service (Gen10 only)”
Command
1amsd
Example
¯\_(ツ)_/¯
I have a Gen 5 server, so it doesn’t do anything.
ams
What Is It
“HPE Agentless Management Service (Gen9 and earlier)”
Command
1ams
Example
¯\_(ツ)_/¯
It requires an X server running, so I don’t know what it does.
ssacli
What Is It
“HPE Command Line Smart Storage Administration Utility”
Command-line utility to view/modify storage arrays.
Command
1ssacli
Example
1nathan@zeus:[~]$ sudo ssacli ctrl all show config
2
3Smart Array E500 in Slot 1 (sn: PAFGH0K9XXXXXX)
4
5
6 Port Name: 1E
7
8 Port Name: 2E
9
10
11Smart Array P400i in Slot 0 (Embedded) (sn: PH87XXXXXX )
12
13
14
15 Internal Drive Cage at Port 1I, Box 1, OK
16
17
18 Port Name: 1I
19
20 Port Name: 2I
21
22 Array A (SAS, Unused Space: 4 MB)
23
24 logicaldrive 1 (136.67 GB, RAID 5, OK)
25
26 physicaldrive 1I:1:1 (port 1I:box 1:bay 1, SAS HDD, 72 GB, OK)
27 physicaldrive 1I:1:2 (port 1I:box 1:bay 2, SAS HDD, 72 GB, OK)
28 physicaldrive 1I:1:3 (port 1I:box 1:bay 3, SAS HDD, 72 GB, OK)
ssaducli
What Is It
“HPE Command Line Smart Storage Administration Diagnostics”
Command-line utility to diagnose storage arrays.
Command
1ssaducli
Example
ssa
What Is It
“HPE Array Smart Storage Administration Service”
This appears to do the same thing as the diagnostic tool plus a bit more.
Command
1ssa
Example
Conclusion
Despite some hiccups, with these utilities installed, I can now modify basically all of the BIOS and iLO settings without needing a keyboard or monitor. I don’t think I have any need anymore to go into the BIOS maybe other than maybe modifying the RAID array configuration (which would wipe everything).