Extract bandwidth information from lighttpd log files

I was looking for a simple way to get some bandwidth statistics for websites that I host. Interested in historical data my only option was to look back over my webserver log files.

My webserver of choice on linux systems is currently lighttpd. Here’s a quick Bash script to get the bandwidth statistics out of the default lighttpd log files:

#!/bin/bash
cat access.log | awk '{
month=substr($4,5,3)
year= substr($4,9,4)
timstamp=year" "month
bytes[timstamp] += $10
} END {
for (date in bytes)
printf("%s %20d MB\n", date, bytes[date]/(1024*1024))
}' | sort -k1n -k2M

Continue reading Extract bandwidth information from lighttpd log files

Dell KACE Admin Template

By default when the Dell KACE agent is deployed to client computers they will display a splash screen. If you have a Windows Vista or later environment this can be conveniently managed by pushing out some registry values using Group Policy Preferences. If however you still have some Windows XP client computers without the Group Policy Preferences client installed, it’s a little more tricky.
Continue reading Dell KACE Admin Template