Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java Getting Name/Description for OIDs in MIB

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

like image 377
Stephen Watkins Avatar asked May 26 '10 21:05

Stephen Watkins


People also ask

How do I get OIDs from MIB file?

Click File > Load MIB. In the Load a MIB File dialog box that opens, select the MIB file that contains the required tabular SNMP OID and click Open. The selected MIB file will be displayed in the left pane. Click on the folder and navigate to the required table OID.

What is the difference between OID and MIB?

OIDs stands for Object Identifiers. OIDs uniquely identify managed objects in a MIB hierarchy. This can be depicted as a tree, the levels of which are assigned by different organizations. Top level MIB object IDs (OIDs) belong to different standard organizations.

What is object identifier in MIB?

Each object in the MIB has an object identifier (OID), which the management station uses to request the object's value from the agent. An OID is a sequence of integers that uniquely identifies a managed object by defining a path to that object through a tree-like structure called the OID tree or registration tree.


1 Answers

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

like image 152
L.R. Avatar answered Sep 24 '22 21:09

L.R.