Hello,
I am using Net-snmp along with snmptt in order to parse traps.  I have an issue 
here that I hope someone can help me resolve.  I used the snmpttconvertmib 
script that came with snmptt (which uses snmptranslate) to convert a psax120 
mib.  Everything seemed to work fine except when a trap came in, it was unable 
to be matched to an OID.

Here is an example entry from my TrapFile file:


EVENT loginAuthSuccessNotify .1.3.6.1.4.1.1751.2.18.8.1.63 "Status Events" 
Normal       
FORMAT Info : Trap to notify a successful console login $*                      
        
SDESC                                                                           
        
Info : Trap to notify a successful console login                                
        
authentication.                                                                 
        
EDESC                                                                           
        



Here some an example from my 'unknown trap' log file:

Wed Jan 12 11:24:14 2005: Unknown trap (.1.3.6.1.4.1.1751.2.18.8.1.0.64) 
received from 101.12.150.4 at:

As you can see the trap comes in as 18.8.1.0.64 (extra 0) not  18.8.1.64 as 
listed above.  I did some digging and found out that the extra '0' is called 
the instance sub-identifier.  Is there any way to get snmptranslate to take 
this extra 0 into consideration and add it to the output?  Does anyone have any 
info on how/what code is used in relation to the instance sub-identifier?


Any info would be great as I am at the end of the road with this right now.

Thanks,

Shain

Ps--of course when I manually add the extra 0 to the file the trap is parsed 
fine...but I am trying to avoid having to edit each line of each file.          
      


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to