On Fri, Mar 26, 2010 at 8:01 PM, Robert Story <email@example.com>
On Fri, 26 Mar 2010 18:34:58 +0530 Hemant wrote:
HS> I am using container_load function in data_access.c file to implement the
HS> I need to know how i can execute container_load function every time i issue
HS> the snmptable command in the terminal.
There is no way to know when you are issuing a snmptable command, as the agent
simply sees a series of get-next requests.
HS> Right now what i have to do is , restart my subagent ... Please suggest me
HS> how i can implement the dynamism without restarting my subagent.
Take a look at the ifTable implementation in agent/mibgroups/if-table/*. It
uses the cache helper to periodically reload the cache (every 20 seconds or
so). If you have some sort of external trigger you can check (like if some
file has been touched), you can use the cache helper for that too.