Re: clean-up function for table_iterator
Robert Story <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
On Sat, 25 Nov 2006 15:18:24 +0000 Dave wrote: DS> On 24/10/06, Mihail Peter <[email protected]> wrote: DS> > Is there any possibility to call my own (cleanup) function after a DS> > series of GET-requests that belong to a single snmp-walk operation. DS> DS> As far as the agent is concerned, each request is completely DS> independent. There's no connection between successive DS> GET (or GETNEXT) requests - even if they happen to come from DS> a single "snmpwalk" command. DS> DS> You could have cleanup code invoked at the end of each GET(NEXT) DS> request - but not at the end of an "snmpwalk". You could fake it a few ways.. - using the cache handler with a timeout a little longer than you expect a walk to take, and do your cleanup in the cache_free routine - register your own timer callback on entry, with a timeout value equal to the interval without a request that you consider the 'end' of a walk, and reset the timer for each new request. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ 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