Re: Installing Net-SNMP from source.

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 16 February 2011 13:13, Steve (Telsat Pacific) <[email protected]> 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
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.