Use the delete "not present" script on the data aggregator to remove not present components based on number of days.
search cancel

Use the delete "not present" script on the data aggregator to remove not present components based on number of days.

book

Article ID: 442973

calendar_today

Updated On:

Products

Network Observability CA Performance Management

Issue/Introduction

I have four hundred thousand not present items on y data aggregator and I am concerned they are causing a performance problem.  How can I use the remove_not_present_items.sh script to remove 'not present' components that are more than 18 months old?

Environment

Dx NetOps Performance Management (Data Aggregator) any version

Resolution

You can do the following from the DA:

  1. cd /opt/IMDataAggregator/scripts/
  2. Run the script with the following flags:
    ./remove_not_present_items.sh -h http://<DA>:8581 -t 395 -f -S


The -f (force deletion) and -S (skip showing items) flags will force the deletion of all items retired more than 395 days ago across all devices without requiring manual "Yes/No" keyboard prompts.  The -t designates the number of days (-t <filter by days old from current time ie. 1 for 1 Day since retirement>])

 

Additional Information

There should be no need for the script unless you want to get rid of 'not present' components that may still have data.  You can also review the following documentation that details how to: Configure the Internal Not-Present Component Cleanup Process