Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Nov 2006 22:16:06 GMT
From:      "Brian A. Seklecki"<bseklecki@collaborativefusion.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/106036: ports/net-mgmt/net-snmp/files/snmpd.sh.in patch to flush exec-cache
Message-ID:  <200611292216.kATMG6ah094018@www.freebsd.org>
Resent-Message-ID: <200611292220.kATMKIYP078662@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         106036
>Category:       ports
>Synopsis:       ports/net-mgmt/net-snmp/files/snmpd.sh.in patch to flush exec-cache
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 29 22:20:18 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Brian A. Seklecki
>Release:        6.2 Prerelease
>Organization:
Collaborative Fusion, Inc.
>Environment:
FreeBSD soundwave 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #0: Wed Sep 13 14:51:18 EDT 2006     root@soundwave:/usr/obj/usr/src/sys/SMP  i386

>Description:
Per the following thread, this patch to be included in 5.3.1 Net-SNMP Update:

---

From: 	Brian A. Seklecki <bseklecki@collaborativefusion.com>
To: 	nork@freebsd.org
Cc: 	lavalamp@spiritual-machines.org
Subject: 	$snmpd_flush_cache for Net-SNMP ports/net-mgmt/net-snmp/files/snmpd.sh.in ?
Date: 	Fri, 29 Sep 2006 11:01:21 -0400


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

---
>How-To-Repeat:
---

From: 	Stanislav Sedov <stas@FreeBSD.org>
To: 	Brian A. Seklecki <bseklecki@collaborativefusion.com>
Cc: 	ports@freebsd.org, nork@freebsd.org
Subject: 	Re: $snmpd_flush_cache for Net-SNMP ports/net-mgmt/net-snmp/files/snmpd.sh.in
Date: 	Sat, 4 Nov 2006 10:52:37 +0300  (02:52 EST)


On Fri, 03 Nov 2006 23:18:11 -0500
"Brian A. Seklecki" <bseklecki@collaborativefusion.com> mentioned:

> FYI to SNMP hackers.  Objections to this patch?
>

Looks reasonable.

--
Stanislav Sedov          <stas@FreeBSD.org>        [[Russia, Moscow]]
PGP id: 0xEB269581       http://people.freebsd.org/~stas/stas.key.asc

	Invalid signature
>Fix:

---

From: 	Jun Kuriyama <kuriyama@imgsrc.co.jp>
To: 	Brian A. Seklecki <bseklecki@collaborativefusion.com>
Cc: 	ports@freebsd.org, nork@freebsd.org
Subject: 	Re: $snmpd_flush_cache for Net-SNMP     ports/net-mgmt/net-snmp/files/snmpd.sh.in
Date: 	Sat, 04 Nov 2006 18:53:39 +0900  (04:53 EST)


At Fri, 03 Nov 2006 23:18:11 -0500,
Brian A. Seklecki wrote:
> FYI to SNMP hackers.  Objections to this patch?

No problem from me.  I'm preparing for 5.3.1 upgrade in my local.
This will bump shlib version, so I'll do it after 6.2R with your
patch.


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200611292216.kATMG6ah094018>