Guide to installing HP System Management Tools CentOS 7
Posted: 2015/12/18 15:44:41
I have just installed an HP Proliant DL360 G7 server with a CentOS minimal install. Perhaps my Google Fu is weak, but I couldn't find a complete guide to installing all the management tools, including HP System Management Homepage. I found bits of information here and there and of course a lot of outdated information. So hopefully to save others a bit of time I thought I'd share how I did it.
To start with I will assume that you have installed CentOS 7.x and have a working network connection with internet access.
1. Adding HP YUM Repositories.
HP provide a script 'add_repo.sh' available from http://downloads.linux.hpe.com/getting_started.html that can be used to automatically configure the repositories. However this script for some reason needs the redhat-lsb that is not part of the minimal install. You could just install the package if you like but IMHO it is not worth it as there are a huge number of other packages that will need to be installed for dependencies (132 packages on my system!). Seeing that redhat-lsb is not required for any of the actual management tools it seems an awful waste to install it just for this script.
Instead of using the script, I manually created a configuration file for the 'Service Pack for ProLiant' and 'Management Component Pack' repositories. Details of these and others are available at http://downloads.linux.hp.com . There were no 7.2 specific repositories available at the time of looking, so I used the 7/7.1 versions and that worked fine. Obviously if you are doing this some time after I have written this there may be newer repositories available so do check and amend as necessary.
Simply add a file /etc/yum.repos.d/hp.repo and populate as follows...
Download copies of the gpg keys from http://downloads.linux.hpe.com/SDR/repo/spp/GPG-KEY-spp and http://downloads.linux.hpe.com/SDR/repo/mcp/GPG-KEY-mcp
Place them in /etc/pki/rpm-gpg/
2. Installing Tools
Now you have the repositories configured simply install the packages using yum.
This will give you the core set of tools.
3. Configuration
HP System Management Homepage uses SNMP to monitor the system heath and requires both read only and read write access to work. Simply run
Assuming this is a new install and you have not yet configured SNMP it is easiest to answer No to the first question 'do you want to use an existing configuration file'. Follow the configuration questions through to the end and a new file will be created.
4. Starting services
You will need to start the following services...
This is the service that monitors the hardware.
required so that HP System Management Homepage can monitor hp-heath traps.
This is the web application server service.
You will probably want these services to start at boot time so enable them as follows...
As part of HP System Management Homepage there is a web application for Smart Array Configuration. You are unlikely to want this to start at boot time as it is not something that will need to be used frequently and it is not required for monitoring the array health. To load it use
You will probably need to re-start hpsmhd to use it after starting it,
5. Firewall configuration
By default the HP System Management Homepage uses port 2381 that will need to be opened on the firewall for it to be accessed. Assuming you have the standard firewalld installed then do the following.
Create a new service
edit the following file /etc/firewalld/services/hpsmh.xml
Add the following lines after <service>
Now add the new service to your firewall configuration
* Note the default zone on a fresh install is public but you will probably want to change it to dmz or something.
Now simply reload the firewall
Finally. Using HP SMH
Point your browser to https://yourip:2381/ (replacing yourip with your actual server IP address).
At the login screen use the root user and password as set for your CentOS root account.
I hope this is useful to someone and once you have got this far you can obviously adjust your configuration to suit your environment.
Updated post, for new URLs and to update for 7.2
To start with I will assume that you have installed CentOS 7.x and have a working network connection with internet access.
1. Adding HP YUM Repositories.
HP provide a script 'add_repo.sh' available from http://downloads.linux.hpe.com/getting_started.html that can be used to automatically configure the repositories. However this script for some reason needs the redhat-lsb that is not part of the minimal install. You could just install the package if you like but IMHO it is not worth it as there are a huge number of other packages that will need to be installed for dependencies (132 packages on my system!). Seeing that redhat-lsb is not required for any of the actual management tools it seems an awful waste to install it just for this script.
Instead of using the script, I manually created a configuration file for the 'Service Pack for ProLiant' and 'Management Component Pack' repositories. Details of these and others are available at http://downloads.linux.hp.com . There were no 7.2 specific repositories available at the time of looking, so I used the 7/7.1 versions and that worked fine. Obviously if you are doing this some time after I have written this there may be newer repositories available so do check and amend as necessary.
Simply add a file /etc/yum.repos.d/hp.repo and populate as follows...
Code: Select all
[HP-spp]
name=HP Service Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/spp/RHEL/7.2/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-ssp
[HP-mcp]
name=HP Management Component Pack for ProLiant
baseurl=http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7.3/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp
Place them in /etc/pki/rpm-gpg/
2. Installing Tools
Now you have the repositories configured simply install the packages using yum.
Code: Select all
sudo yum install hp-health hpssacli hp-snmp-agents hpssa hpssacli hp-smh-templates hpsmh hponcfg
3. Configuration
HP System Management Homepage uses SNMP to monitor the system heath and requires both read only and read write access to work. Simply run
Code: Select all
/opt/hp/hpsmh/sbin/hpsnmpconfig
4. Starting services
You will need to start the following services...
Code: Select all
service hp-health start
Code: Select all
service snmpd start
Code: Select all
service hpsmhd start
You will probably want these services to start at boot time so enable them as follows...
Code: Select all
systemctl enable hp-health
systemctl enable snmpd
systemctl enable hpsmhd
Code: Select all
/opt/hp/hpssa/bin/hpssa -start
Code: Select all
service hpsmhd restart
By default the HP System Management Homepage uses port 2381 that will need to be opened on the firewall for it to be accessed. Assuming you have the standard firewalld installed then do the following.
Create a new service
Code: Select all
firewall-cmd --permanent --new-service=hpsmh
Add the following lines after <service>
Code: Select all
<short>hpsmh</short>
<description>HP System Managment Homepage</description>
<port protocol="tcp" port="2381"/>
Code: Select all
firewall-cmd --permanent --zone=public --add-service=hpsmh
Now simply reload the firewall
Code: Select all
firewall-cmd --reload
Point your browser to https://yourip:2381/ (replacing yourip with your actual server IP address).
At the login screen use the root user and password as set for your CentOS root account.
I hope this is useful to someone and once you have got this far you can obviously adjust your configuration to suit your environment.
Updated post, for new URLs and to update for 7.2