# X: ----------------
# X: This file is used to automatically generate the system crontab file.
# X: The resulting configuration file is stored at /etc/crontab
# X: ----------------
#
# /etc/crontab - root's crontab for FreeBSD
#
# $FreeBSD: src/etc/crontab,v 1.31 2001/02/19 02:47:41 peter Exp $
#
SHELL=/bin/sh
PATH=/etc:/bin:/sbin:/usr/bin:/usr/sbin
HOME=/var/log
MAILTO=""
#
#minute	hour	mday	month	wday	who	command
#
*/5	*	*	*	*	root	/usr/libexec/atrun
#
# save some entropy so that /dev/random can reseed on boot
*/11	*	*	*	*	operator /usr/libexec/save-entropy
#
# rotate log files every half-hour, if necessary
0,30	*	*	*	*	root	newsyslog
# rotate log files on /ifs, too -- one node per cluster at a time
15,45  	*	*	*	*	root	isi_ropc newsyslog -f /etc/newsyslog.ifs.conf
# clean webui garbage from log directory every half-hour
*/30	*	*	*	*	root	/usr/local/share/webware/bin/clean_webware_errors.py
#
# back up our copy of drives.xml
18	*/6	*	*	*	root /usr/bin/isi_run_script -s /usr/sbin/isi_backup /etc/ifs/drives.xml alert
# Process the sendmail queues every 15 minutes just in case there was a network
# outage which left something in the queue
*/15	*	*	*	*	root	/usr/sbin/sendmail -q
*/15	*	*	*	*	root	/usr/sbin/sendmail -Ac -q
#
# do daily/weekly/monthly maintenance
1	3	*	*	*	root	periodic daily
15	4	*	*	6	root	periodic weekly
30	5	1	*	*	root	periodic monthly

# time zone change adjustment for wall cmos clock,
# does nothing, if you have UTC cmos clock.
# See adjkerntz(8) for details.
1,31	0-5	*	*	*	root	adjkerntz -a
# Every 12 hours handle backing up the local configuration data to/from ifs
7	*/12	*	*	*	root	/usr/sbin/isi_store_state 12

# Log our virtual memory statistics
10	*	*	*	*	root	/usr/sbin/isi_log_vm

# Log mbuf usage
*/10	*	*	*	*	root	/usr/sbin/isi_log_mbuf
0	0	*	*	*	root	/usr/libexec/locate.updatedb

# Isilon FSA result expiration. Prevent spurious errors by using a lock file
# to keep instances on different nodes from interfering with each other.
30	23	*	*	*	root	/usr/bin/lockf -t 0 -s -k /ifs/.ifsvar/run/isi_fsa_tool.clean.lock /usr/sbin/isi_fsa_tool clean

# Isilon SmartConnect
# Uncomment next to rebalance dynamic IPs(every 15 minutes in the setting)
#*/15	*	*	*	*	root	/usr/bin/killall -USR1 isi_dnsiq_d

# Isilon firmware check
13	1	*	*	*	root	/usr/libexec/isilon/isi_firmware_check --delay=300; /usr/bin/isi firmware status --save

# Remove old Anti-Virus scan records daily
1	2	*	*	*	root	/usr/bin/isi avscan report purge

# Monthly cluster status notification
0       0       1       *       *	root	isi_ropc /usr/bin/isi_celog/celog_send_events.py -l info 400090001

# Weekly updates for the ESRS helth alerts
37	2	*	*	0	root	/usr/bin/isi_weekly_esrs_health_alert

# Every hour check the SmartPools licensing, set the 
# efs.bam.layout.disk_pool_global_force_spill accordingly, and start a SP job
# if one has never run (and we have initialized the smartpools config)
13  *   *   *   *   root    /usr/sbin/isi_smartpools_cron

# Once per week, run a bootdisk read test to make sure we are ready to mirror
# to a new bootdisk if necessary
10	2	*	*	6	root	/usr/libexec/isilon/isi_bootdisk_read_test
