How to set up the purge ?
You can configure the purge from the Console or in the Collector configuration file.
1 - Right-click on the Monitored Object.
2 - Select the menu "Modify Parameters" > "Define Collector parameters..."
3 - In the section "Long Term History Monthly Purge" you can enable or disable the purge:
<Please see attached file for image>
class="jive-image" alt="ycwztqb7qcq6.png" height="480" src="https://communities.ca.com/servlet/JiveServlet/downloadImage/2-242067946-163161/ycwztqb7qcq6.png" style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;" title="Image: https://us.v-cdn.net/5019921/uploads/editor/9e/ycwztqb7qcq6.png" width="685">
This menu also allows you to configure the number of months to keep, to shcedule the day and time of execution.
4 - Click on <Please see attached file for image>
class="jive-image" alt="c2in83zs6xg6.png" height="22" src="https://communities.ca.com/servlet/JiveServlet/downloadImage/2-242067946-163162/c2in83zs6xg6.png" style="font-weight: inherit; font-style: inherit; font-size: 15px; font-family: inherit;" width="73"> to validate the new parameter.
5 - Restart the Collector.
- In the Collector Configuration file:
1 - Edit the Collector Configuration file
2 - Modify the parameter "EnableLongTermHistPurge" in [LONG_TERM_HIST_PURGE_MONTHLY]:
[LONG_TERM_HIST_PURGE_MONTHLY] EnableLongTermHistPurge
#Format : Boolean
#Optional/Mandatory : Optional
#Activation of long term history live purge if set to 1
#Set by default to "0" in the Agent configuration file (disabled) #Appeared in v5.30
#To apply new parameters an Agent Collector must be restarted
You can also configure the number of months to keep:
[LONG_TERM_HIST_PURGE_MONTHLY] NumberOfMonthsToKeep
#Format : Integer
#Optional/Mandatory : Optional
#Number of months of long term history to keep
#Set by default to "3" in the agent configuration file
#Appeared in v5.30
How to schedule the execution?
[LONG_TERM_HIST_PURGE_MONTHLY] ExecPurge_DayOfMonth
#Format : Integer
#Optional/Mandatory : Optional
#Position of the day in month for monthly purge execution
#Set by default to "1" in the Agent configuration file (first day of the month)
#Appeared in v5.30
3 - Save your changes.
4 - Restart the Collector.