1826332 Members
3470 Online
109692 Solutions
New Discussion

Re: Hardware traps

 
SOLVED
Go to solution
Abhik Sarkar_2
Advisor

Hardware traps

Hi,

One of our customers has boxes running HP-UX 11, and wants to receive traps when any hardware in the system fails.

They have EMS installed and are not using HP OpenView, but some other SNMP manager.

Is this possible? If so,
- what MIB files should I provide them?
- where do I find the MIB files?
- are the MIB files freely distributable or do they need to pay HP for them?

Many thanks,
Abhik
8 REPLIES 8
Mark Nieuwboer
Esteemed Contributor

Re: Hardware traps

Hi Abhik
Is is possible.
just configure ems to write to a logfile
you can configure ems with
/etc/opt/resmon/lbin/monconfig
choice notification method snmp traps.
The snmp manager should see them.
You don't have to pay for this if you have a HP-UX licence. Which MIB files: choice all it doesn't matter.

grtz. Mark
Abhik Sarkar_2
Advisor

Re: Hardware traps

Hi Mark,

Thanks, I checked this out and I could configure it. Unfortunately, I can't generate any hardware calamity on my test system to test that a trap is indeed sent out.

Also, I need to know where I can get the MIB files which describe the trap which the SNMP manager will receive from us. Are these some standard RFC*.my or RFC*.mib MIB files, or are there some specific MIB files from HP. In case of the latter, where do we get this files from. I could not find them under /opt/resmon and /etc/opt/resmon.

Best regards,
Abhik.
Florian Heigl (new acc)
Honored Contributor

Re: Hardware traps

I did some testing with the traps, and can at least tell You they get sent properly - I set a trap on one of the fc adapters (alternate links are in use) and brought it down using fcsmutil offline; after the interval I set I got an alert trap, and also an OK trap after I brought it online.

I used net-snmp's snmptrapd running on the local host, without additional mibs, but I wasn't very happy with this as the email messages from EMS were (of course?) more verbose.

(I was looking into not just getting a message saying 'stale PE on some PV', but I'm afraid that I just don't know how to set up something like that)

but anyhow, the traps work :)
yesterday I stood at the edge. Today I'm one step ahead.
Abhik Sarkar_2
Advisor

Re: Hardware traps

Florian,

Thanks for the answer. I will try this out.

Best regards,
Abhik.
Ermin Borovac
Honored Contributor

Re: Hardware traps

BTW, I think you can generate a test event using /opt/resmon/bin/send_test_event(1m).

# /opt/resmon/bin/send_test_event -v disk_em

Please note that the test event will have severity set to INFORMATION.
Andrew Merritt_2
Honored Contributor
Solution

Re: Hardware traps

You can change the severity of the test event by editing the default_disk_em.clcfg file (or whichever monitor you are testing with) in the /var/stm/config/tools/monitor directory.

So, if you want to test with a SERIOUS event, change the line:

EQ:103:INFORMATION:TRUE:NOT_USED:ANY:1:NONE:NO_OP:NO_OP:NONE

to be:
EQ:103:SERIOUS:TRUE:NOT_USED:ANY:1:NONE:NO_OP:NO_OP:NONE

I'm also attaching what I think is the current EMS MIB file. HP does not charge for it, though I'm not sure how it's normally released (might be part of the EMS toolkit).

Andrew
Andrew Merritt_2
Honored Contributor

Re: Hardware traps

Just checked, and that MIB is included in the EMS Developers' Toolkit, which can be downloaded from
http://h20293.www2.hp.com/portal/swdepot/displayProductsList.do?category=HA

Andrew
Abhik Sarkar_2
Advisor

Re: Hardware traps

Andrew / Ermin,

Thanks so much for all the information. The SNMP manager I have compiled and loaded the MIB file without any problems. And I have enough information to generate events and test the traps.

Thanks,
Abhik.