System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

hpasmcli command is not working .

SOLVED
Go to solution
dawn_jose85
Frequent Advisor

hpasmcli command is not working .

In my servers HP Proliant DL servers , hpasmcli command is not working evethough the hp health utilities are running properly . The errors as given below


ips132root#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.
--------------------------------------------------------------------------
hpGetSemID() semget failed: No such file or directory

ERROR: Could not open /dev/cpqhealth/cdt.
Please make sure the Health Monitor is started.



Another error is : -


ipl133root#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.
--------------------------------------------------------------------------

Can anyone help in finding out the real cause and the solution for this issue.
8 REPLIES
Dennis Handly
Acclaimed Contributor

Re: hpasmcli command is not working .

I'm not sure what this has to do with Digital imaging, so I'm asking the moderator to move it to Linux, with your previous thread.
dawn_jose85
Frequent Advisor

Re: hpasmcli command is not working .

this command is very important for us in our real time scenario.can i get help from anyone
Matti_Kurkela
Honored Contributor

Re: hpasmcli command is not working .

By the copyright message, you probably have an older version of the HP hardware monitoring tools. The newer server models might require a newer version of the tools.

Which Proliant model(s) have this problem? Please show the full model string, including the generation number. For example: DL380 G6 or ML370 G3. If there is no generation identifier, the server is probably a first-generation version of that model.

You can usually find the model string with:

dmidecode |grep -i proliant

What's the name and version of your Linux distribution?

Please show the output of these commands:

ls -l /dev/cpqhealth
(If this directory does not exist or does not contain the appropriate device nodes, then the HP hardware monitoring drivers are *not* running properly.)

rpm -q hp-health hpasm hprsm
(If hpasmcli and the associated tools were installed using RPMs, this command should identify the installed versions.)

lsmod | grep -e ^hp -e ^cpq

ps -ef | grep cma

(These commands should list the kernel modules and processes associated with the hardware monitoring drivers.)

MK
MK
dawn_jose85
Frequent Advisor

Re: hpasmcli command is not working .

hello

This is the output which you asked.
Also our HP server model is Base model
HP Proliant DL 580 G5. Also the same issue is with DL 380 servers .

ls -l /dev/cpqhealth
ips132root#ls -l /dev/cpqhealth
total 0
crw-r--r-- 1 root root 255, 171 Oct 8 2009 casr
crw-r--r-- 1 root root 255, 173 Oct 8 2009 ccsm
crw-r--r-- 1 root root 255, 178 Oct 8 2009 cdt
crw-r--r-- 1 root root 255, 172 Oct 8 2009 cecc
crw-r--r-- 1 root root 255, 176 Oct 8 2009 cevt
crw-r--r-- 1 root root 255, 180 Oct 8 2009 crom
crw-r--r-- 1 root root 255, 192 Oct 8 2009 indc
crw-r--r-- 1 root root 255, 191 Oct 8 2009 proc

ips132root#rpm -q hp-health hpasm hprsm
hp-health-8.1.1-14.rhel4
package hpasm is not installed
package hprsm is not installed
cd
cd
ips132root#lsmod |grep -e ^hp -e ^cpq
hp_ilo 44156 5

ips132root#ps -ef |grep cma
root 4254 1 0 2009 ? 00:17:55 cmastdeqd -p 30
root 4257 1 0 2009 ? 00:35:07 cmahealthd -p 30 -s OK -t OK -i
root 4259 1 0 2009 ? 00:00:00 cmathreshd -p 5 -s OK
root 4277 1 0 2009 ? 00:01:39 cmasm2d -p 30
root 4279 1 0 2009 ? 08:30:14 cmahostd -p 15 -s OK
root 4325 1 0 2009 ? 00:00:00 cmapeerd
root 4341 1 0 2009 ? 00:04:25 cmaeventd -p 15
root 4359 1 0 2009 ? 00:25:31 cmafcad -p 15 -s OK
root 4377 1 0 2009 ? 00:00:00 cmasasd -p 15 -s OK
root 4391 1 0 2009 ? 00:51:45 cmaidad -p 15 -s OK
root 4406 1 0 2009 ? 00:00:00 cmaided -p 15 -s OK
root 4431 1 0 2009 ? 00:00:00 cmascsid -p 15 -s OK
root 4448 1 0 2009 ? 00:00:01 cmanicd
root 18378 11585 0 13:54 pts/2 00:00:00 grep cma
Tim Nelson
Honored Contributor

