Thanks Dave,

It looks like it's the agent of the SNMP device.  When we changed the 
interval of GET requests to 5 seconds the problem disappears.  I don't 
what SNMP library the agent is using though but I tried the same 
application out configured to use a test agent that I developed using 
Net-SNMP and this worked fine even at 1 second intervals.

Best Regards,
Martin.

On 25/02/2011 20:09, Dave Shield wrote:
> On 25 February 2011 17:06, Martin Townsend
> <[email protected]>  wrote:
>> Does the Net-SNMP library cache results of a SNMP Get Request?
> No.
>
> The only caching is within the SNMP agent
> (which depends on the individual MIB module implementation)
>
> But even there, the SET request ought to invalidate this caching.
>
>
>>    I have an
>> application that performs an SNMP Get Request, checks to see if the value is
>> different that what the application wants and if so send a Set Request to
>> change it.  This happens every second.  The problem I'm seeing is that after
>> the set request the next get request returns the value previous to the set.
> The first thing I'd try would be to increase the timeout between queries.
> Do you see the same effect if the query is repeated every five seconds,
> (or every sixty seconds, etc)?
>
> The other thing to check is whether the second request is actually being
> received by the agent  (and if so, what value it returns).
>     Try running the agent with the flag -d,  and or -Ddump
>
> Dave
>
>
> -----
> No virus found in this message.
> Checked by AVG - www.avg.com
> Version: 10.0.1204 / Virus Database: 1435/3472 - Release Date: 02/27/11
>

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-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