db2diag.log file delete on Linux and DB2

24 May,2010 by Tom Collins

I've been running this code via a cron job on Linux, which handles removing db2diag files , up to 3 days old.

db2diag -A

find db2_instance_home/db2dump -mtime +3 -exec rm -f {} \;

On some servers there is a requirement to archive the db2diag file , which I add a "cp" command prior to the above

Author: Rambler(http://www.dba-db2.com)

Share:

Verify your Comment

Previewing your Comment

This is only a preview. Your comment has not yet been posted.

Working...
Your comment could not be posted. Error type:
Your comment has been saved. Comments are moderated and will not appear until approved by the author. Post another comment

The letters and numbers you entered did not match the image. Please try again.

As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

Having trouble reading this image? View an alternate.

Working...

Post a comment on db2diag.log file delete on Linux and DB2

Comments are moderated, and will not appear until the author has approved them.


dba-db2.com | DB2 Performance Tuning | DBA DB2:Everything | FAQ | Contact | Copyright