> 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. >
Strange. 1.3.6.1.4.1.311.1.1.3.1.1 is the Windows-NT-Perfomance root oid: http://www.oidview.com/mibs/311/WINDOWS-NT-PERFORMANCE.html and not a trap. 1.3.6.1.4.1.311.1.1.3.1.1.4 is WINDOWS-NT-PERFORMANCE::pdiskphysicalDiskTable. Do you have any additional parameters. The conversion between v1 and v2 notifications is defined in rfc2576: http://tools.ietf.org/html/rfc2576#page-12 However it seems that the translation for non enterpriseSpecific is working rarely: 1.3.6.1.6.3.1.1.5=SNMPv2-MIB::snmpTraps 1.3.6.1.6.3.1.1.5.1=SNMPv2-MIB::coldStart 1.3.6.1.6.3.1.1.5.2=SNMPv2-MIB::warmStart Etc But 1.3.6.1.4.1.2021.251=UCD-SNMP-MIB::ucdTraps 1.3.6.1.4.1.2021.251.1=UCD-SNMP-MIB::ucdStart 1.3.6.1.4.1.2021.251.2=UCD-SNMP-MIB::ucdShutdown On the other hand the Generic Trap Names are static and can be translated 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