ProLiant Servers (ML,DL,SL)
1827174 Members
1949 Online
109716 Solutions
New Discussion

Re: HOWTO / Guide / Instructions - Install HP PSP On CentOS 5

 
Woody2143
New Member

HOWTO / Guide / Instructions - Install HP PSP On CentOS 5

How To install the HP Proliant Support Pack (PSP) on CentOS 5:

I had a drive die and was forced to rebuild the machine from scratch (backups are your friend), and subsequently prompted me to write the doc/post. My apologies at how rough it is, it was written on the fly.

I hope it will help others who find themselves trying to install, setup and run the HP Proliant Support Pack (PSP) on CentOS.

The following is based on my experiences and worked for me, your milage may vary and you follow these instructions at your own risk. If there is a command run that you do not understand take the time to check the man pages to understand the command and any switches used.

Oh, and take the time to read the output of anything that looks like an error. A little reading and critical thought can go a long way...

1) Download drivers from HP:
http://h20000.www2.hp.com/bizsupport/TechSupport/SoftwareDescription.jsp?lang=en&cc=us&prodTypeId=15351&prodSeriesId=3884315&prodNameId=3884316&swEnvOID=4074&swLang=13&mode=2&taskId=135&swItem=MTX-b0c5f582d85444048079a2cd0a
I downloaded hp-psp-8.25-18-CentOS.tar.gz

1.a) Reference the HP PSP Support Manual
http://h20000.www2.hp.com/bc/docs/support/SupportManual/c00472061/c00472061.pdf

2) Software Dependencies

The HP PSP support Manual suggest that the following packages be installed prior to installing the HP packages.

I have added some packages that I found will be needed as well.

glib.i386 : A library of handy utility functions.
glib.x86_64 : A library of handy utility functions.

compat-db.i386 : The Berkeley DB database library for Red Hat Linux 7.x compatibility.
compat-db.x86_64 : The Berkeley DB database library for Red Hat Linux 7.x compatibility.

ncurses.x86_64 : A terminal handling library

libgcc.i386 : GCC version 4.1 shared support library
libgcc.x86_64 : GCC version 4.1 shared support library

gcc.x86_64 : Various compilers (C, C++, Objective-C, Java, ...)

compat-gcc-34.x86_64 : Compatibility GNU Compiler Collection

compat-libstdc++-33.i386 : Compatibility standard C++ libraries
compat-libstdc++-33.x86_64 : Compatibility standard C++ libraries

compat-gcc-34-c++.x86_64 : C++ support for compatibility compiler

libstdc++.i386 : GNU Standard C++ Library
libstdc++.x86_64 : GNU Standard C++ Library

lm_sensors.i386 : Hardware monitoring tools.
lm_sensors.x86_64 : Hardware monitoring tools.

net-snmp-libs.i386 : The NET-SNMP runtime libraries.
net-snmp-libs.x86_64 : The NET-SNMP runtime libraries.

net-snmp.x86_64 : A collection of SNMP protocol tools and libraries.

kernel-devel.x86_64 : Development package for building kernel modules to match the kernel.

2.a) Install the dependencies

[root@server ~]# yum install glib.i386 glib.x86_64 compat-db.i386 compat-db.x86_64 ncurses.x86_64 libgcc.i386 libgcc.x86_64 gcc compat-gcc-34.x86_64 compat-libstdc++-33.i386 compat-libstdc++-33.x86_64 compat-gcc-34-c++.x86_64 libstdc++.i386 libstdc++.x86_64 lm_sensors.i386 lm_sensors.x86_64 net-snmp-libs.i386 net-snmp-libs.x86_64 net-snmp.x86_64 kernel-devel.x86_64

3) Build the kernel config

[root@server ~]# cd /usr/src/kernels/2.6.18-194.3.1.el5-x86_64
[root@server 2.6.18-194.3.1.el5-x86_64]# make oldconfig && make prepare


4) Unarchive the HP PSP support pack

[root@server ~]# tar zxvf hp-psp-8.25-18-CentOS.tar.gz

5) Go to the directory with the packages you need for your arch

