[SNMP4J] Help with creating tables

Frank Fock fock at agentpp.com
Mon May 24 12:48:16 CEST 2010


Hi Johan,

Please use the OID of MyTableEntry as the table's OID.

Best regards,
Frank

On 24.05.2010 10:56, Johan Haleby wrote:
> 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
> _______________________________________________
> SNMP4J mailing list
> SNMP4J at agentpp.org
> http://lists.agentpp.org/mailman/listinfo/snmp4j

-- 
AGENT++
http://www.agentpp.com
http://www.snmp4j.com
http://www.mibexplorer.com
http://www.mibdesigner.com




More information about the SNMP4J mailing list