Re: hpasmcli command is not working .

1) you are running an old version. version 2 is current. Update the hp-health package.

2) the error states your issue ?
"ERROR: Could not open /dev/cpqhealth/cdt.
Please make sure the Health Monitor is started."


stop and restart the health services and look for /dev/cpqhealth/cdt file like it is asking for.

service hp-health status
service hp-health restart.
dawn_jose85
Frequent Advisor

Re: hpasmcli command is not working .

hello,

One more error is there . I checked for hp-health status.It is running normally. For the two types of errors i checked for hp-health status . it is running .

Please find below status .

ipl133root#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.
--------------------------------------------------------------------------

ipl133root#service hp-health status



hp-OpenIPMI Status:
Module Size Used by
ipmi_si 75680 2
ipmi_devintf 44432 4
ipmi_msghandler 72052 2 ipmi_si,ipmi_devintf

(hpasmxld) is running... [ OK ]



ips132root#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.
--------------------------------------------------------------------------
hpGetSemID() semget failed: No such file or directory

ERROR: Could not open /dev/cpqhealth/cdt.
Please make sure the Health Monitor is started.
ips132root#service hp-health status



hp-OpenIPMI Status:
Module Size Used by
ipmi_si 44760 2
ipmi_devintf 11024 4
ipmi_msghandler 34824 2 ipmi_si,ipmi_devintf

(hpasmxld) is running... [ OK ]
ips132root#
dawn_jose85
Frequent Advisor

Re: hpasmcli command is not working .

i didn't get any response till. Will i get a resolution for my query
Solution

Re: hpasmcli command is not working .

Dear All,

I finally succeed to make the command "hplog -v " to work, that's why I am sharing with the community my experience.

We have a dataserver with ~300 servers family HP Proliant most are BL460c with few DL380 type and we have generation: G6, G7, GEN8 and GEN9.

They are running Linux Sientific Linux CERN 6 (SLC6), based on RHEL6 and a CentOs CERN 7 (CC7 x86_64), based on CentOs version.

On all our CC7 x86_64 almost all runing "3.10.0-693.11.6.el7.x86_64" kernel we always experienced the error: "/dev/cpqhealth/cdt not found"

It seams that this is due to IPMI  kernel modules for CentOs7 that have change formating.

HP agents try to communicate with :

    /lib/modules/3.10.0-693.11.6.el7.x86_64/kernel/drivers/char/ipmi/ipmi_si.ko

instead of the module :

   /lib/modules/3.10.0-693.11.6.el7.x86_64/kernel/drivers/char/ipmi/ipmi_si.ko.xz

to check witch one are installed:  [root] ~ # find /lib/modules/ -name ipmi_si.ko*

Of course you should have the following modules in your kernel

[root] ~ # lsmod | grep -e ^hp -e ^cpq
hpwdt 14278 0
hpilo 17381 12
hpsa 99514 4
[root] ~ # lsmod |grep ipmi
ipmi_si 53456 0
ipmi_devintf 17572 0
ipmi_msghandler 46608 2 ipmi_devintf,ipmi_si

Since the last HP-HEALTH version 10.70 that you can find under:

      https://downloads.linux.hpe.com/SDR/repo/spp/2018.03.0/packages/

You can download the two following packages:

    hp-health-10.70-1846.6.rhel7.x86_64

    hp-snmp-agents-10.70-2962.5.rhel7.x86_64

and then install them: 

    yum install ./hp-health-10.70-1846.6.rhel7.x86_64.rpm hp-snmp-agents-10.70-2962.5.rhel7.x86_64.rpm

    /bin/systemctl restart hp-snmp-agents.service

and the hplog command work fine after!

Regards.