On 31/05/07, Need Help <[EMAIL PROTECTED]> wrote:
> My biggest concern is whether I need to use an internal SNMP row index from
> Table1 to somehow populate stuff in Table2 within NetSNMP or whether I can
> simply start populating rows for Table2 with new row index values which have
> no relationship to Table1 at all.

If Table2 is meant to augment Table1 (either directly, or as a
table-in-a-table),
then the index values you use for Table2 must match those used for Table1.
The responsibility for doing this lies with the 'data_access' or
'load' routines.
As long as this is done, then the rest of the agent processing will work
correctly.



> Somehow I keep thinking there is this relationship between Table1 and Table2
> which needs to be maintained

Yes - this is done via the (shared) index values.

Imagine you have two children - in separate rooms, so that they can't
see or hear each other.  You stand in the corridoor between them, and
give each of them four cards.
The cards you give to the first child contain the numbers  7, 3, 5, and 6.
The cards you give to the second child contain the numbers  49, 9, 25 and 36.

If you ask the two children to both hold up the second card, then you'll
see that the square of 3 is 9,  and similarly for the other three cards.

The effect is that you have a single combined table, displaying the
squares of (selected) numbers.   But the individual tables [children]
don't know anything about this.   It only works because you gave the
two children the correct cards in the first place, and in the same order.
(i.e. with the same index values).

If you gave the children cards in a random order (i.e. with different
indexes), then you couldn't subsequently pull the information together.

The bottom line is that:
   - the code to populate the two tables, needs to know about the relationship.
   - the code to interpret the results, needs to know about the relationship.
   - the code to *implement* the tables, does not.


Does that make things any clearer?

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to