[root@server ~]# cd psp/centos/5/x86_64/current/

6) Install the HP PSP packages (follow this order as some depend on others).

6.a) Install the hp-OpenIPMI package

[root@server current]# yum localinstall --nogpgcheck hp-OpenIPMI-8.2.5-34.rhel5.x86_64.rpm

You should see it compile the drivers and hopefully not see any errors or failures.

6.b) Install hp-ilo package

[root@server current]# yum localinstall --nogpgcheck hp-ilo-8.2.5-22.rhel5.x86_64.rpm

6.c) Install the hp-health package

[root@server current]# yum localinstall --nogpgcheck hp-health-8.2.5-50.rhel5.x86_64.rpm

6.d) Install the hpacucli package

[root@server current]# yum localinstall --nogpgcheck hpacucli-8.28-13.0.noarch.rpm

6.e) Install the hponcfg package

[root@server current]# yum localinstall --nogpgcheck hponcfg-1.9.0-3.noarch.rpm


6.f) Install the hpmouse package

[root@server current]# yum localinstall --nogpgcheck hpmouse-1.1.2-33.noarch.rpm

********** NOTICE *************
Please follow the steps below to configure this system.
cd /opt/hp/hpmouse
Run "sh ./hpmouse activate" to configure X.
The X server must be restarted for the changes to take effect.
See /opt/hp/hpmouse/hpmouse-README for details

6.g) Install the HP SMH package

[root@server current]# yum localinstall --nogpgcheck hpsmh-3.0.1-73.x86_64.rpm

**********************************************************
* System Management Homepage installed successfully with *
* default configuration values. To change the default *
* configuration values, type the following command at *
* the root prompt: *
* *
* /opt/hp/hpsmh/sbin/smhconfig *
* *
**********************************************************

6.h) Install the hp-snmp-agents package

[root@server current]# yum localinstall --nogpgcheck hp-snmp-agents-8.2.5-50.rhel5.x86_64.rpm

==============================================================================
NOTE: In order to activate the software contained in this package, you must
type '/sbin/hpsnmpconfig' as 'root' user.
Once configuration is completed start the agents by typing
/etc/init.d/hp-snmp-agents start
==============================================================================

6.i) Install the HP SMH Templates

[root@server current]# yum localinstall --nogpgcheck hp-smh-templates-8.2.5-41.noarch.rpm

6.j) Install the cpqacuxe package

[root@server current]# yum localinstall --nogpgcheck cpqacuxe-8.28-13.0.noarch.rpm

6.k) Install the hp-diags package

[root@server current]# yum localinstall --nogpgcheck hpdiags-8.2.5-7.linux.i586.rpm

7) Start the hp-health service

/etc/init.d/hp-health start

8) Configure the hp-snmp-agents service

This is what tripped me up the first time I installed the drivers, this is really needed for the SMH page.

[root@server current]# /sbin/hpsnmpconfig

8.a) SNMP / SELinux Configuration problem.

The first time I set this up I didn't have any problems but after the rebuild I got the below errors:

[root@server ~]# tail /var/log/messages
Jun 23 20:36:36 server setroubleshoot: SELinux is preventing ifconfig (ifconfig_t) "read write" to socket (initrc_t). For complete SELinux messages. run sealert -l 0d34c583-bf97-4aff-9716-603c7eee148e

I believe that one of the above installs of the HP packages should have taken care of the SELinux policies but this time it didn't.

Running the following command will check /var/log/messages and show you the rule that needs to be put in place.

[root@server targeted]# audit2allow -a

#============= ifconfig_t ==============
allow ifconfig_t initrc_t:netlink_route_socket { read write };


Then I used the following command to build a policy package that would enable this rule.

[root@server ~]# audit2allow -a -M mysemanage
******************** IMPORTANT ***********************
To make this policy package active, execute:

semodule -i mysemanage.pp

[root@server ~]# semodule -i mysemanage.pp


And that is it, with the policy in place the error messages disappeared.

8.b) SNMP Logs

