MIB compiler for Java

1.5k views Asked by At

I am going to develop SNMP Manager using snmp4j and i have MIB files from hardware vendor. Programming using digital OID is inconvenient. Is there a compiler from MIB file(s) to corresponding Java classes that support getting digital OID needed by SNMP protocol? Or the best way is to parse MIB files using Mibble in runtime?

1

There are 1 answers

0
Jolta On BEST ANSWER

I work in the telecoms domain, and most managers I've seen will take the SNMP OIDs for a "node" (telecom slang for equipment) either as a hardcoded strings in a software module, or as configuration in some proprietary files. None of them load the MIB itself since it usually lacks a lot of semantic information such as what thresholds are appropriate for a counter value. HP TeMIP, for instance, takes the former approach, requiring for new MIB integration that an Access Module is developed in C++, which provide alarm adaptation functionality.

That said, an SNMP manager application in its most basic form will not necessarily have such functionality and may be fully content with using the MIB to finding the mapping from OID to variable name and type. In that case, parsing at run time should be most convenient for the end user.