SNMP: interface traffic info refresh – make it more frequent Home Page › Forums › Network Management › ZeroShell › SNMP: interface traffic info refresh – make it more frequent This topic contains 1 reply, has 0 voices, and was last updated by aviegas 9 years ago. Viewing 1 post (of 1 total) Author Posts June 30, 2010 at 12:36 am #42472 aviegasMember It seems that the net-snmp packages for ZeroShell was configured with the cache timeout for the IF-MIB set to the default value of 15 in “agent/mibgroup/if-mib/ifTable/ifTable_data_access.h” #define IFTABLE_CACHE_TIMEOUT 15 This imply that interface InOctets and OutOctets are updated every 15 seconds. This may be good for some operations, but if one if plotting this information in real time, 15 sec interval is useless. Although there is no configuration directive to change this at runtime, there is a way to change the value. running the following command after snmpd has started (give it 10 secs to start typically) will change the cache time for the IF-MIB and make the in/out byte count update as frequent as 1 sec. /Database/opt/x.x/packages/bin/snmpset -c write -v 1 127.0.0.1 NET-SNMP-AGENT-MIB::nsCacheTimeout.184.108.40.206.220.127.116.11 i 1 This assumes that the RW community is named “write” in the snmpd.conf I hope this helps others running net-snmp under ZeroShell Author Posts Viewing 1 post (of 1 total) You must be logged in to reply to this topic.