HP Health Management

From Funtoo
Jump to: navigation, search

This page documents how to enable HP Health under Funtoo Linux, which allows you to perform a variety of health monitoring functions on HP servers. There is currently no ebuild for this, but hopefully one will be created in the future.

First, load needed modules:

# modprobe ipmi_devintf

Now, download hp-health and hp-snmp-agent RPMs from Hewlett Packard. These are the files I have:

# ls *.rpm -l
-rw-r----- 1 root root  327088 Oct 11 22:09 hp-health-10.00-1688.34.rhel6.x86_64.rpm
-rw-r----- 1 root root 1028528 Oct 11 22:44 hp-snmp-agents-10.00-2654.31.rhel6.x86_64.rpm

These RPM files can be converted to tarballs using the Package:App-arch/rpm2targz as follows:

# rpm2targz myfile.rpm

This will create a tarball in your current directory with the identical name as the RPM. Install both RPMs as follows:

# tar xpvf hp-health-10.00-1688.34.rhel6.x86_64.tar.gz -C /
# tar xpvf hp-snmp-agents-10.00-2654.31.rhel6.x86_64.tar.gz -C / 

Okay, now the next step is that we need to start the proper health monitoring daemon, which will create the /dev/cpqhealth tree that the command-line utilities need. The following commands are available:

hpasmpldProliant Standard IPMI-based 1XX System Health Monitor
hpasmlimitedProliant Standard IPMI based System Health Monitor
hpasmxldProliant High Performance IPMI based System Health Monitor
hpasmdProliant System Health Monitor

These commands live in /opt/hp/hp-health/bin. You will need to choose the one that works for your system and start it as follows:

# /opt/hp/hp-health/bin/hpasmpld -f /dev/ipmi0

How do you know which daemon is the right one for your system? The right one for your system will allow you to use hpasmcli (see below) to view temperature settings, etc. If hpasmcli reports that your system has no fans, sensors, etc., then you are not using the right command from the list above. Kill the running daemon and try a new one.

The daemon should auto-background and you should be able to see it running in your ps process listing. Now, command-line tools should work. Try the following commands:

# hplog -v


# hpasmcli 
HP management CLI for Linux (v2.0)
Copyright 2008 Hewlett-Packard Development Group, L.P.

This server ProLiant DL160 G6  , is a Proliant 100 Series Server.
NOTE: Some hpasmcli commands may not be supported on 100 series servers.
      Type 'help' to get a list of all top level commands.
hpasmcli> show fans
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
#2   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
#3   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
#4   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
#5   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
#6   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
#7   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
#8   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
#9   SYSTEM          Yes     NORMAL  34%     Yes        0        No            
#10  SYSTEM          Yes     NORMAL  28%     Yes        0        No            
#11  SYSTEM          Yes     NORMAL  35%     Yes        0        No            
#12  SYSTEM          Yes     NORMAL  29%     Yes        0        No