Hi Dave, Thanks for pointing out the cache setting, it was right on the money!!! I wonder why no one else knew about this when I asked it a few months back?
Last question, do I need to re-compile and re-install NetSNMP to make this setting permanent? I tried setting it with snmpset but it wasn't persistent after rebooting? Thanks Steve. On 17/02/2011 12:33 AM, Dave Shield wrote: > On 16 February 2011 13:13, Steve (Telsat Pacific)<st...@telsat.vu> wrote: >> forum some time ago, but didn't really get a helpful answer. When using my >> compiled version of Net SNMP, queries for the bandwidth on an interface >> gives me a data value every 3 seconds, any quicker and NetSNMP gives me a 0 >> (zero) value. When I tested this with the APT version of NetSNMP, the data >> value was only every 15 seconds, then when I re-compiled again back to the >> latest version, it was again every 3 seconds. > $ grep IFTABLE_CACHE_TIMEOUT agent/mibgroup/if-mib/ifTable/*.h > #define IFTABLE_CACHE_TIMEOUT 3 > > $ snmpget .... NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.2.2 > > should also give you the same value. > > >> I'd like to be able to get per-second values from the interfaces, do you >> know the command I can use to change from the 3-second values to a >> per-second value? > $ snmpset .... NET-SNMP-AGENT-MIB::nsCacheTimeout.1.3.6.1.2.1.2.2 i 1 > > > > Dave > > ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Net-snmp-users mailing list Net-snmp-users@lists.sourceforge.net Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users