Some clients are having problems with the OID for SNMP v1 Traps, SNMP v2c traps 
work fine.

The trap OID is defined as: 1.3.6.1.4.1.9804.3.1.1.0.1
Some clients appear to see the v1 trap as as: 1.3.6.1.4.1.9804.3.1.1.1
Net-SNMP receives the v1 and v2c trap just fine.

A partial snmptranslate:
"lhnNsmDevices"                                            
"1.3.6.1.4.1.9804.3.1.1"
"lhnNsmEvents"                                              
"1.3.6.1.4.1.9804.3.1.1.0"
"lhnNsmNotificationGeneric"                    "1.3.6.1.4.1.9804.3.1.1.0.1"

The MIB has:
lhnNsmNotificationGeneric NOTIFICATION-TYPE
    OBJECTS {
                    message,
                    messageTime
            }
    STATUS              current
    DESCRIPTION         "A generic system event was generated."
    ::= { lhnNsmEvents 1 }

snmptrapd from Net-SNMP 5.4.2.1 on Ubuntu logs the trap as:
2010-07-13 16:27:28 nsm185-41.lhn.com [10.0.62.41] (via UDP: 
[10.0.62.41]:54066->[10.0.10.25]) TRAP, SNMP v1, community public
                LEFTHAND-NETWORKS-NSM-MIB::lhnNsmDevices Enterprise Specific 
Trap (LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB::lhnNsmNotificationGeneric) 
Uptime: 0:05:14.81
                LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB::message.6 = STRING: 
Test Trap           LEFTHAND-NETWORKS-NSM-NOTIFICATION-MIB::messageTime.6 = 
STRING: 2010-7-13,22:27:29.0,+0:0

The iReasoning MIB Browser shows the v1 trap as:
Specific: 1; .1.3.6.1.4.1.9804.3.1.1              10.0.62.41            
2010-07-13 16:26:34
but gets the SNMP v2c trap just fine as:
trapOID: .1.3.6.1.4.1.9804.3.1.1.0.1           10.0.62.41            2010-07-13 
17:19:00

Wireshark shows:
version: version-1
enterprise: 1.3.6.1.4.1.9804.3.1.1 (SNMPv2-SMI::enterprises.9804.3.1.1)
generic-trap: enterpriseSpecific (6)
specific-trap: 1

The agent sends both the SNMP v1 and v2c traps using: "send_v2trap(&trapVar)"
The agent sending the traps is running on Net-SNMP 5.3.2.2 on RHEL 5.

snmptranslate and smilint do not show any errors or warnings.

Is there something I'm doing wrong in how the trap is sent or in the MIB?

Thanks for your help,
Scott
------------------------------------------------------------------------------
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-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to