HP ProLiant servers management with hpasmcli

February 16, 2011 — 41 Comments

Hpasmcli, HP Management Command Line Interface, is a scriptable command line tool to manage and monitor the HP ProLiant servers through the hpasmd and hpasmxld daemons. It is part of the hp-health package that comes with the HP Proliant Support Pack, or PSP.

[root@rhel4 ~]# rpm -qa | grep hp-health
hp-health-8.1.1-14.rhel4
[root@rhel4 ~]#
[root@rhel4 ~]# rpm -qi hp-health-8.1.1-14.rhel4
Name        : hp-health                    Relocations: (not relocatable)
Version     : 8.1.1                             Vendor: Hewlett-Packard Company
Release     : 14.rhel4                      Build Date: Fri 04 Jul 2008 07:04:51 PM CEST
Install Date: Thu 02 Apr 2009 05:10:48 PM CEST      Build Host: rhel4ebuild.M73C253-lab.net
Group       : System Environment            Source RPM: hp-health-8.1.1-14.rhel4.src.rpm
Size        : 1147219                          License: 2008 Hewlett-Packard Development Company, L.P.
Signature   : (none)
Packager    : Hewlett-Packard Company
URL         : http://www.hp.com/go/proliantlinux
Summary     : hp System Health Application and Command line Utility Package
Description :
This package contains the System Health Monitor for all hp Proliant systems
with ASM, ILO, & ILO2 embedded management asics.  Also contained are the
command line utilities.
[root@rhel4 ~]#
[root@rhel4 ~]# rpm -ql hp-health-8.1.1-14.rhel4
/etc/init.d/hp-health
/opt/hp/hp-health
/opt/hp/hp-health/bin
/opt/hp/hp-health/bin/IrqRouteTbl
/opt/hp/hp-health/bin/hpasmd
/opt/hp/hp-health/bin/hpasmlited
/opt/hp/hp-health/bin/hpasmpld
/opt/hp/hp-health/bin/hpasmxld
/opt/hp/hp-health/hprpm.xpm
/opt/hp/hp-health/sh
/opt/hp/hp-health/sh/hpasmxld_reset.sh
/sbin/hpasmcli
/sbin/hpbootcfg
/sbin/hplog
/sbin/hpuid
/usr/lib/libhpasmintrfc.so
/usr/lib/libhpasmintrfc.so.2
/usr/lib/libhpasmintrfc.so.2.0
/usr/lib/libhpev.so
/usr/lib/libhpev.so.1
/usr/lib/libhpev.so.1.0
/usr/lib64/libhpasmintrfc64.so
/usr/lib64/libhpasmintrfc64.so.2
/usr/lib64/libhpasmintrfc64.so.2.0
/usr/share/man/man4/hp-health.4.gz
/usr/share/man/man4/hpasmcli.4.gz
/usr/share/man/man7/hp_mgmt_install.7.gz
/usr/share/man/man8/hpbootcfg.8.gz
/usr/share/man/man8/hplog.8.gz
/usr/share/man/man8/hpuid.8.gz
[root@rhel4 ~]#

This handy tool can be used to view and modify several BIOS settings of the server and to monitor the status of the different hardware components like fans, memory modules, temperature, power supplies, etc.

It can be used in two ways:

  • Interactive shell
  • Within a script

The interactive shell supports TAB command completion and command recovery through a history buffer.

[root@rhel4 ~]# hpasmcli
HP management CLI for Linux (v1.0)
Copyright 2004 Hewlett-Packard Development Group, L.P.

--------------------------------------------------------------------------
NOTE: Some hpasmcli commands may not be supported on all Proliant servers.
      Type 'help' to get a list of all top level commands.
--------------------------------------------------------------------------
hpasmcli> help
CLEAR  DISABLE  ENABLE  EXIT  HELP  NOTE  QUIT  REPAIR  SET  SHOW
hpasmcli>

As it can be seen in the above example several main tasks can be done, to get the usage of every command simply use HELP followed by the command.

hpasmcli> help show
USAGE: SHOW [ ASR | BOOT | DIMM | F1 | FANS | HT | IML | IPL | NAME | PORTMAP | POWERSUPPLY | PXE | SERIAL | SERVER | TEMP | UID | WOL ]
hpasmcli>
hpasmcli> HELP SHOW BOOT
USAGE: SHOW BOOT: Shows boot devices.
hpasmcli>

In my experience SHOW is the most used command above the others. Following are examples for some of the tasks.

- Display general information of the server

