0% found this document useful (0 votes)
13 views2 pages

Cron Jobs and Log Management Commands

The document contains the crontab configuration on a system. It schedules various tasks to run periodically including: - Deleting files older than 120 minutes from two directories - Running backup scripts daily at 10pm and 2pm - Running Java and shell scripts periodically It also shows some commands for tailing logs, checking SSH connections, modifying RMAN settings, and changing file permissions.

Uploaded by

Rodolfo Davila
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views2 pages

Cron Jobs and Log Management Commands

The document contains the crontab configuration on a system. It schedules various tasks to run periodically including: - Deleting files older than 120 minutes from two directories - Running backup scripts daily at 10pm and 2pm - Running Java and shell scripts periodically It also shows some commands for tailing logs, checking SSH connections, modifying RMAN settings, and changing file permissions.

Uploaded by

Rodolfo Davila
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

[root@npm98vm5 ~]# crontab -l

0 */2 * * * find /var/opt/nokia/oss/global/pm/shared/content3/scheduler/export/*/


-type f -name "*.xlsx" -mmin +120 -exec rm -f {} \; > /dev/null 2>&1
0 */2 * * * find /var/opt/nokia/oss/global/pm/shared/content3/scheduler/export/*/
-type f -name "*.csv" -mmin +120 -exec rm -f {} \; > /dev/null 2>&1
39 07-20 * * * bash -lc /home/omc/df_consulta.sh > /dev/null 2>&1
58 07-20 * * * bash -lc /home/omc/[Link] > /dev/null 2>&1
*/10 * * * * java -jar /opt/cpf/cleanup/jars/[Link]
00 22 * * * bash -lc "/opt/cpf/bin/[Link] -backup archivelogs -auto" >
/dev/null 2>&1 # ID=BACKUPCRONJOB
09 14 * * * bash -lc "/opt/cpf/bin/[Link] -backup all -auto" > /dev/null
2>&1 # ID=BACKUPCRONJOB
[root@npm98vm5 ~]#

tail -f dca_stack_rc10_root.log | sed -e 's/\


(.*CHECKPOINT.*\)/\o033[32m\1\o033[39m/' -e 's/\
(.*WARNING.*\)/\o033[31m\1\o033[39m/'
tail -f dca_stack_rc7_root.log | sed -e 's/\(INFO\)/\o033[32m\1\o033[39m/' -e 's/\
(,CHECKPOINT,\)/\o033[30m\1\o033[39m/' -e 's/\(ERROR\)/\o033[31m\1\o033[39m/'
tail -f /var/log/dca/dca_stack_rc7_root*.log | sed -e 's/\
(.*CHECKPOINT.*\)/\o033[32m\1\o033[39m/' -e 's/\(.*ERROR.*\)/\o033[31m\1\o033[39m/'

netstat -tnpa | grep 'ESTABLISHED.*sshd' | wc -l

vim /etc/ssh/sshd_config

LITEF

$ORACLE_HOME/bin/rman target "sys/manager@oss" nocatalog


RMAN> change archivelog all validate;

chmod a+r /opt/WebSphere/AppClient/bin/[Link]


chmod a+r /opt/WebSphere/AppClient/properties/[Link]
chmod a+r /opt/WebSphere/AppClient/etc/*.jks
chmod a+r /opt/WebSphere/AppClient/properties/[Link]

You might also like