Data Aggregator includes a script to delete retired components. Retired components are components that no longer exist on physical devices. The presence of excessive numbers of retired components can impact user interface performance. To delete retired components, understand how to use this script.
Note: To automate the removal of retired components, see the Data Aggregator Administration Using REST Web Services Guide.
Follow these steps:
./remove_retired_items.sh
The script parameters are listed and are described.
Example: Return a Total Number of Retired Components
./remove_retired_items.sh -h host_name
Specifies the Data Aggregator host name to connect to.
The total number of retired components is displayed.
Example: Filter the List of Retired Components By a Specific Criterion
./remove_retired_items.sh
The script parameters are listed and are described.
./remove_retired_items.sh -h host_name -a device_IP_address
./remove_retired_items.sh -h host_name -t filter_by_days_old_from_current_time
For example, the following command deletes retired components that are less than ten days old from the current time:
./remove_retired_items.sh -h host_name -t 10
Example: Delete a Large Number of Retired Components
You can easily delete all of the retired components where the total exceeds 100,000:
./remove_retired_items.sh -h host_name -o ouputfile
Is the output of all of the retired components. The output is a .csv file.
For example, the following command outputs a list of all of the retired components. The .csv file format includes the device item ID, the device display name, the retired component ID, and the retired component display name:
./remove_retired_items.sh -h my_host_name -o myretired.csv
./remove_retired_items.sh -h host_name -o ouputfile -c Yes
Is the output of all of the retired components. The output is a .csv file.
Confirms the deletion of all retired components.
For example, the following command deletes all of the retired components:
./remove_retired_items.sh -h my_host_name -o myretired.csv -c Yes
Consider further details about deleting retired components:
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|