From owner-freebsd-questions@FreeBSD.ORG Tue Aug 8 01:29:00 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E777616A4E0 for ; Tue, 8 Aug 2006 01:29:00 +0000 (UTC) (envelope-from cscotts@mindspring.com) Received: from relay02.pair.com (relay02.pair.com [209.68.5.16]) by mx1.FreeBSD.org (Postfix) with SMTP id 36CA243D49 for ; Tue, 8 Aug 2006 01:28:59 +0000 (GMT) (envelope-from cscotts@mindspring.com) Received: (qmail 67489 invoked from network); 8 Aug 2006 01:28:59 -0000 Received: from unknown (HELO ?192.168.1.102?) (unknown) by unknown with SMTP; 8 Aug 2006 01:28:59 -0000 X-pair-Authenticated: 71.49.33.95 In-Reply-To: <20060807003815.C7522@ganymede.hub.org> References: <20060807003815.C7522@ganymede.hub.org> Mime-Version: 1.0 (Apple Message framework v750) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <7D8744EB-49F6-4CD4-AAB9-76D86DB57526@mindspring.com> Content-Transfer-Encoding: 7bit From: Scott Sipe Date: Mon, 7 Aug 2006 21:29:02 -0400 To: Marc G. Fournier X-Mailer: Apple Mail (2.750) Cc: freebsd-questions@freebsd.org Subject: Re: BSDstats Project v2.0 ... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Aug 2006 01:29:01 -0000 On Aug 6, 2006, at 11:42 PM, Marc G. Fournier wrote: > > I've now committed v2.0 of the 300.statistics periodic script ... > this one adds the device reporting that we'd talked about > previously, and the summary reports now reflect the driver(s) in > use for those deciding to report ... > > This Phase of the script is optional, and not enabled by > default ... I can't think of any reason why you wouldn't want to > report it, but just in case someone feels it poses a problem, its > an opt-in report ... > > pkg-message updated to reflect the extra line you need to add to / > etc/periodic.conf: > > monthly_statistics_report_devices=yes > > I've written it to report driver + chip= information from pciconf - > l, since even pciconf -lv doesn't seem to use card= ... the summary > report will be extended next to show both vendor and chip > statistics ... > > Let me know of any problems ... > Just got it installed on two systems--exciting! Any thoughts on adding uptime tracking (ie, desirable or not)? Could be something very simple client side, like: --- /usr/ports/sysutils/bsdstats/files/300.statistics Sun Aug 6 23:35:39 2006 +++ /usr/local/etc/periodic/monthly/300.statistics Mon Aug 7 19:43:47 2006 @@ -20,7 +20,8 @@ HN=`/bin/hostname` SYS=`/usr/bin/uname -r` ARCH=`/usr/bin/uname -m` - /usr/bin/fetch -qo /tmp/getid http://bsdstats.hub.org/scripts/ getid.php?hn=$HN\&sys=$SYS\&arch=$ARCH + UP=`/usr/bin/uptime | /usr/bin/grep -o "up [^,]*,[^,]*,"` + /usr/bin/fetch -qo /tmp/getid http://bsdstats.hub.org/scripts/ getid.php?hn=$HN\&sys=$SYS\&arch=$ARCH\&up=$UP case "$monthly_statistics_report_devices" in [Yy][Ee][Ss]) IFS=" Scott