On Fri, 30 Sep 2005 10:00:11 +0100 Dave wrote:
DS> > I suspect that I have to look to the variable bindings to extract the
DS> > tables indexes.
DS>
DS> No.
DS> These indexes will already have been extracted by the 'table' helper.
DS> You can use 'netsnmp_extract_table_info()' to retrieve the relevant
DS> netsnmp_table_request_info structure, which includes a field 'indexes'.
DS> This is a list of the various index values for this particular varbind.
Mote that this index will be from the incoming varbind, and thus for a GETNEXT
request you want the *next* index for processing.
DS> > However as far as I now a single request may have several var binds.
DS> > How can I tell which var-bind one should the indexes be retrieved from?
DS>
DS> This is done for each varbind separately (since a single request may
DS> well refer to several different rows). That's the purpose of the loop
DS> through the 'requests' parameter - each entry in this list refers to
DS> a different varbind.
This is exactly what the row_merge helper is for. It will call the table
handler once for each index, instead of once per varbind. (Dave, I can't
believe you didn't push this, you wrote it!)
--
NOTE: messages sent directly to me, instead of the lists, will be deleted
unless they are requests for paid consulting services.
Robert Story; NET-SNMP Junkie
Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
You are lost in a twisty maze of little standards, all different.
-------------------------------------------------------
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