On Thu, 2005-09-29 at 14:54 -0400, sasson, shuki wrote:
> You suggest I will change the following call:
> netsnmp_extract_table_row_data(request);
> 
> With a call to the external DB to retrieve the information. So this
> means that the indexes for that call should be retrieved from request

Correct.


> I suspect that I have to look to the variable bindings to extract the tables
> indexes. 

No.
These indexes will already have been extracted by the 'table' helper.
You can use  'netsnmp_extract_table_info()' to retrieve the relevant
netsnmp_table_request_info structure, which includes a field 'indexes'.
This is a list of the various index values for this particular varbind.



> However as far as I now a single request may have several var binds.
> How can I tell which var-bind one should the indexes be retrieved from?

This is done for each varbind separately (since a single request may
well refer to several different rows).  That's the purpose of the loop
through the 'requests' parameter - each entry in this list refers to
a different varbind.

Dave


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to