Java Getting name / description for OID in MIB

I am programming a network management system and should be able to print meaningful names behind the OIDs that are obtained from SNMP traps. Due to the nature / size of this system, it would be impractical to manually match each OID with a meaningful name for each MIB on each device used.

With that said, is there a free (commercial use) way to automatically pair the name / description with their corresponding OID for all OIDs in the MIB; and then these pairs will be used in a Java program?

In other words, is there a tool or method that converts the MIB tree to Java objects that can be moved in the program to get OID names / descriptions?

thank

+5
source share
3 answers

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

+3
source

I know the stream is old, but it can help others. You can use the SNMP4J-SMI jar to get the name description for OIDS in the MIB

How to use SNMP4J-SMI with SNMP4J

Just fyi is licensed Commercial

+3
source

SNMP . SNMP. SNMP4J - , java.

http://www.snmp4j.org/

v1, v2 v3 SNMP.

Mib, , / OID . , .

Also note that you need to correctly specify the IP address in the device manager? so the device can send SNMP traps to your application that is listening on some port.

You need to open the port also for traps.

hope this helps. let me know if you have any questions. You need to dig more into it. You know how network equipment works :).

thank.

-1
source