Re: Installing Net-SNMP from source.

"Steve (Telsat Pacific)" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,

Sorry to bother you again, but I couldn't find a reply to my question 
below and wanted to know if you knew how to make the setting change 
permantent?   Do I need to re-compile Net-SNMP or just update a file 
somewhere on the server?

Thanks
Steve.

-------- Original Message --------
Subject: 	Re: Installing Net-SNMP from source.
Date: 	Thu, 17 Feb 2011 09:51:42 +1100
From: 	Steve (Telsat Pacific) <[email protected]>
To: 	Dave Shield <[email protected]>
CC: 	Net-snmp-users <[email protected]>



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)<[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

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf

_______________________________________________
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.