hpasmcli> SHOW SERVER
System        : ProLiant DL380 G5
Serial No.    : XXXXXXXXX     
ROM version   : P56 11/01/2008
iLo present   : Yes
Embedded NICs : 2
        NIC1 MAC: 00:1c:c4:62:42:a0
        NIC2 MAC: 00:1c:c4:62:42:9e

Processor: 0
        Name         : Intel Xeon
        Stepping     : 11
        Speed        : 2666 MHz
        Bus          : 1333 MHz
        Core         : 4
        Thread       : 4
        Socket       : 1
        Level2 Cache : 8192 KBytes
        Status       : Ok

Processor: 1
        Name         : Intel Xeon
        Stepping     : 11
        Speed        : 2666 MHz
        Bus          : 1333 MHz
        Core         : 4
        Thread       : 4
        Socket       : 2
        Level2 Cache : 8192 KBytes
        Status       : Ok

Processor total  : 2

Memory installed : 16384 MBytes
ECC supported    : Yes
hpasmcli>

- Show current temperatures

hpasmcli> SHOW TEMP
Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#1        I/O_ZONE             49C/120F   70C/158F
#2        AMBIENT              23C/73F    39C/102F
#3        CPU#1                30C/86F    127C/260F
#4        CPU#1                30C/86F    127C/260F
#5        POWER_SUPPLY_BAY     52C/125F   77C/170F
#6        CPU#2                30C/86F    127C/260F
#7        CPU#2                30C/86F    127C/260F

hpasmcli>

- Get the status of the server fans

hpasmcli> SHOW FAN
Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   I/O_ZONE        Yes     NORMAL 45%     Yes        0        Yes          
#2   I/O_ZONE        Yes     NORMAL 45%     Yes        0        Yes          
#3   PROCESSOR_ZONE  Yes     NORMAL 41%     Yes        0        Yes          
#4   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes          
#5   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes          
#6   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes           

hpasmcli>

- Show device boot order configuration

hpasmcli> SHOW BOOT
First boot device is: CDROM.
One time boot device is: Not set.
hpasmcli>

- Set USB key as first boot device

hpasmcli> SET BOOT FIRST USBKEY

- Show memory modules status

hpasmcli> SHOW DIMM
DIMM Configuration
------------------
Cartridge #:   0
Module #:      1
Present:       Yes
Form Factor:   fh
Memory Type:   14h
Size:          4096 MB
Speed:         667 MHz
Status:        Ok

Cartridge #:   0
Module #:      2
Present:       Yes
Form Factor:   fh
Memory Type:   14h
Size:          4096 MB
Speed:         667 MHz
Status:        Ok

Cartridge #:   0
Module #:      3
Present:       Yes
Form Factor:   fh
Memory Type:   14h
Size:          4096 MB
Speed:         667 MHz
Status:        Ok
...

In the scripting mode hpasmcli can be used directly from the shell prompt with the -s option and the command between quotation marks, this of course allow you to process the output of the commands  like in the below exampl.

[root@rhel4 ~]# hpasmcli -s "show dimm" | egrep "Module|Status"
Module #:      1
Status:        Ok
Module #:      2
Status:        Ok
Module #:      3
Status:        Ok
Module #:      4
Status:        Ok
Module #:      5
Status:        Ok
Module #:      6
Status:        Ok
Module #:      7
Status:        Ok
Module #:      8
Status:        Ok
[root@rhel4 ~]#

To execute more than one command sequentially separate them with a semicolon.

[root@rhel4 ~]# hpasmcli -s "show fan; show temp"

Fan  Location        Present Speed  of max  Redundant  Partner  Hot-pluggable
---  --------        ------- -----  ------  ---------  -------  -------------
#1   I/O_ZONE        Yes     NORMAL 45%     Yes        0        Yes          
#2   I/O_ZONE        Yes     NORMAL 45%     Yes        0        Yes          
#3   PROCESSOR_ZONE  Yes     NORMAL 41%     Yes        0        Yes          
#4   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes          
#5   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes          
#6   PROCESSOR_ZONE  Yes     NORMAL 36%     Yes        0        Yes           

Sensor   Location              Temp       Threshold
------   --------              ----       ---------
#1        I/O_ZONE             47C/116F   70C/158F
#2        AMBIENT              21C/69F    39C/102F
#3        CPU#1                30C/86F    127C/260F
#4        CPU#1                30C/86F    127C/260F
#5        POWER_SUPPLY_BAY     50C/122F   77C/170F
#6        CPU#2                30C/86F    127C/260F
#7        CPU#2                30C/86F    127C/260F

