> Hi,
> 
> Previously, I asked about translation of OID (Enterprise and Variable 
> bindings).  Ludo suggested using snmptranslate.exe, which I 
> managed to 
> get it work using:
> 
> snmptranslate.exe -MC:\mibs -mALL .1.3.6.1.2.1.39.2.2
> 
> I am receiving SNMP v1 traps with generic = enterpriseSpecific (6), 
> hence I need to decode the specific trap number represented by 
> OldTrapSpec in TSNMPSend.
> 
> See: 
> http://docstore.mik.ua/orelly/networking_2ndEd/snmp/ch02_06.htm (see 
> text " To process this trap properly, the NMS has to decode 
> the specific 
> trap number that is part of the SNMP message. ")
> 
> Thanks for any guidance.
> 

You convert a V1 enterprise specific trap to a V2 notification by
concatenating enterprise, a 0 and the specific trap code:

OldTrapEnterprise+'.0.'+IntToString(OldTrapSpec)

This combined OID can be looked up with snmptranslate. 

For non enterprise specific traps you can look up
OldTrapEnterprise+'.'+IntToString(OldTrapGen+1).

Parameters returned in MIBName can be looked up directly.

Ludo


------------------------------------------------------------------------------
The demand for IT networking professionals continues to grow, and the
demand for specialized networking skills is growing even more rapidly.
Take a complimentary Learning@Cisco Self-Assessment and learn 
about Cisco certifications, training, and career opportunities. 
http://p.sf.net/sfu/cisco-dev2dev
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to