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 ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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