BSDstats Project v2.0 ...
Paul Schmehl
pauls at utdallas.edu
Wed Aug 9 15:00:59 UTC 2006
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 at utdallas.edu)
Adjunct Information Security Officer
The University of Texas at Dallas
http://www.utdallas.edu/ir/security/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5268 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20060809/cd9628dc/smime.bin
More information about the freebsd-questions
mailing list