[SNMP4J] Help with creating tables
Johan Haleby
johan.haleby at gmail.com
Mon May 24 10:56:09 CEST 2010
Hi,
I'm new to SNMP and SNMP4J and I'm trying to create a table. I'm also
creating a MIB file so that I will be able to browse the OID's in a MIB
browser (in my case Ireasoning). The first thing I do is to create
a DefaultMOTable (MyTable) with a rootOid ending with 6. I have 2 columns
and each row is a DefaultMOMutableRow2PC with oid equals to the current row
(i.e. a "single digit" OID). I do manage to get the data out of the tree in
ireasoning but it doesn't match my MIB. The MIB tree in ireasoning looks
like this:
..
MyTable (.6)
-- MyTableEntry (.6.1)
--- MyColumn1 (.6.1.1)
--- MyColumn2 (.6.1.2)
But when I click on MyTable and do "get subtree" the following is printed:
Name/OID: MyColumn1; Value (OctetString): my value
Name/OID: .6.2.1; Value (Integer): 1
I.e. the problem seem to be that the OID is incremeted after ".6" and not
after "0.6.1". I've tried numerous things to get around this but I cannot
find a way. Could anyone point me in the right direction?
I'm using SNMP4J Agent version 1.3.1.
Thank you,
/Johan
More information about the SNMP4J
mailing list