Ugh ... I just noticed something I think I am doing wrong:
The Table2 data_context structure came configured with a "ProtectionStatus"
field defined in it (since this is in my MIB). Knowing that Table2 is an
extension of Table1 (and based on our past discussions on how to implement this
type of table), I added the "ProtectionStatus" field defintion into Table1
data_context structure as well. Also, Table2 has been enhanced to use the same
cache as defined by Table1.
Now, when I "snmpwalk" through Table2, then the "Table2_row_prep()" routine is
called and is providing a row_context structure as input. In this routine, I
found that I am updating the "ProtectionStatus" field defined in the Table2
data_context structure instead of updating the one defined in the Table1
data_context structure. I think this is a mistake. I believe I want to update
the "ProtectionStatus" field in Table1 data_context instead .... is this
correct?
If so, then how do I access the Table1 table so I can update the row data
appropriately? I know the "rowreq_ctx->tbl_idx" value provided in the
Table2_row_prep() routine tells me the row I am dealing with, but how do I get
to Table1 to change the field data there?
The other thing is that the "snmpwalk" of Table2 did display all rows showing
the "ProtectionStatus" field value. Since the "ProtectionStatus" field was
only populated in the Table2 data_context structure (ie: I never updated it in
the Table1 data_context structure), then this means the "snmpwalk" is really
walking through Table2 data and not really getting the data from Table1 like it
should, so something still must be wrong with my set up.
Actually, should the Table2 data_context structure include any fields at all?
I would not think so, since all these fields have been added to Table1
data_context already.
---------------------------------
Be a better Globetrotter. Get better travel answers from someone who knows.
Yahoo! Answers - Check it out.
-------------------------------------------------------------------------
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