Re: clean-up function for table_iterator
Mihail Peter <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Maybe I refrase my question, Is there any possibility to call my own (cleanup) function after a series of GET-requests that belong to a single snmp-walk operation. Will "netsnmp_mode_end_call_add_mode_callback" help me? And how can I use it? Regards, Mihail Mihail Peter wrote: >Hi, > >I'm using the table_iterator helper for my subagent. I implemented a >request-handler, which is called for every single GET-request and the >get_first_data_point and get_next_data_point hooks to iterate over my >data (linked list). > >For the table I create a snapshot of some dynamic data and put it into >memory. After the snmpwalk is finished, the memory where the snapshot is >stored should be freed. > >I allocate memory during the first call to my hook >"get_first_data_point", but how can I free this memory after snmpwalk is >finished? >Using "free_loop_context_at_end"-hook doesn't help, because it is called >after every single snmpget (each table entry /cell ) but I need it for >GETNEXT-request processing. > >Does anybody know some solution? > >Regards, >Mihail > >------------------------------------------------------------------------- >Using Tomcat but need to do more? Need to support web services, security? >Get stuff done quickly with pre-integrated technology to make your job easier >Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo >http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 >_______________________________________________ >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 > > ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ 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