Robert, here's the traces with the -Dhelper:table,parse_oid_indexes, after reverting back the changes....
helper:table: Got request for handler table: base oid:SNMPv2-SMI::enterprises.1751.2.21.23.2.3 helper:table: oid indexes not complete: SNMPv2-SMI::enterprises.1751.2.21.23.2.3.1.2 helper:table: column: 2, indexes: 0 index: type=2(02), value=INTEGER: 0 index: type=2(02), value=INTEGER: 0, Thanks and regards, Arijit -----Original Message----- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 16, 2004 9:01 AM To: Mukherjee, Arijit (Arijit) Cc: '[EMAIL PROTECTED]' Subject: Re: Problem with snmp getnext in table On Tue, 15 Jun 2004 12:47:07 +0530 Mukherjee, wrote: MA> It worked like magic!!!! :) Thanks a ton..., Note that you are just masking the problem, as I'm pretty sure the code is correct. The actual problem is either in the index parsing code, or your table registration isn't correctly set up. Could you backout this change, and run with '-Dhelper:table,parse_oid_indexes' and send the output to the list? MA> -----Original Message----- MA> From: Froese Dirk [mailto:[EMAIL PROTECTED] MA> Sent: Tuesday, June 15, 2004 12:01 PM MA> To: '[EMAIL PROTECTED]' MA> Subject: Re: Problem with snmp getnext in table MA> MA> MA> I have had the same problem. Only if all indices are specified in the get MA> request you get the correct answer. The problem lies in the function MA> 'netsnmp_table_index_find_next_row' in agent/helpers/table .c: MA> .... MA> /* MA> * no indexes, or below our minimum column? then use first row. MA> */ MA> if((tblreq->number_indexes == 0) || -> ????????? That code is correct. If there are no indexes specified, the first row should be returned. The question is, why is number_indexes 0 if there were actual indexes specified? -- Robert Story; NET-SNMP Junkie <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND _______________________________________________ Net-snmp-users mailing list [EMAIL PROTECTED] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users