Friday, October 5, 2012

Deleting Tivoli Performance Analyzer Historical Collections ( Performance Analyzer )

Simple script to delete the historical collections being set up on ITPA.

This was tested on ITM/ITPA 623FP1 and should work for Unix and Linux platforms.

Make relevant changes for the path and the tacmd teps login prompts. ( in my case - there is no password for user sysadmin )


#!/bin/bash

DOMCODE=KP3
export PATH=$PATH:/opt/IBM/ITM/bin:.

tacmd tepslogin -s `hostname`  -u sysadmin -p ' '

tacmd histdeletecollection  -a "Disk_Health"
tacmd histdeletecollection -a "System_Health"
tacmd histdeletecollection -a "CPU_Utilization_LT_Status"
tacmd histdeletecollection -a "Disk_Utilization_LT_Status"
tacmd histdeletecollection -a "Mem_Utilization_LT_Status"
tacmd histdeletecollection -a "Net_Traffic_In_LT_Status"
tacmd histdeletecollection -a "Net_Traffic_Out_LT_Status"
tacmd histdeletecollection -a "CPU_Utilization_LT_Fcast"
tacmd histdeletecollection -a "Disk_Utilization_LT_Fcast"
tacmd histdeletecollection -a "Mem_Utilization_LT_Fcast"
tacmd histdeletecollection -a "Net_Traffic_In_LT_Fcast"
tacmd histdeletecollection -a "Net_Traffic_Out_LT_Fcast"

tacmd histdeletecollection -a "CPU_Utilization_NLT_Status"
tacmd histdeletecollection -a "CPU_Utilization_NLT_Fcast"
tacmd histdeletecollection -a "Mem_Utilization_NLT_Status"
tacmd histdeletecollection -a "Mem_Utilization_NLT_Fcast"
tacmd histdeletecollection -a "Disk_Utilization_NLT_Status"
tacmd histdeletecollection -a "Disk_Utilization_NLT_Fcast"
tacmd histdeletecollection -a "Net_Traffic_In_NLT_Status"
tacmd histdeletecollection -a "Net_Traffic_In_NLT_Fcast"
tacmd histdeletecollection -a "Net_Traffic_Out_NLT_Status"
tacmd histdeletecollection -a "Net_Traffic_Out_NLT_Fcast"

No comments:

Post a Comment