From owner-freebsd-questions@FreeBSD.ORG Wed Aug 9 16:22:40 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 D68C016A4DE for ; Wed, 9 Aug 2006 16:22:40 +0000 (UTC) (envelope-from scrappy@freebsd.org) Received: from hub.org (hub.org [200.46.204.220]) by mx1.FreeBSD.org (Postfix) with ESMTP id AB52643D73 for ; Wed, 9 Aug 2006 16:22:37 +0000 (GMT) (envelope-from scrappy@freebsd.org) Received: from localhost (mx1.hub.org [200.46.208.251]) by hub.org (Postfix) with ESMTP id 18E0E291988; Wed, 9 Aug 2006 13:22:36 -0300 (ADT) Received: from hub.org ([200.46.204.220]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 40784-10; Wed, 9 Aug 2006 13:22:36 -0300 (ADT) Received: from ganymede.hub.org (blk-224-179-167.eastlink.ca [24.224.179.167]) by hub.org (Postfix) with ESMTP id 4ABF9290C20; Wed, 9 Aug 2006 13:22:35 -0300 (ADT) Received: by ganymede.hub.org (Postfix, from userid 1027) id 49BAF5D99E; Wed, 9 Aug 2006 13:22:35 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by ganymede.hub.org (Postfix) with ESMTP id 41FC95D93D; Wed, 9 Aug 2006 13:22:35 -0300 (ADT) Date: Wed, 9 Aug 2006 13:22:35 -0300 (ADT) From: "Marc G. Fournier" X-X-Sender: freebsd@ganymede.hub.org To: Paul Schmehl In-Reply-To: <44D9F887.9030305@utdallas.edu> Message-ID: <20060809132132.R7522@ganymede.hub.org> References: <20060807003815.C7522@ganymede.hub.org> <20060808102819.GB64879@augusta.de> <20060808153921.V7522@ganymede.hub.org> <44D8EC98.8020801@utdallas.edu> <20060808201359.S7522@ganymede.hub.org> <44D91F02.90107@mawer.org> <20060808212719.L7522@ganymede.hub.org> <30502313-7B58-4FEC-8A2C-43ED071AC26F@u.washington.edu> <20060809055035.J7522@ganymede.hub.org> <44D9F887.9030305@utdallas.edu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed 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: Wed, 09 Aug 2006 16:22:40 -0000 With minor mods, committed ... I moved bsdstats.hub.org to a variable, and added an 'echo' for when the stats, or a part of them, is disabled, that way if this ever does get into the base system, ppl reading monthly run output will know that they exist, and how to turn it on ... thx ... On Wed, 9 Aug 2006, Paul Schmehl wrote: > Someone mentioned having output from the script so you would know it was > running. This patch would do that, if you want to add that functionality. > > --- 300.statistics.orig Wed Aug 9 09:49:35 2006 > +++ 300.statistics Wed Aug 9 09:54:17 2006 > @@ -44,6 +44,7 @@ > SYS=`/usr/bin/uname -r` > ARCH=`/usr/bin/uname -m` > do_fetch getid.php?hn=$HN\&sys=$SYS\&arch=$ARCH\&opsys=$OS > + echo "Posting monthly OS statistics to bsdstats.hub.org\n" > case "$monthly_statistics_report_devices" in > [Yy][Ee][Ss]) > IFS=" > @@ -57,6 +58,7 @@ > DEV=`echo $line | awk '{print $4}' | cut -c8-11` > do_fetch > report_device.php?driver=$DRIVER\&vendor=$VEN\&device=$DEV\&hn=$HN > done > + echo "Posting monthly device statistics to bsdstats.hub.org\n" > > line=$( sysctl -n hw.model ) > VEN=$( echo $line | cut -d ' ' -f 1 ) > @@ -69,6 +71,7 @@ > do_fetch > report_cpu.php?cpu_id=CPU$n\&vendor=$VEN\&cpu_type=$DEV\&hn=$HN > n=$(( $n + 1 )) > done > + echo "Posting monthly CPU statistics to bsdstats.hub.org\n" > > ;; > esac > > -- > Paul Schmehl (pauls@utdallas.edu) > Adjunct Information Security Officer > The University of Texas at Dallas > http://www.utdallas.edu/ir/security/ > ---- Marc G. Fournier Hub.Org Networking Services (http://www.hub.org) Email . scrappy@hub.org MSN . scrappy@hub.org Yahoo . yscrappy Skype: hub.org ICQ . 7615664