Friday, August 15, 2014

ADRCI
 
 -- purge trace, using 
      purge -age 8640 -type TRACE 
         1440 (minutes in one day) * 6 = 8640 minutes = 6 days


reconfig_ardci.sh

for i in `adrci exec="show homes"`;do
adrci << EOF
set home $i
       set control (SHORTP_POLICY = 168)
       set control (LONGP_POLICY = 168)
       purge -age 60 -type alert
       purge -age 60 -type incident
       purge -age 60 -type trace
       purge -age 60 -type cdump
       purge -age 60 -type hm
       purge -age 60 -type  UTSCDMP
show control
EOF
Done


purge_listener.sh


for i in `adrci exec="show homes"|grep listener`;do
echo $i
echo "adrci exec=\"set home $i;show control;purge\""
adrci exec="set home $i;show control;purge";
done