Crontab for Root on Zia


5 5 * * 6 /opt/services/etc/aocsyslog >/dev/null 2>&1
his rotates authlog and tacacs. The new linux box will not have authlog and tacacs should be replaced with Radius.


#       Global save
28 0 * * * (cd /opt/services/yp/etc && cp passwd shadow netgroup ethers bootparams /home/backups/Solaris/nis_files)
This should not be preserved. It is basicly unnecessary paranoia.


#       Local save
28 1 * * * (cd /opt/services/yp/etc && cp passwd shadow netgroup ethers bootparams /opt/services/backups)
This should not be preserved. It is basicly unnecessary paranoia.


2,12,22,32,42,52 * * * * /opt/local/xtacacs/etc/passwd.make >/dev/null
This should not be preserved as Radius will replace tacacs.


57 1 * * * /opt/services/etc/alias-update/ferrit.sun
This used to copy mail aliases to jansky and all the suns, but I think the only thing this script does now is the following, and I don't think even the newaliases is necessary.
  scp -q mail.aoc.nrao.edu:/etc/mail/aliases /etc/mail/aliases
  /usr/bin/newaliases > /dev/null 2>&1


#
#   06 Dec 2006 moved mknmstaff to user gmartin because root on zia
#     no longer has write access to /home/nraoweb/nrao/internal/nmstaff.dis
#
#58 2 * * * /opt/services/etc/alias-update/mknmstaff.sh >>/opt/services/etc/alias-update/mknmstaff.errs 2>&1

Here is what is in gmartin's cron
9 1 * * * /opt/services/etc/alias-update/cp_fetch >>/opt/services/etc/alias-update/fetch.errs 2>&1
40 9 * * * /opt/services/etc/alias-update/cp_fetch >>/opt/services/etc/alias-update/fetch.errs 2>&1
I don't know why this is run twice, but all it essentially does is the following, and I can't find anything on zia that needs whoiswhere.als. So it may not have to be preserved.
  cp /home/nraosoft/etc/aliases/whoiswhere.als /opt/services/etc/alias-update

0 4 * * 1-5 /opt/services/etc/Adm_Daily >/dev/null
0 9 * * 1-5 /opt/services/etc/Adm_Daily >/dev/null
0 14 * * 1-5 /opt/services/etc/Adm_Daily >/dev/null
These scripts provide no useful information anymore. They will not be preserved.
58 2 * * * /opt/services/etc/alias-update/mknmstaff.sh >>/opt/services/etc/alias-update/mknmstaff.errs 2>&1
This may need to be preserved. I am checking with Pat and George to see if it is still required. I have already edited and copied this script over to zia-new and I think it will work for root. However, I don't see the need to output into an errors file.
  58 2 * * * /opt/services/etc/alias-update/mknmstaff.sh


34 5 * * * /opt/services/etc/alias-update/ferrit.clean >/dev/null
All this does is mail any error output files from the previous ferrit scripts. If cron jobs encounter errors they should just echo them. cron will send email to the owner. This should not be preserved.


#
# 16 Jan 2000 Backups moved from arana
#
20 0 * * 1-6 /opt/services/etc/contents.backup > /var/local/backups/savevars/zia/errs 2>&1
20 23 * * 2,5 /opt/services/etc/pkgdirs.backup > /var/local/backups/savevars/zia/errs.pkgdirs 2>&1
This is Solaris system accounting stuff. It should not be preserved.


0 2,6,10,14,18,22 * * * /bin/bash -c 'rand=$RANDOM ; sleep $(($rand-($rand/300)*300)) ; [ -f /home/os_update/update ] && /home/os_update/update'
This is already handled in /etc/crontab on linux.


#
#krowe May  3 2005: rotate flexlm logfile
#
0 0 * * 0 /opt/services/etc/rotate /var/log/flexlm.log
I have added a logrotate script to zia-new. Need to check that its working.


#
#       12 May 2005  Check for WinTel trying to update zone ad.nrao.edu
#
0 11 * * * /opt/services/named/log/check_denies > /dev/null
This still happens, but do we care? Are we going to ever deal with it?


#
#krowe Feb  6 2007: update casapy every night
#
45 2 * * * /bin/bash -c '/bin/rm -f /home/os/redhat/updates/autorpm/addons-ELAS4/casapy-* && /bin/cp /home/nraosoft/sys/linux/updates/autorpm/addons-ELWS4/casapy-* /home/os/redhat/updates/autorpm/addons-ELAS4'
This will have to be preserved until the last rhel4 machine is gone.


#
#
#       GEM 20 Feb 2008   Copy AOC password file to dropbox for mknmlogon
#
30 1 * * * scp /opt/services/yp/etc/passwd dropbox:/opt/services/etc/alias-update/pw.aoc >/dev/null 2>&1
/home/dropbox/opt-services/etc/alias-update/mknmlogon.sh doesn't look like it has been run since Nov 13, 2008. This probably should not be preserved.


#
#krowe Apr 11 2008: check for closable accounts and email root about them
#
40 7 * 1 * /opt/services/etc/account_reminder.pl
This will be preserved.


#
# switz Jun 13 2008: fix the permissions in /home/asg/www/widar
#
11 6,8,10,12,14,16,18 * * * chmod -R g+w /home/asg/www/widar /home/asg/www-internal/software/sss >/dev/null 2>&1
Stephan says this is still necessary so it will be preserved.


#krowe Aug  4 2008: ypmake every 30 minutes while people are changing passwds
27,57 * * * * (cd /var/yp && /opt/local/gnu/bin/make > /dev/null)
Now that we have a unified NIS structure, this should probably be preserved so that passwd changes get propagated to other sites in a timely manner.


Content reviewed on: 19-May-2009
Reviewed by: krowe
K. Scott Rowe