search cancel

How do I remove inactive elements?

book

Article ID: 15856

calendar_today

Updated On:

Products

CA Infrastructure Management CA Performance Management - Usage and Administration

Issue/Introduction

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



How do I remove inactive elements and components? 

Environment

Release: 3.7,21.2,21.2
Component:

Resolution

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

Instructions to run the script.


1. cd /opt/IMDataAggregator/scripts

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

a) Versions 20.2.x and earlier:

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

b) A) Versions 21.2.1 and later

./cleanupComponents.sh -test -inactive  <url to delete from>

 <url to delete from> should include the protocol, hostname, and port, example:

https://dahostname:8582

In a default installation the protocol will be http and the port 8581

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

a) Versions 20.2.x and earlier:

./cleanupComponents.sh -inactive <DA_HOST_NAME>

b) A) Versions 21.2.1 and later

./cleanupComponents.sh -inactive <url to delete from>

 <url to delete from> should include the protocol, hostname, and port, example:

https://dahostname:8582

In a default installation the protocol will be http and the port 8581


Additional Information

Run the script with no arguments to see the usage.