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