Bash Script – Install HP Server Management Tools on Ubuntu Server

Here’s a quick and dirty, no-frills bash script to install the HP Server Management Tools on Ubuntu Server. As is, it will install the command line utilities to configure ILO and your RAID controllers. You can look up the other package names available for your distribution by examining the Packages file as in this example here:

http://downloads.linux.hpe.com/SDR/downloads/MCP/Ubuntu/dists/trusty/current/non-free/binary-amd64/Packages

Package: ssa
Priority: optional
Section: admin
Maintainer: Linux_SWdeliverables@groups.ext.hpe.com
Architecture: amd64
Source: ssa
Version: 3.10-3.0
Replaces: hpssa
Depends: libc6 (>= 2.7)
Filename: pool/non-free/ssa-3.10-3.0_amd64.deb
Size: 7487676
MD5sum: 624fff14137b69b16f494a8bafc672c1
SHA1: 42f37b9b8c80bbea07e73532369b7501ef60ef71
SHA256: d31f3ac9a7258dac218ba53422f6233f1f2d534a2bdfeaee93557328fbc5608d
SHA512: 33d69d83f07e7963084933e40a36b6a2a724f52b982283aa2acdaa85b56e8cc1fb5b5e6b38e80dfc247d91fb019dbc697a0444144302b99d836b5c343ce5b642
Description: Smart Storage Administration Utility
 Smart Storage Administration Utility is the disk
 array configuration program for Array Controllers.
Build-Depends: debhelper (>> 5)
Standards-Version: 3.7.2.2

Once you’ve found the package name you want, just add it to the apt-get install line of the script if you want to install additional tools.

This script assumes you’re logged in as root. If not, just add sudo to all the commands.

/usr/local/bin/install_hp_tools.sh

curl http://downloads.linux.hpe.com/SDR/downloads/MCP/GPG-KEY-mcp | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey1024.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpPublicKey2048_key1.pub | apt-key add -
curl http://downloads.linux.hpe.com/SDR/hpePublicKey2048_key1.pub | apt-key add -
echo "deb http://downloads.linux.hpe.com/SDR/downloads/MCP/ubuntu `lsb_release -c -s`/current non-free" > /etc/apt/sources.list.d/hp.list
apt-get update
apt-get install -y hponcfg ssacli ssaducli
chmod +x /usr/local/bin/install_hp_tools.sh
/usr/local/bin/./install_hp_tools.sh

Leave a Reply