How to configure SNMP traps from my EMC box?

Started by bimal, July 26, 2006, 07:57:29 PM

Previous topic - Next topic

bimal

Hi,

I want to identify and alert the SNMP traps from my EMC box. The MIB is available at :
http://www.oidview.com/mibs/1139/EMC-MIB.html

How can I instruct NetXMS to identify those traps?

Any help on this subject will be greately appreciated.

Bimal

Victor Kirhenshtein

Hello!

Short instruction how to get an alarm from SNMP trap:

1. Create new event that will be generated on trap receive: go to Control Panel -> Events and select New.
2. Create trap matching record:
2.1. Go to Control Panel -> SNMP Traps
2.2. Select New and enter EMC trap OID - for example, 1.3.6.1.4.1.1139.1.1 for emcDeviceStatusTrap
2.3. Select your newly created event as event to be generated
2.4. Add variable bindings if needed: I don't now what variables EMC devices send, but if, for example, trap contains emcSymDevStats variable, enter 1.3.6.1.4.1.1139.1.1.1.12 as variables OID. You can use values of variables in your event text by using macros %2, %3, and so on.
3. Add alarm generation: go to Control Panel -> Event Processing Policy, add new rule, select your new event, select "generate alarm" and enter %m as alarm text. As soon as you save your policy, system will generate alarms for each SNMP trap with given OID. Of course, you can use all event processing mechanisms for events generated from SNMP traps - run scripts, send e-mails, etc.

Some useful hints:

1. You can set server's parameter LogAllSNMPTraps to 1, and then use View -> SNMP Trap Log to observe all received traps with all variables. This can be useful if you are not sure what variables are attached to the traps or exact trap OIDs used.
2. System will not process traps from unknown devices, so you have to register your EMC device as a node.

Hope this helps!

Best regards,
Victor