[root@rhel4 ~]#

If you want to play more with hpasmcli go to its man page and to the ProLiant Support Pack documentation.

Juanma.

About these ads

41 responses to HP ProLiant servers management with hpasmcli

  1. 

    Hello,

    I’m running a HP Proliant ML350 G6 with Ubuntu 9.04. Recently I installed hp-health, hp-snmp-agents, and all other software from the HP support cd for Linux.

    I have access now to the System Management Homepage installed in the system, although it looks more like a reports tool, as I can’t do any system configuration or view any hardware status.

    I need to get control over the FANS, as they get very noisy sometimes, and I can’t do anything but to reboot the server to stop the noise.

    Any idea or help?

    Thanks for your post.

    • 

      you have a G6 and you’re worried about the noise? Perhaps you shouldn’t use a server as a desktop. Servers should be in an airconditioned room where nobody cares about the noise. I don’t think its a wise idea to alter their speed or stop them from auto managing themselves.

    • 

      Did you figure out a fix for the noisy server fans? I have the same problem on my DL380 server.

  2. 

    Hi Juan, I have a lot of problems with hpasm on my Proliants. I cannot get them running. I did load Suse SLES 11 Rev1 and did install latets rpms and it didnt work.

    I searched for any tips or tricks or hints or any other suse linux admin, running sles 11 with health management but didnt find one.

    Do you have an idea, where to search for other DL585 G1 and G2 admins and DL380 G3 and G4 admins, running Suse an hpasm ?

    Where do I have to look ?
    best regards Gert
    from Germany

  3. 

    Very Helpful.
    Thank you!

  4. 

    Great! I’m fooling around a bit with a DL380G5 and Ubuntu 12.04 on it. This is one of the great features I found out today. :-) Good thing is, the HP tools are in a repository at HP, where all major Linux distro’s are in: http://downloads.linux.hp.com/SDR/ Just ad them to your sources.lst, import the key, aptitude update and off you go installing (and updating) them straight from the HP repo.

  5. 

    Yes, it is really interesting blog. As a Dell employee I really think the infromation you shared with us is very much useful. Thanks for sharing with us.

  6. 

    Thank you for sharing your thoughts. I really appreciate your efforts and I
    am waiting for your further write ups thank you once again.

  7. 

    It’s an awesome paragraph for all the web visitors; they
    will get advantage from it I am sure.

  8. 

    Hi! I could have sworn I’ve been to this blog before but after going through a
    few of the posts I realized it’s new to me. Nonetheless, I’m definitely pleased I found it and
    I’ll be book-marking it and checking back frequently!

  9. 

    Every weekend i used to go to see this site, for the reason that i want enjoyment,
    as this this site conations really fastidious funny
    stuff too.

  10. 

    My partner and I absolutely love your blog and find almost all of
    your post’s to be just what I’m looking for. Does one offer guest writers to write content
    for you? I wouldn’t mind producing a post or elaborating on some of the subjects
    you write concerning here. Again, awesome blog!

  11. 

    My partner and I stumbled over here from a different web page and thought I might check things out.
    I like what I see so now i am following
    you. Look forward to looking at your web page for a second time.

  12. 

    Generally I do not read post on blogs, but I would like to
    say that this write-up very compelled me to check out and do so!
    Your writing taste has been surprised me. Thanks, very nice post.

  13. 

    fantastic post, very informative. I wonder why the other specialists of this sector don’t understand this.

    You must proceed your writing. I am sure, you have a great readers’
    base already!

  14. 

    Hi there! Thiis is my first comment hee so I just wanted to give a quick shout out aand sayy I genuinely enjoy reading
    your articles. Cann you recommend any othr blogs/websites/forums that deal
    with thhe same subjects? Thank you!

  15. 

    Have you ever considered about adding a little
    bit more than just your articles? I mean, what you say is fundamental
    and all. Nevertheless imagine if you added some great
    images or videos to give your posts more, “pop”!
    Your content is excellent but with pics and videos, this website could undeniably be one of
    the very best in its niche. Excellent blog!

  16. 

    Fantastic site. Lots of useful info here.
    I’m sending it to a few friends ans also sharing in delicious.
    And obviously, thanks in your sweat!

  17. 

    Good response in return of this matter with solid arguments
    and explaining all concerning that.

  18. 

    Thanks for the good writeup. It actually was
    a entertainment account it. Look advanced to more introduced agreeable from
    you! By the way, how could we communicate?

  19. 

    This piece of writing is actually a good one it assists new the web people, who are
    wishing in favor of blogging.

  20. 

    What’s Going down i’m new to this, I stumbled upon this I have
    found It absolutely useful and it has helped
    me out loads. I am hoping to give a contribution & assist different users like its helped
    me. Great job.

  21. 

    Thanks , I have recently been searching for information about
    this topic for ages and yours is the greatest I’ve discovered so far.
    However, what in regards to the conclusion? Are you certain about the source?

  22. 

    Oh my goodness! Impressive article dude! Many thanks, However I am experiencing difficulties
    with your RSS. I don’t understand why I am unable to subscribe to it.
    Is there anybody else having the same RSS issues?
    Anyone that knows the answer can you kindly respond?
    Thanks!!

  23. 

    Your style is so unique compared to other folks I’ve read stuff from.
    Thanks for posting when you’ve got the opportunity, Guess I’ll just book mark this web site.

  24. 

    Somebody essentially help to make critically posts I’d state.

    This is the very first time I frequented your website page and thus
    far? I surprised with the analysis you made to make this
    actual put up amazing. Wonderful task!

  25. 

    I’m not positive the place you’re getting your info, but great topic.
    I must spend a while finding out more or working out more.
    Thanks for great information I was searching for this info for my mission.

  26. 

    Hey! I understand this is kind of off-topic but I had to ask.
    Does building a well-established blog like yours take a large amount of work?
    I am completely new to operating a blog but I do write in my diary everyday.
    I’d like to start a blog so I will be able to share my
    own experience and thoughts online. Please let me know if you have any suggestions or
    tips for new aspiring bloggers. Appreciate it!

  27. 

    Pretty nice post. I just stumbled upon your weblog and wanted
    to say that I’ve truly enjoyed browsing your blog posts. After all I’ll
    be subscribing to your feed and I hope you write again very soon!

  28. 

    First off I would like to say fantastic blog! I
    had a quick question which I’d like to ask if you do not mind.
    I was interested to find out how you center yourself and clear your head prior to writing.
    I have had difficulty clearing my mind in getting my thoughts
    out. I do enjoy writing however it just seems like the first 10 to 15 minutes are usually
    wasted just trying to figure out how to begin. Any ideas or tips?
    Thanks!

  29. 

    Sweet blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed in Yahoo News?
    I’ve been trying for a while but I never seem to get there!
    Thanks

  30. 

    What a stuff of un-ambiguity and preserveness of precious
    know-how on the topic of unexpected feelings.

  31. 

    It’s remarkable in favor of me to have a website, which is beneficial for my experience.
    thanks admin

  32. 

    What’s Happening i am new to this, I stumbled upon this I have discovered It absolutely helpful and it has helped me out loads.
    I am hoping to give a contribution & aid different customers like its aided me.
    Good job.

  33. 

    Great post. I was checking continuously this blog and I’m impressed!

    Very useful info specifically the last part :) I care for such info much.

    I was seeking this particular information for a long time.
    Thank you and best of luck.

  34. 

    Very good information. Lucky me I came across your site by chance (stumbleupon).
    I have saved it for later!

  35. 

    Hey there just wwnted to give you a quick heads up. The words in your ppost seem tto
    be running off the screen in Chrome. I’m not sure if this is a formafting issue or something to do with intfernet browser compatibility
    but I thought I’d post too let you know. Thee style and design lkok great
    though! Hope yoou get thhe problem resolved soon. Cheers

  36. 

    Hi to all, it’s in fact a pleasant for me to go to see
    this web site, it contains important Information.

  37. 

    Awesome blog! Is your theme custom made or did
    you download it from somewhere? A theme like yours with
    a few simple tweeks would really make my blog stand out.
    Please let me know where you got your theme. Kudos

Trackbacks and Pingbacks:

  1. Tweets that mention HP ProLiant servers management with hpasmcli « Juanma's Blog -- Topsy.com - February 16, 2011

    [...] This post was mentioned on Twitter by unix player, Juan Manuel Rey. Juan Manuel Rey said: Blog post: HP ProLiant servers management with hpasmcli http://bit.ly/hZsdzu #HP #ProLiant #in [...]

  2. BiffSocko.com » Hardware Monitoring - HP and Dell - April 22, 2013

    [...] For other Hardware on HP – the HP-Health suite of utilities: – http://jreypo.wordpress.com/2011/02/16/hp-proliant-servers-management-with-hpasmcli/ [...]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s