Date: Fri, 03 Nov 2006 23:18:11 -0500 From: "Brian A. Seklecki" <bseklecki@collaborativefusion.com> To: ports@freebsd.org, nork@freebsd.org Subject: $snmpd_flush_cache for Net-SNMP ports/net-mgmt/net-snmp/files/snmpd.sh.in Message-ID: <1162613891.26675.315.camel@soundwave.pgh.priv.collaborativefusion.com>
next in thread | raw e-mail | index | archive | help
--=-o4PWBoQMgLCxFMY6c2wn Content-Type: text/plain Content-Transfer-Encoding: 7bit FYI to SNMP hackers. Objections to this patch? -- Brian A. Seklecki <bseklecki@collaborativefusion.com> Collaborative Fusion, Inc. --=-o4PWBoQMgLCxFMY6c2wn Content-Disposition: inline Content-Description: Forwarded message - $snmpd_flush_cache for Net-SNMP ports/net-mgmt/net-snmp/files/snmpd.sh.in ? Content-Type: message/rfc822 Subject: $snmpd_flush_cache for Net-SNMP ports/net-mgmt/net-snmp/files/snmpd.sh.in ? From: "Brian A. Seklecki" <bseklecki@collaborativefusion.com> To: nork@freebsd.org Cc: lavalamp@spiritual-machines.org Content-Type: text/plain Organization: Collaborative Fusion, Inc. Message-Id: <1159542081.82946.76.camel@soundwave.pgh.priv.collaborativefusion.com> Mime-Version: 1.0 X-Mailer: Evolution 2.6.3 FreeBSD GNOME Team Port Date: Fri, 29 Sep 2006 11:01:21 -0400 Content-Transfer-Encoding: 7bit Good call on the $snmpd_pidfile= Another useful flag would be an optional pre_start() to blow away the Exec cache (which lingers after the process dies without documentation) Basically if you're writing a lot of your own passthrough OIDs and one of them fails to exec, a simple restart of SNMP should be enough to flush out: +start_precmd=snmpd_precmd +snmpd_precmd () { + if checkyesno snmpd_flush_cache; then + rm -rvf /var/net-snmp/.snmp-exec-cache fi ~BAS -- Brian A. Seklecki <bseklecki@collaborativefusion.com> Collaborative Fusion, Inc. --=-o4PWBoQMgLCxFMY6c2wn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1162613891.26675.315.camel>