Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SNMP MIB Parsing in Java

839 views
Skip to first unread message

Jeff Grabell

unread,
Nov 27, 2002, 3:30:51 PM11/27/02
to
Hello,
This question appears in these forums in slightly different
variations, but most of the recommended links are now dead.

I am looking for an SNMP MIB reading/parsing API for Java. There
seems to be plenty of SNMP request/repsonse APIs out there but I am
having difficulty finding anything that will read a MIB and give me
some data structure, preferably with OIDs attached.

Suggestions appreciated. Free/open-source suggestions more greatly
appreciated.

Many thanks,

Jeff

Juergen Schoenwaelder

unread,
Nov 27, 2002, 4:53:57 PM11/27/02
to
In comp.protocols.snmp Jeff Grabell <onef...@yahoo.com> wrote:

> I am looking for an SNMP MIB reading/parsing API for Java. There
> seems to be plenty of SNMP request/repsonse APIs out there but I am
> having difficulty finding anything that will read a MIB and give me
> some data structure, preferably with OIDs attached.

Writing a good SMI parser from scratch is hard work and so the best
thing is to leverage work already been done. If I were to program
stuff in Java, I would either

(a) convert MIBs into XML format using smidump from the libsmi package
and use one of the many XML parsers to access the data, or

(b) write another backend for smidump to generate Java stubs so that I
almost never have to see any low level details in Java (smidump can
already do something like this for Java AgentX sub-agents).

/js

--
Juergen Schoenwaelder <http://www.informatik.uni-osnabrueck.de/schoenw/>

Frank Breuer

unread,
Nov 27, 2002, 5:22:24 PM11/27/02
to
"Jeff Grabell" wrote:

> I am looking for an SNMP MIB reading/parsing API for Java. There
> seems to be plenty of SNMP request/repsonse APIs out there but I am
> having difficulty finding anything that will read a MIB and give me
> some data structure, preferably with OIDs attached.
>
> Suggestions appreciated. Free/open-source suggestions more greatly
> appreciated.

The first few hits of

http://www.google.de/search?q=Java+MIB+Parser

indeed look dead. But since google finds 2300 hits, I think you will
find something. If it doesn't have to be Java, net-snmp is prety good.

Frank Fock

unread,
Nov 28, 2002, 3:34:56 AM11/28/02
to
Hello Jeff,

I have a "less appreciated" one. You may check out the Java SMI parser
package coming with MIB Designer

JavaDoc:
http://www.mibdesigner.com/jasmi/index.html
Example:
http://www.mibdesigner.com/jasmi/DumpObjectNames.java

As Jürgen said, you may also use non Java tools to generate
Java program code at compile time. Beside libSMI, you could
also use AgenPro 2 which originally generates code for AGENT++,
but since it has an open source and fully customizable code
generation back-end, it can be used to generate code for virtually
any agent/manager API and programming language (in particular
C++ and Java). AgenPro 2 can be downloaded for evaluation
from http://www.agentpp.com

Regards,
Frank

Ben Draper

unread,
Dec 3, 2002, 9:01:01 AM12/3/02
to
I've no experience with this product, but noticed it in my search for SNMP
agents / APIs

AgentAPI:
http://nms.estig.ipb.pt/agent_api/mibparser.jsp#mib2text

HTH,
Ben

"Jeff Grabell" <onef...@yahoo.com> wrote in message
news:6491ccbf.02112...@posting.google.com...

Anthony Goubard

unread,
Dec 4, 2002, 12:45:24 PM12/4/02
to
I tested it and was very happy with it. I had nevertheless to modify a
little bit my MIB file.
But the API is very well written (It was easy for example to create a JTree
out of it).

Anthony

Ben Draper a écrit dans le message ...

0 new messages