This project has moved. For the latest updates, please go here.

Receiving SNMP Traps

Topics: usage (how to ...)
Aug 10, 2008 at 9:59 PM
Dear All,

I am trying to use your excellent library and I apologise in advance because it is probably my lack of understanding in both C# and SNMP that is causing me to have problems.  I have set up a trap listener using your example code and I receive the trap successfully but how do I look up this trap against the MIB table, so I can get some useful information?  Is this the correct way to think about it?  Or should I be using e.Trap.Enterprise.ToString() to get the OID value and use it that way?

Sorry for wasting people's time

Regards
Coordinator
Aug 11, 2008 at 11:46 AM
Hi, usually traps are defined in MIB documents as TRAP-TYPE or NOTIFICATION-TYPE. You can see them as "events" in SNMP. Enterprise field is used to identify a trap. It illustrates what type of traps you received, and then you can decide how to react at such an event. The Variables provide you more information about the event (like event arguments in C#).

You need to read more about SNMP, not C# in this case :-) Why not try Essential SNMP? It is a good book to start.

Marked as answer by lextm on 10/6/2013 at 9:45 PM