Speaking of SNMP messages in the logs there will be a LOT of them. And that is fine when you first setup and want to make sure everything is configured correctly but after that they are annoying filler.

To disable the extra messages do the following:

vi /etc/sysconfig/snmpd.options

Change the following line from:

#OPTIONS="-Lsd -Lf /dev/null -p /var/run/snmpd.pid -a"

To:

OPTIONS="-LS 0-4 d -Lf /dev/null -p /var/run/snmpd.pid -a"

Notice the CAPITAL S, that is important.

Save & Quit

Then restart the snmp service.

/etc/init.d/snmpd restart


9) Configure the SMH service

You can edit the file /opt/hp/hpsmh/conf/smhpd.conf by using the smhconfig command. Replace the IP with the IP of the server you are setting up on.

[root@server current]# /opt/hp/hpsmh/sbin/smhconfig --ip-binding-list=192.168.0.10

10) Configure iptables to open the ports needed to use HP SMH.

[root@server hp]# vi /etc/sysconfig/iptables

You need to add ports 2381 and port 636

Add the following two lines ABOVE the last REJECT line.

-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 2381 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 636 -j ACCEPT

Save & Quit.

Restart iptables:
/etc/init.d/iptables restart

11) Start the HP SMH service

/etc/init.d/hpsmhd start

12) Enable the Smart Array Configuration Utility

Enable the web interface to the Smart Array configuration utility by doing the following:

[root@server psp]# cpqacuxe --enable-remote

13) Test the HP SMH site.

Go to the site from your browser:
https://server-ip:2381/

Accept the security certificate if it's not trusted.

Use the root username and password to log in. On the top-right of the page you should see, under 'Data Source', 'SNMP' if you have snmp and hp-snmp-agents configured correctly and started.

14) Configure ILO

[root@server ~]# hponcfg -w ilo.cfg
Firmware Revision = 1.81 Device type = iLO 2 Driver name = hpilo
RILOE II/iLO configuration successfully written to file "ilo.cfg"

[root@server ~]# vi ilo.cfg

Edit the following line and change the password:


It may also be a good diea to edit the networking settings and set a static IP on the ILO interface.

Save & Quit.

Load the new config file:
[root@server ~]# hponcfg -f ilo.cfg
Firmware Revision = 1.81 Device type = iLO 2 Driver name = hpilo
Integrated Lights-Out will reset at the end of the script.
Please wait while the firmware is reset. This might take a minute
Script succeeded


15) Test ILO login out.

If you set a static IP go to that address in a browser

https://server-ilo/

You *should* be able to log in with the account 'Administrator' and whatever password you set.



16) Verify the services...

Use the following command to verify that the services are enabled at boot:

[root@server hp]# chkconfig --list | egrep 'hp|snmp'
hp-health 0:off 1:off 2:on 3:on 4:on 5:on 6:off
hp-ilo 0:off 1:off 2:on 3:on 4:on 5:on 6:off
hp-snmp-agents 0:off 1:off 2:on 3:on 4:on 5:on 6:off
hpsmhd 0:off 1:off 2:off 3:on 4:on 5:on 6:off
snmpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off
snmptrapd 0:off 1:off 2:off 3:on 4:off 5:off 6:off





Final Notes:

Sorry for the poor writing, I was just noting things down as I was working and should have spent more time editing before posting.


I am also very sorry I didn't post all of the sources I used to sort all this mess out. Part of it was I had already done it before and the other part is I didn't think of recording the sources till it was too late.

If you have any suggestions/edits let me know. I am going to track down a wiki I can post this up on so others can contribute if they feel like it. I'll try to post a link once I get it going.

Some sources I used:

Google in general. :)

Site I used to fix my SNMP/SELinux problem:
http://www.centos.org/docs/5/html/Deployment_Guide-en-US/sec-sel-building-policy-module.html

Turning down the SNMP logging:
http://raetsel.wordpress.com/2008/02/15/snmpd-filling-up-varlogmessages/
1 REPLY 1
Jan Soska
Honored Contributor

Re: HOWTO / Guide / Instructions - Install HP PSP On CentOS 5

Very nice and hadfull post...