-
Notifications
You must be signed in to change notification settings - Fork 62
/
netdot.cron
35 lines (25 loc) · 1.3 KB
/
netdot.cron
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
# 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