How do I make the DNCA automatically clear its statistics

Question

How do I make the DNCA automatically clear its statistics?

Answer

Create a cron job in /etc/cron.d/Discover to wake up and clear the stats. Examples:


* * * * * root /usr/local/dncauser/bin/Discover cron > /dev/null 2>&1
# the command 'Discover cron' is run every minute (already exists in
# /etc/cron.d/Discover




30 3 * * * root /usr/local/dncauser/bin/Discover clearstats > /dev/null 2>&1
# 'Discover clearstats' is run at 3:30 a.m. every day.




15 4 * * 2 root /usr/local/dncauser/bin/Discover clearstats > /dev/null 2>&1
# 'Discover clearstats' is run at 4:15 a.m. on Tuesdays.




01 0 1 * * root /usr/local/dncauser/bin/Discover clearstats > /dev/null 2>&1
# 'Discover clearstats' is run at 12:01 a.m. on the first day of every month.