No, you misunderstood me. Just use "...6.1" as the OID
in the DefaultMOTable constructor (instead "...6").

Do not change the MIB and do not change the DefaultMOTable.

Best regards,
Frank

On 24.05.2010 13:15, Johan Haleby wrote:
> Thanks for your answer.
>
> Do you mean that I should remove "MyTableEntry" altogether from the MIB?
> In all MIB's I've seen the tables have the table structure I mentioned
> in the previous mail.
>
> I did manage to find a work-around to get the OID's matching the MIB by
> overriding getCellOID of DefaultMOTable and append the index before the
> column. Is this a bad thing to do ("table view" in ireasoning doesn't
> work for example)?
>
> /Johan
>
> On Mon, May 24, 2010 at 12:48 PM, Frank Fock <f...@agentpp.com
> <mailto:f...@agentpp.com>> wrote:
>
>     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@agentpp.org <mailto:SNMP4J@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
>
>     _______________________________________________
>     SNMP4J mailing list
>     SNMP4J@agentpp.org <mailto:SNMP4J@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

_______________________________________________
SNMP4J mailing list
SNMP4J@agentpp.org
http://lists.agentpp.org/mailman/listinfo/snmp4j

Reply via email to