Skip to Main Content

Japanese

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Corrective Action to delete old logs

User535612-OCSep 9 2014 — edited Oct 7 2014

I am trying to use corrective action to delete the old log files from OEL 6.3 host and it is not working.

I gave the following command in the Host->Monitoring->Metric and Collection setting->Total Disk Usage->Warning->Single Operation->Warning

find /u01/app/oracle/admin/soa_domain/mserver/soa_domain/servers/WLS_OSB1/logs -mtime +1 -a ! -name "access.log" -a ! -name "WLS_OSB1-diagnostic.log" -a ! -name "WLS_OSB1.log" -a ! -name "WL S_OSB1.out" -exec rm -f {} \;

I also gave the credential for the Named Credentials.

It does not work

I also tried a different option

I gave the following command in the Host->Monitoring->Metric and Collection setting->Total Disk Usage->Warning->Single Operation->Critical

and selected multi tasking and gave the following command

cd /u01/app/oracle/admin/soa_domain/mserver/soa_domain/servers/WLS_OSB1/logs

rm -rf WLS_OSB1.out0* WLS_OSB1.log0*

Both of them are not working...

Need help...

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 4 2014
Added on Sep 9 2014
1 comment
1,156 views