#--------------------------------------------------------------------
# Housekeeping script for YPS tables and logfiles
#--------------------------------------------------------------------
# ======================================
# Housekeeping of $YPSFILES directory
# Run on first day of the month on 5 am - 6 am
# ======================================
# (a) remove any records in /opt/dct/relfiles/yps/archive if it is more than 6 months old
# (b) remove any records in /opt/dct/relfiles/yps/tmp (except statistic, static, arhive)
# if it is more than 1 month old
# (c) housekeep log files in /opt/dct/relfiles/yps/data and admin directory
# up to four generations only
0 5 1 * * find /opt/dct/relfiles/yps/archive -mtime +180 -exec rm {} \;
30 5 1 * * find /opt/dct/relfiles/yps/tmp -mtime +2 -exec rm {} \;
0 6 1 * * /opt/dct/rel/yps/scripts/arch.data.admin.cron > /dev/null
# ======================================
# Housekeeping of all YPS tables
# (except yx_imp_cntr, yx_voy, yx_cntr_yd_range)
# Run on 7:00 am every day
# ======================================
#
0 7 * * * echo "/opt/dct/rel/yps/scripts/arch.all.tab.cron"|/bin/csh >> /opt/dct/relfiles/yps/admin/crontab.log
# ======================================
# Housekeeping of other YPS tables
# (i.e. yx_imp_cntr, yx_voy, yx_cntr_yd_range)
# Run on 7:30 am every day
# ======================================
#
30 7 * * * echo "/opt/dct/rel/yps/scripts/arch.import.vsl.cron"|/bin/csh >> /opt/dct/relfiles/yps/admin/crontab.log
# ======================================
# Housekeeping of YPS tables
# ======================================
# Run on 8:00 am every day
0 8 * * * echo "/opt/dct/rel/yps/scripts/arch.unknown.vsl.cron"|/bin/csh >> /opt/dct/relfiles/yps/admin/crontab.log
# HouseKeeping yx_actual_cntr every day
0 2 * * * /opt/dct/rel/yps/scripts/clearyx_actual_cntr.sc
# ======================================
# Housekeeping of DCMS Monitor
# ======================================
#
0,15,30,45 * * * * /opt/dct/rel/dcms/monitor/monitorall.sc /opt/dct/relfiles/dcms/monitor/monitor.log
0 0 * * * /export/home/ctadmin/bin/clearrelfiles.sc
0 1 * * * echo "/opt/envy/client/bin/visualworks /opt/dct/rel/ops/bin/reconcileyardstack.im ALL" | /bin/csh >> /opt/dct/relfiles/yps/admin/reconcileyardstack.log
#0 1 * * * /opt/envy/client/bin/visualworks /opt/dct/rel/ops/bin/reconcileyardstack.im ALL >> /opt/dct/relfiles/yps/admin/reconcileyardstack.log
0 4 * * * /opt/dct/rel/dcms/monitor/housekeepmonitorlog.sc
# ======================================
# Housekeeping citos_evt_log
# ======================================
30 2 * * * /opt/dct/rel/system/bin/housekeepeventlog.sc
#------------------------------------------------------------
# Housekeeping script for BPS tables and logfiles
#------------------------------------------------------------
#
# Housekeeping of BPS tables
# Run on first day of the month on 6 am
# ======================================
# disable until housekeeping duration is confirmed
#0 6 1 * * /opt/dct/rel/bps/baes/bin/cron_hkp_baesDB.sc >/dev/null
#
#
# Housekeeping of program log file
# Run on 7 am every Sunday=0 .
# ==============================
0 7 * * 0 /opt/dct/rel/bps/baes/bin/housekpFiles.sc > /dev/null
# ======================================
# Housekeeping of reconcilling yardstack
# ======================================
#
0 1 * * * csh -c '/opt/envy/client/bin/visualworks /opt/dct/rel/ops/bin/reconcileyardstack.im ALL' >> /opt/dct/relfiles/yps/admin/reconcileyardstack.log
#0 3 * * * csh -c '/opt/envy/client/bin/visualworks /opt/dct/rel/ops/bin/reconcileyardstack.im ALL' >> /opt/dct/relfiles/yps/admin/reconcileyardstack.log
# ======================================
# Restart Application Server every week
# ======================================
#
#0 1 * * 0 /home/ctadmin/bin/killcitos_process.sh;/home/ctadmin/bin/resetandresyncpo.sc;/home/ctadmin/bin/startall
# ======================================================================
# Housekeeping BPS and SYSTEM directory after EDI&Portnet Upgrade 200103
# ======================================================================
#
0 5 * * * find /opt/dct/relfiles/bps/baes/data/basender/xml_file -mtime +6 -exec rm {} \;
1 5 * * * find /opt/dct/relfiles/bps/baes/data/basender/log_file -mtime +6 -exec rm {} \;
2 5 * * * find /opt/dct/relfiles/bps/baes/data/codes_rcvr -mtime +6 -exec rm {} \;
3 5 * * * find /opt/dct/relfiles/bps/baes/data/bth_appln_rcvr -mtime +6 -exec rm {} \;
4 5 * * * find /opt/dct/relfiles/bps/baes/data/dcms2mq_dispatcher/logfiles -mtime +6 -exec rm {} \;
5 5 * * * find /opt/dct/relfiles/bps/baes/data/dcms2mq_dispatcher/xml/sent -mtime +6 -exec rm {} \;
6 5 * * * find /opt/dct/relfiles/bps/baes/data/opern_jobs_rcvr/log -mtime +6 -exec rm {} \;
7 5 * * * find /opt/dct/relfiles/bps/baes/data/vsl_particulars_rcvr -mtime +6 -exec rm {} \;
8 5 * * * find /opt/dct/relfiles/bps/baes/data/vsl_reacvn_rcvr -mtime +6 -exec rm {} \;
9 5 * * * find /opt/dct/relfiles/bps/baes/data/vsl_schd_rcvr -mtime +6 -exec rm {} \;
10 5 * * * find /opt/dct/relfiles/system/cntr/PlngCntrDtlAdapter/Log -mtime +6 -exec rm {} \;
11 5 * * * find /opt/dct/relfiles/system/mqc -mtime +6 -exec rm {} \;
12 5 * * * find /opt/dct/relfiles/edi/logs -mtime +15 -exec rm {} \;
分享到:
相关推荐
一直很喜欢写unix shell script, 因为写那么一点点东西可以有那么多效果,投入小,产出大,爽啊. 在写IBM AIX K Shell script时,感觉不那么友好,主要是有一些格式细节要求比较严格,不太习惯,后来写惯了也就好了,下面的...
LINUX与UNIX SHELL编程指南
Linux与Unix shell编程指南(完整高清版)Linux与Unix shell编程指南(完整高清版)Linux与Unix shell编程指南(完整高清版)Linux与Unix shell编程指南(完整高清版)Linux与Unix shell编程指南(完整高清版)Linux...
and aims to get the reader up, running and creating robust shell scripts for real tasks and situations as quickly as possible - shell scripts that will work on any mainstream UNIX or Linux machine. ...
Unix Shell by Example.zip Unix Shell by Example.zip
Wicked Cool Shell Scripts: 101 Scripts for Linux, Mac OS X, and Unix Systems <br>This cookbook of useful, customizable, and fun scripts gives you the tools to solve common Linux, Mac OS X and UNIX ...
Linux与UNIX Shell编程指南.pdf
Build options into the shell script to give the end user more flexibility on the command line Replicate data using rsync Create snapshot-style backups using Dirvish Work with records files to parse...
LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 LINUX UNIX SHELL 编程 ...
Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX GurusUNIX expert Randal K. Michael guides you through every detail of writing shell scripts to automate specific...
UNIX shell 程序编写 参考文档。
Sams Unix Shell Programming
精通 LINUX & UNIX Shell 程序设计.pdf
Mastering Unix Shell Scripting: Bash, Bourne, and Korn Shell Scripting for Programmers, System Administrators, and UNIX Gurus /by Randal K. Michael. UNIX expert Randal K. Michael guides you through ...
UNIX shell范例精解(第4版),清华大学出版社,详细介绍了UNIX系统中各种shell的编程方法
用Linux/UNIX Shell编程语言设计系统监控程序.pdf
第一部分 shell 第1章 文件安全与权限 1 1.1 文件 1 1.2 文件类型 2 1.3 权限 2 1.4 改变权限位 4 1.4.1 符号模式 4 1.4.2 chmod命令举例 5 1.4.3 绝对模式 5 1.4.4 chmod命令的其他例子 6 1.4.5 可以选择使用符号...
身為 UNIX 系統管理者除了要熟悉 UNIX 指令外,我們最好學會幾種 scripts 語言,例如 shell script 或 perl。學會 script 語言後,我們就可以將日常的系統管理工作寫成一支執行檔,如此一來,在管理系統時就可以更加...
hp unix shell编程,可以通过该文档学习hp unix shell编程,以及了解其常用的shell命令