Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Script help

Status
Not open for further replies.

rockies

MIS
Sep 24, 2001
25
US
I had script that works as below for automatic reboot which start at 3.00 o'clock and sysbackup start at 5.00 o'clock
for all server. I wana some modification as below.
I wana join this and make it at the same time . OR

First Reboot Second intergrity check( To check that machine is up and all deamon ( e.g batabase , webserver or automount) are up and working then starts Third sysbackup.
so is there any ways we can add some thing that works simultaneously


Below is the existing script of our all server :--

#ident "@(#)root 1.19 98/07/06 SMI" /* SVr4.0 1.1.3.1 */
#
# The root crontab should be used to perform accounting data collection.
# =====================================================================
# Mins \\\\\\\\\\\\//\\\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\\/|
#(0-60)) \\\\\\\\\//\\\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\|
# \\\\\\//\\\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\\|
# | Hrs \\\//\\\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\\\|
# | (0-23) \\\\\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\\\\|
# | | \\\\\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\\\\\|
# | | Day-of-mo \\\\\\\\\\\//\\\\\\\\\\\\\\\\\//\\\\\\|
# | | (1-31) \\\\\\\\//\\\\\\\\\\\\\\\\\//\\\\\\\|
# | | | \\\\\//\\\\\\\\\\\\\\\\\//\\\\\\\\|
# | | | Month \\//\\\\\\\\\\\\\\\\\//\\\\\\\\\|
# | | | (1-12) \\\\\\\\\\\\\\\\\\//\\\\\\\\\\|
# | | | | \\\\\\\\\\\\\\\//\\\\\\\\\\\|
# | | | | Day-of-wk \\\\\\\\\\\\//\\\\\\\\\\\\|
# | | | | (0-6) \\\\\\\\\//\\\\\\\\\\\\\|
# | | | | | \\\\\\//\\\\\\\\\\\\\\|
# | | | | | CMD \\\//\\\\\\\\\\\\\\\|
# | | | | | | \\\\\\\\\\\\\\\\\\|
# =====================================================================
10 3 * * 0,4 /etc/cron.d/logchecker
10 3 * * 0 /usr/lib/newsyslog
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
#
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
#
# Start of new day message
0 0 * * * echo "`date`: STARTING A NEW DAY" >>/var/adm/messages
0 0 * * * echo "`date`: STARTING A NEW DAY" >>/var/adm/sulog
#
# PCM Scheduled reboot
# every Saturday
0 3 * * 6 [ -x /usr/local/bin/shutdown ] && /usr/local/bin/shutdown > /dev/console 2>&1
#
# Alternate root/usr backups.
# every Saturday
0 5 * * 6 [ -x /usr/local/bin/sys_backup ] && /usr/local/bin/sys_backup > /tmp/backup.log 2>&1; cp /tmp/backup.log /usr/adm/sys_backup.log
#
# Cleanup file systems
0 5 * * * find /tmp -name sh\[0-9]\* -exec rm -f {} \; >/dev/null 2>&1
45 3 * * * find /var/tmp -mtime +7 -exec rm -f {} \; >/dev/null 2>&1
#
# Synchronize our time with a Telcordia Time Server
1 1 * * * /usr/bin/rdate timehost >/dev/null 2>/dev/null
#
# Generate "heartbeat" for uptime metrics
5,20,35,50 * * * * [ -x /usr/local/bin/uptime.poll ] && /usr/local/bin/uptime.poll
#
# Purge email on first saturday of each month - mailhost only!
0 22 1-7 * * [ `date +\%w` = 6 ] && /usr/local/bin/mboxcln.ksh -L > /tmp/OUT.mboxcln 2>&1
#
# Send pcmadm collection data to collection host
30 23 * * * [ -x /usr/local/bin/lclt.pl ] && /usr/local/bin/lclt.pl > /dev/null 2>&1
#
26 * * * * /opt/abars/ulimit.sh 10000000 JOURNAL


Let me know...
rockies
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top