From owner-freebsd-rc@FreeBSD.ORG Fri Feb 15 09:07:21 2008 Return-Path: Delivered-To: rc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6D8CB16A417 for ; Fri, 15 Feb 2008 09:07:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (tim.des.no [194.63.250.121]) by mx1.freebsd.org (Postfix) with ESMTP id 1BFE713C43E for ; Fri, 15 Feb 2008 09:07:21 +0000 (UTC) (envelope-from des@des.no) Received: from tim.des.no (localhost [127.0.0.1]) by spam.des.no (Postfix) with ESMTP id DBDEF207F for ; Fri, 15 Feb 2008 10:07:17 +0100 (CET) X-Spam-Tests: AWL X-Spam-Learn: disabled X-Spam-Score: -0.3/3.0 X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on tim.des.no Received: from ds4.des.no (des.no [80.203.243.180]) by smtp.des.no (Postfix) with ESMTP id 55D072049 for ; Fri, 15 Feb 2008 10:07:17 +0100 (CET) Received: by ds4.des.no (Postfix, from userid 1001) id 3A73D84485; Fri, 15 Feb 2008 10:07:17 +0100 (CET) From: =?utf-8?Q?Dag-Erling_Sm=C3=B8rgrav?= To: rc@freebsd.org Date: Fri, 15 Feb 2008 10:07:17 +0100 Message-ID: <867ih61tbu.fsf@ds4.des.no> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Cc: Subject: 420.status-network X-BeenThere: freebsd-rc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Discussion related to /etc/rc.d design and implementation." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Feb 2008 09:07:21 -0000 In my continuing quest to reduce periodic/daily email to something that can actually be read and understood at a glance, I've come up with the following patch, which strips uninteresting interfaces and link-level data from the output of 420.status-network: Index: 420.status-network =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /home/ncvs/src/etc/periodic/daily/420.status-network,v retrieving revision 1.6 diff -u -r1.6 420.status-network --- 420.status-network 14 Sep 2000 17:19:10 -0000 1.6 +++ 420.status-network 15 Feb 2008 09:02:08 -0000 @@ -21,9 +21,11 @@ netstat -i && rc=3D0 || rc=3D3;; *) netstat -in && rc=3D0 || rc=3D3;; - esac;; - - *) rc=3D0;; + esac | egrep -v '(^(lo|faith)[0-9]+|pflog\>)|' + ;; + *) + rc=3D0 + ;; esac =20 exit $rc Instead of this: Network interface status: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs = Coll msk0 1500 00:16:e6:dc:b5:62 10094199 0 9731102 0 = 0 msk0 1500 10.0.0.0 ds4 10100875 - 9967045 - = - lo0 16384 1341743 0 1341741 0 = 0 lo0 16384 fe80:2::1 fe80:2::1 0 - 0 - = - lo0 16384 localhost ::1 0 - 0 - = - lo0 16384 your-net localhost 1290637 - 1290633 - = - pflog 33160 0 0 147 0 = 0 I get this: Network interface status: Name Mtu Network Address Ipkts Ierrs Opkts Oerrs = Coll msk0 1500 10.0.0.0 ds4 10100920 - 9967083 - = - BTW, I think daily_status_network_usedns should be off by default. DES --=20 Dag-Erling Sm=C3=B8rgrav - des@des.no