On 18 August 2010 09:01, AC. <[email protected]> wrote:
> I see that, but I have to follow two rules:
> 1. When receiving the request command that want to get table information,
>     it must ask the information from my kernel.
> -----> So I remove the check, "if(tlist == NULL)", to let agent ask
> information every request.

That description is essentially meaningless.
I've no idea what your code looks like, so giving me
one line in isolation is no use whatsoever.


> 2. At the same request to retrive the table, I just want the agent to ask
> the information one time only.
> ------> This is my problem. Because it used the command, "getnext", to
> retrive the table.
>          I have only one idea to do it now.
>          I can calculate the time to check it. (e.g. ask information per 30
> seconds)
>          Do you have better idea to resolve it?


That's the reason we suggest you use the cache handler.
This will allow you to query the kernel once, and keep the
information available for the next few seconds - typically
sufficient to serve a complete "snmpwalk" or "snmptable".

Dave

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
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

Reply via email to