From: johanfirdi <joh...@jo...> - 2007-07-13 11:02:02
|
dear guys, here my sample pass command in snmpd.conf pass .1.3.6.1.4.1.2021.123 /root/test and here content script /root/test #!/bin/sh #echo .1.3.6.1.4.1.2021.123 echo $2 echo "integer" ipfw show 64000 | awk '{ print $2 }' The problem is I do snmpget to above oid, the result unchanged when I do snmpget again 10 seconds later, or 20 seconds later, still remain with old value. when I type ipfw show 64000 | awk '{ print $2 }' at bash prompt, the value is already changed. But after 30 seconds later, the value will changed. Any cache value stored in snmpd ?. I read snmpd.conf, about stash_cache (that will refill value in cache after 30 seconds) ? and than I touch the code of snmp, in file agent/helpers/stash_cache.c Change the line cinfo->cache_length = 30 become 10 and than doing reconfigure, make and make install. no changing happened. any suggest ?. Thanks. Johan |