I am executing the following command

snmpwalk -v2c -m /myMib.my -c public localhost enterprises

Here is a code snippet of my handler

for (request = requests; request; request = request->next) {
var = request->requestvb;

if (request->processed != 0)
{
        dprintf("request->processed failed\n");
        table_info = netsnmp_extract_table_info(request);
        index = *(table_info->indexes->val.integer);
        sprintf(debug_string,"commBaseStatsEntryTable - Index Request: %d mode: %d 
GETNEXT: %d GET: %d \n",
                                index, reqinfo->mode,MODE_GETNEXT, MODE_GET);
        dprintf(debug_string);
        continue;
}

table_info = netsnmp_extract_table_info(request);
index = *(table_info->indexes->val.integer);

sprintf(debug_string,"commBaseStatsEntryTable - Index Request: %d mode: %d GETNEXT: 
%d GET: %d \n",
                  index, reqinfo->mode,MODE_GETNEXT, MODE_GET);
dprintf(debug_string); The walk begins with an index of 0, then a 1. For some reason, the next occurrance triggers a request->processed = 1 with an index of 0. The remaining indexes are 1,2,3,4,5,6. Normal. What is happening is the request->next continues to move through the table, so the resulting values are inaccurate.
Has anyone seen this problem. Or is there a way to reset the table request once 
this occurs.

Thanks

Greg L robillard




-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to