BSDstats Project v2.0 ...
Scott Sipe
cscotts at mindspring.com
Tue Aug 8 01:29:01 UTC 2006
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
More information about the freebsd-questions
mailing list