Thanks Robert. Now its working cool. Another typical problem with the array-user.conf generated code, when trying to use snmp-walk or snmp-get-next.
The scenario is like this: I have a table XXXTable(15 columns) implemented using array-user.conf. At runtime, it may be having 100s of rows. There seems to be some problem, when using snmp-walk on this table. The sequence is given below. a) Snmpwalk - XXXTable: Retrives all rows and all columns - working properly b) Snmpwalk - XXXEntry: Retrives all rows and all columns - working properly c) Snmpwalk - XXXEntry:column1 - Retrieves all rows for column1 - working d) Snmpwalk - XXXEntry:column2 - "Error - no variables found" Same is the case with any column other than column1. All returns "No variables found" when trying to run snmpwalk on those columns. What could be wrong with my indexing? Regards, Geo -----Original Message----- From: Robert Story [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 13, 2005 6:35 AM To: George, Geo Cc: [email protected] Subject: Re: net-snmp: table_array refresh On Tue, 28 Jun 2005 08:50:44 -0700 George, wrote: GG> Now, if I want to disable polling and want to return fresh data on a get GG> request, can I call my data fetch routine, on each GET request arrival? GG> I know Iterate.conf code can do that. GG> GG> If it is possible, which function to override? No, it's not possible with the array user functions. Basically, you need something in the handler chain (before it gets to table array) to clear/refresh the container. I'd say your best be would be to copy the cache handler code to 5.0.9, or into your sub-agent. -- 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-users> You are lost in a twisty maze of little standards, all different. ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ 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
