cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1443
Views
5
Helpful
0
Comments
sschmidt
Cisco Employee
Cisco Employee

The following procedure is not supported by TAC, the Wireless Networking Business Unit or any other entity at Cisco.

The need to remove the .trc and .trm files and cdmp directories from Prime Infrastructure on a weekly basis is the focus of bug:

PI 1.2 - Trace files need to be rolled over on a periodic (weekly) int. 

The following script will remove the files older than 168 hours ( 7 days ).

#!/bin/bash

# Find and delete all .trc .trm and cdmp directories modified more than 168 hours ago ( 7 days )
find /opt/oracle/base/diag/rdbms/wcs/wcs/trace/*.trc -mtime +7 -exec rm -f {} \;
find /opt/oracle/base/diag/rdbms/wcs/wcs/trace/*.trm -mtime +7 -exec rm -f {} \;
find /opt/oracle/base/diag/rdbms/wcs/wcs/trace/cdmp* -mtime +7 -exec rm -rf {} \;

# Change the script to executable
# chmod +x <filename>

# add to crontab to run once a day ( 15 3 is 3:15 am )
# 15 3 * * * /root/delete_trc_trm_cdmp.sh 2>&1

 

 

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: