SNMP traps from other NON Extreme/Enterasys devices

  • 0
  • 1
  • Question
  • Updated 1 year ago
  • Answered
I have a need to accept SNMP traps from a Cisco ASA and ASR.  All works fine, however, since I don't have the MIBs loaded, it doesn't seem to give me a descriptive trap and it's something difficult to decipher.  I have tried loading MIBs into NetSights mymibs directory etc... including some of the mibs that looked to include trap definitions, but it never works.  Can this actually be done? 
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb

Posted 1 year ago

  • 0
  • 1
Photo of Yacobucci, Ryan

Yacobucci, Ryan, Multi-Tier Technical Support Engineer

  • 4,776 Points 4k badge 2x thumb
Hi Jeremy,

You'll need to define the traps in the trapd.conf file per the following: 

"How to Add Trap Definitions

You can add trap definitions that can trigger Alarms, which can be configured to take a specific action, such as running a program or automatically sending e-mail messages. Trap definitions are added manually, using a text editor.

 CAUTION:You should always save a copy of the trap definition file prior to editing and testing your new definitions.

To define a new trap:

  1. Using your favorite text editor, open the trapd.conf file in the <install directory>\services directory. This is a text file that can be edited to modify the severity levels for particular traps or add trap definitions to support devices.
  2. Add Event Definition using the format described in the trapd.conf file.
  3. Save the file."
Per the trapd.conf file here is the event definition format to be used: 

###################################################################### Event Definitions
#
# Syntax:
#  EVENT  event_name event_OID category severity
#  FORMAT format_string
#  SDESC
#    Description text
#  EDESC
######################################################################

You'll have to define each trap you'd like manually unless you can get a traps definitions file from cisco that follows this format.

Thanks
-Ryan
Photo of Jeremy

Jeremy, Embassador

  • 9,788 Points 5k badge 2x thumb
Okay, so if I can treat it like a standard snmpd server that is running snmptrapd?  If so, I can just configure it that way as you said with the trapd.conf file.
Photo of Yacobucci, Ryan

Yacobucci, Ryan, Multi-Tier Technical Support Engineer

  • 4,776 Points 4k badge 2x thumb
To my knowledge, yes :)