How do I remove inactive elements?

Document ID : KB000015856
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

When adding and removing monitoring profiles from collections you can end up with large amounts of inactive components/elements.

Question:

How do I remove inactive elements and components? 

Answer:

There is  a script to remove inactive elements and components from the database shipped with CA Performance Management 3.2.

Instructions to run the script.

1. cd /opt/IMDataAggregator/scripts

2. Run the sctipt in test modeto see what will be removed(example): 

./cleanupComponents.sh -test -inactive <DA_HOST_NAME> 

3. Run script without test flag to remove components(example).

./cleanupComponents.sh -inactive <DA_HOST_NAME>