Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2006 21:29:02 -0400
From:      Scott Sipe <cscotts@mindspring.com>
To:        Marc G. Fournier <scrappy@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: BSDstats Project v2.0 ...
Message-ID:  <7D8744EB-49F6-4CD4-AAB9-76D86DB57526@mindspring.com>
In-Reply-To: <20060807003815.C7522@ganymede.hub.org>
References:  <20060807003815.C7522@ganymede.hub.org>

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

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7D8744EB-49F6-4CD4-AAB9-76D86DB57526>