Guide to installing HP System Management Tools CentOS 7

General support questions
dgrant
Posts: 37
Joined: 2009/01/31 19:07:47
Location: ~/Earth/UK/England/Oxford

Guide to installing HP System Management Tools CentOS 7

Post by dgrant » 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...

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
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.

Code: Select all

sudo yum install hp-health hpssacli hp-snmp-agents hpssa hpssacli hp-smh-templates hpsmh hponcfg
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

Code: Select all

/opt/hp/hpsmh/sbin/hpsnmpconfig
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...

Code: Select all

service hp-health start
This is the service that monitors the hardware.

Code: Select all

service snmpd start
required so that HP System Management Homepage can monitor hp-heath traps.

Code: Select all

service hpsmhd start
This is the web application server service.

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
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

Code: Select all

/opt/hp/hpssa/bin/hpssa -start
You will probably need to re-start hpsmhd to use it after starting it,

Code: Select all

service hpsmhd restart
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

Code: Select all

firewall-cmd --permanent --new-service=hpsmh
edit the following file /etc/firewalld/services/hpsmh.xml
Add the following lines after <service>

Code: Select all

<short>hpsmh</short>
 <description>HP System Managment Homepage</description>
 <port protocol="tcp" port="2381"/>
Now add the new service to your firewall configuration

Code: Select all

firewall-cmd --permanent --zone=public --add-service=hpsmh
* 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

Code: Select all

firewall-cmd --reload
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
Last edited by dgrant on 2018/08/25 16:49:15, edited 2 times in total.

SamLee
Posts: 65
Joined: 2015/08/05 08:13:26
Location: ShenZhen China
Contact:

Re: Guide to installing HP System Management Tools CentOS 7

Post by SamLee » 2015/12/19 13:41:40

Hi Dgrant,

Good day.
Thanks for sharing the useful guide.

Regards,
Sam
Study More, work hard

Aleksey.I.Maksimov
Posts: 16
Joined: 2016/05/30 13:15:18
Contact:

Re: Guide to installing HP System Management Tools CentOS 7

Post by Aleksey.I.Maksimov » 2016/05/30 13:21:12

Many thanks, dgrant.
How about installing Version Control Agent on CentOS 7 ?
I was able to install it...

Code: Select all

wget http://ftp.hp.com/pub/softlib2/software1/pubsw-linux/p774107023/v108905/hpvca-7.3.5-0.noarch.rpm
yum install ~/hpvca-7.3.5-0.noarch.rpm
...but he does not see the SPP for RHEL 7.
Any idea how to overcome this?

Aleksey.I.Maksimov
Posts: 16
Joined: 2016/05/30 13:15:18
Contact:

Re: Guide to installing HP System Management Tools CentOS 7

Post by Aleksey.I.Maksimov » 2016/06/05 08:32:51

Maybe some ideas on how to get an VCA on CentOC 7.2 to think that it is running on RHEL 7.2 ?

User avatar
TrevorH
Forum Moderator
Posts: 25064
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Guide to installing HP System Management Tools CentOS 7

Post by TrevorH » 2016/06/05 12:14:55

Did you try the usual trick of editing /etc/redhat-release?
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke


Aleksey.I.Maksimov
Posts: 16
Joined: 2016/05/30 13:15:18
Contact:

Re: Guide to installing HP System Management Tools CentOS 7

Post by Aleksey.I.Maksimov » 2016/06/07 15:13:38

Ок. In my CentOS 7.2 /etc/redhat-release linked to /etc/centos-release

Code: Select all

# ls -la /etc/redhat-release
lrwxrwxrwx. 1 root root 14 Jun  5 16:46 /etc/redhat-release -> centos-release

# ls -la /etc/centos-release
-rw-r--r--. 1 root root 38 Dec  9 12:59 /etc/centos-release
I changed the contents of the file from...

Code: Select all

CentOS Linux release 7.2.1511 (Core)
...to...

Code: Select all

Red Hat Enterprise Linux Server release 7.2 (Maipo)

Code: Select all

# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.2 (Maipo)
and then reload VCA service.

No effect for VCRM. In VCRM in report tab not display the operating system for my CentOS 7.2 VCA.
I can not attach a screenshot :(

dgrant
Posts: 37
Joined: 2009/01/31 19:07:47
Location: ~/Earth/UK/England/Oxford

Re: Guide to installing HP System Management Tools CentOS 7

Post by dgrant » 2016/09/26 16:33:33

HP repos have moved, new hp.repo file I am now using is 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.2/x86_64/current/
enabled=1
gpgcheck=0
gpgkey=file:///etc/pki/rpm-gpg/GPG-KEY-mcp

SpeakerToMeat
Posts: 1
Joined: 2016/12/30 21:19:51

Re: Guide to installing HP System Management Tools CentOS 7

Post by SpeakerToMeat » 2016/12/30 21:24:40

Currently, HP's SSP has support for RHEL 7.3, but MCP offers support for CentOS only up to 7.2, should CentOS 7.3 users choose the rhel 7.3 SSP, or the CentOS 7.2 MCP? (My guess is mixing both would be worse than using either one with the system).

mdkhvn
Posts: 1
Joined: 2017/07/11 13:37:30

Re: Guide to installing HP System Management Tools CentOS 7

Post by mdkhvn » 2017/07/11 13:46:14

Hi,
I tried to install HPE SMH.after installation when I tried to config hpsnmpconfig from bellow command this file is not exist
/opt/hp/hpsmh/sbin/hpsnmpconfig
another issue that i have is when i start the hp-health i copied bellow:
[root@CentOS-7 ~]# systemctl status hp-health
● hp-health.service - HP System Health Monitor
Loaded: loaded (/usr/lib/systemd/system/hp-health.service; enabled; vendor pr eset: disabled)
Active: failed (Result: exit-code) since Tue 2017-07-11 14:59:36 +0430; 3h 16 min ago
Process: 5968 ExecStart=/usr/lib/systemd/scripts/hp-health.sh start (code=exit ed, status=1/FAILURE)

Jul 11 14:59:36 CentOS-7 systemd[1]: Starting HP System Health Monitor...
Jul 11 14:59:36 CentOS-7 hp-health.sh[5968]: Trying to identify the Product ...d
Jul 11 14:59:36 CentOS-7 hp-health.sh[5968]: ERROR: This server is NOT suppo...!
Jul 11 14:59:36 CentOS-7 hp-health.sh[5968]: Error: No supported management ...d
Jul 11 14:59:36 CentOS-7 systemd[1]: hp-health.service: control process exi...=1
Jul 11 14:59:36 CentOS-7 systemd[1]: Failed to start HP System Health Monitor.
Jul 11 14:59:36 CentOS-7 systemd[1]: Unit hp-health.service entered failed ...e.
Jul 11 14:59:36 CentOS-7 systemd[1]: hp-health.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

Post Reply