Hi Ludo, thanks again.

OldTrapEnterprise+'.0.'+IntToString(OldTrapSpec) worked for enterprise 
specific trap!

But for non-enterprise specific trap, I'm not sure if I did it correctly.

For example, Windows SNMP service sends the following Link up trap v1.

OldTrapHost(Source): 127.0.0.1
OldTrapGen(Generic): 3
OldTrapSpec (Specific): 0
OldTrapEnterprise: 1.3.6.1.4.1.311.1.1.3.1.1

I found out that "1.3.6.1.4.1.311.1.1.3.1.1" can be decoded using 
MSFT-MIB.mib into -> "MSFT-MIB::workstation".

OldTrapEnterprise+'.'+IntToString(OldTrapGen+1). => 
1.3.6.1.4.1.311.1.1.3.1.1.4 -> decodes into -> MSFT-MIB::workstation.4.

Not sure if this is correct?  Thanks.



Ludo Brands wrote:
> 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
>
>
>   


------------------------------------------------------------------------------
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