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
Ref:Jack Vamvas
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
Ref:Jack Vamvas(