Note

The Funtoo Linux project has transitioned to "Hobby Mode" and this wiki is now read-only.

HP Health Management

From Funtoo
Revision as of 05:02, October 12, 2014 by Drobbins (talk | contribs) (Created page with "This page documents how to enable HP Health under Funtoo Linux. There is currently no ebuild for this, but hopefully one will be created in the future. First, load needed mod...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page documents how to enable HP Health under Funtoo Linux. There is currently no ebuild for this, but hopefully one will be created in the future.

First, load needed modules:

root # modprobe ipmi_si
root # modprobe ipmi_devintf
root # modprobe hpilo

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

root # 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:

root # rpm2targz myfile.rpm

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

root # tar xpvf hp-health-10.00-1688.34.rhel6.x86_64.tar.gz -C /
root # 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:

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

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

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:

root # hplog -v

And...

root # 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
---  --------        ------- -----  ------  ---------  -------  -------------
root #1   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
root #2   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
root #3   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
root #4   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
root #5   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
root #6   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
root #7   SYSTEM          Yes     NORMAL  25%     Yes        0        No            
root #8   SYSTEM          Yes     NORMAL  20%     Yes        0        No            
root #9   SYSTEM          Yes     NORMAL  34%     Yes        0        No            
root #10  SYSTEM          Yes     NORMAL  28%     Yes        0        No            
root #11  SYSTEM          Yes     NORMAL  35%     Yes        0        No            
root #12  SYSTEM          Yes     NORMAL  29%     Yes        0        No            

hpasmcli>