Re: Processing traps
Dave Shield <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On 10 July 2010 20:17, Joseph L. Casale <[email protected]> wrote: > I am using a custom traphandler that ... filters for ... SNMPv2-MIB::snmpTraps.6 > for custom alerts.... > > For the later, I am running the following: > snmptrap -v 1 -c public nms.domain.com 1.3.6.1.4.1.1824 "" 5 23 First issue - you say that you are looking for snmpTraps.6, but the command above is sending a standard (snmpV1) egpNeighbourLoss trap (with an invalid specific-trap value). Shouldn't that be snmptrap ..... 6 23 .... rather than .... 5 23 ..... ? Second issue - with '6' rather than '5' in the command above, the trap as received by snmptrapd will be .1.3.6.1.4.1.1824.0.23 rather than .1.3.6.1.6.3.1.1.5.6 (SNMPv2-MIB::snmpTraps.6) > 1.3.6.1.4.1.1824.1.0.0.1 s "Header 1: text..."\ > 1.3.6.1.4.1.1824.1.0.0.1 s "Header 2: text..."\ > 1.3.6.1.4.1.1824.1.0.0.1 s "Header 3: text..."\ > > etc... > > What I am unsure about is that if I am stepping on the toes of > anything else I may encounter or is this a safe oid to use. The enterprise number 1824 is registered to International Management Consulting, Inc. (See http://www.iana.org/assignments/enterprise-numbers) If you are working in consultation with them, then this OID is safe to use. If you have just pulled it out of the air, then you are indeed stepping on their toes. That might not matter if your trap handler is only ever going to be used internally, and will never, ever, ever be distributed more widely. But if there's even the slightest chance that your traps might be used in the wider Internet, then you should register a proper enterprise number for yourself, and use that. See www.iana.org for details. Dave ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users