[SNMP4J] Basic Question about implementing SNMP Tables

Eugene R. Snider gene at cvtt.net
Sun Dec 16 01:44:09 CET 2007



inliner683 at gmx.de wrote:
>         someEntry.addRow(new SomeEntryRow(new OID("1"), v1));
>         someEntry.addRow(new SomeEntryRow(new OID("2"), v2));
>
> These are the OIDs used when creating the row. What is wrong here and why
> do I have to provide an (arbitrary?) OID when creating rows.
This is the object ID that uniquely identifies this instance of the 
varbinds.
>  I thought the OIDs should be deduced from
> the index column? This doesn't fit in my understanding of indexing tables in SNMP. Here you can provide
> arbitrary OIDs which will be valid and the index column seems to be of no importance.
>   
Why do you think there is a relationship between the column index and 
the instance ID? The column index identifies what object is being 
referenced, this provides the type data necessary to decode the instance 
varbind, however it is the instance OID ( assigned during the row 
creation process ) that corresponds to a specific datum. In the crudest 
possible analogy it corresponds to the row number meta data found in a 
traditional relational database.

Gene




More information about the SNMP4J mailing list