Permalink
Fetching contributors…
Cannot retrieve contributors at this time
36 lines (25 sloc) 1.3 KB
#
# Recommended cron jobs for Netdot. Save as /etc/cron.d/netdot
#
#
PREFIX=/usr/local/netdot
# Every hour rediscover devices and topology
0 * * * * root $PREFIX/bin/updatedevices.pl -DIFAT
# If you have a large number of devices and the above is too
# aggressive, split the load using the following two jobs intead:
# Retrieve forwarding tables and ARP caches
#0 1-11,13-16,18-23 * * * root $PREFIX/bin/updatedevices.pl -DFA
# Twice a day, rediscover devices and topology (in addition to above)
#0 12,17 * * * root $PREFIX/bin/updatedevices.pl -DIFAT
# Once a day, generate DNS records for interface IPs
30 7 * * * root $PREFIX/bin/updatedevices.pl -DN
# Update whole-network topology graphs
45 0 * * * root $PREFIX/bin/build_topo_graph.pl -f $PREFIX/htdocs/img/graphs/whole_network_no_vlans.png
50 0 * * * root $PREFIX/bin/build_topo_graph.pl -v -f $PREFIX/htdocs/img/graphs/whole_network_with_vlans.png
# Rotate forwarding tables and arp caches once a week. Keep 7 days of backups
45 3 * * 0 root $PREFIX/bin/prune_db.pl -F -A -d 7 -r
# Once a week, remove MAC and IP addresses older than 3 months
# NOTE: ONLY ENABLE THIS IF YOU ARE SURE OF WHAT IT DOES
# 45 4 * * 0 root $PREFIX/bin/prune_db.pl -M -I -d 90
# Remove audit records older than 3 months
40 4 * * 0 root $PREFIX/bin/prune_db.pl --audit --hostaudit -d 90