[dns-operations] old dnscap files
Randy Bush
randy at psg.com
Fri Aug 16 19:00:44 UTC 2013
> #!/bin/sh
> set -e
> . /etc/sysconfig/dnscap
>
> cd `dirname ${DNSCAP_BASEPATH}`
> while sleep 1 ; do
> GB_FREE=`df -B 1G . | awk 'NR==2 {print $4}'`
> echo $GB_FREE GB free | logger
> test $GB_FREE -gt ${DNSCAP_FREE_GB} && break;
> ls -rt | grep '^dnscap\.' | head -n 1 | xargs rm -v 2>&1 | logger
> done
ok. cute. but i really only use dnscap to report yesterday's
activity. i am not a dns geek doing longitudinal analysis. so i think
i just save the most recent .part file, yes?
randy
More information about the dns-operations
mailing list