Java Getting Name/Description for OIDs in MIB

Stephen Watkins picture Stephen Watkins · May 26, 2010 · Viewed 10.2k times · Source

I am programming a network management system, and need to be able to print out meaningful names behind the OIDs that are received from SNMP traps. Due to the nature/size of this system, it would not be a good idea to manually map every OID to a meaningful name for every MIB on every device that is being used.

With that said, is there a free (commercial use) way of automatically pairing name/description with their respective OID for all OIDs in a MIB; and then those pairings be used in a Java program?

In other words, is there a tool or method that will convert a MIB tree to Java objects that can be traversed in a program to retrieve OID's names/descriptions?

Thanks

Answer

L.R. picture L.R. · May 27, 2010

You need a MIB parser - for example Mibble (available under GPL and commercial license).