External Database Cleanup Utility
The External Database Cleanup Utility makes it easy for administrators to manage external database growth, thereby ensuring that your system continues to perform at the optimum level. The utility lets you create jobs that monitor the external database on an ongoing basis, deleting old records automatically as they expire. This ensures that the external database has adequate space and that system performance is not impacted by unchecked database growth.
The External Database Cleanup Utility can be used to manage external database growth for the following IM and Presence Service features, each of which relies on the external database:
-
Persistent Chat High Availability
-
Managed File Transfer
-
Message Archiver
Interactions
The following interactions apply:
-
Records that are deleted from the database are deleted without archiving.
-
You can run the Database Cleanup utility in offline mode.
-
A persistent chat room configuration option is provided to override the cluster-wide setting for retention durations. This allows chat room owners to customize the settings within a controlled range. This is dependent on Jabber client changes to enable this menu option.
Stored Procedures
The External Database Cleanup Utility uses the following stored procedures to delete records
-
tc_msgarchive_auto_cleanup
-
tc_timelog_auto_cleanup
-
aft_log_auto_cleanup
-
im_auto_cleanup
Run the External Database Cleanup Utility
Use this procedure to run the External Database Cleanup Utility to delete expired records from the external database. You can run a manual cleanup to complete a one-time deletion of records from the database or you can configure the system to monitor and delete records from the external database automatically.
Procedure
Step 1 |
Log into Cisco Unified CM IM and Presence Administration on the database publisher node. |
||
Step 2 |
Choose . |
||
Step 3 |
Click Clear External DB. |
||
Step 4 |
Do one of the following:
|
||
Step 5 |
Set the Number of Days that you want to go back for file deletion. For example, if you enter 90, the system deletes records that are older than 90 days. |
||
Step 6 |
Click Update Schema to create the Indexes and stored procedures for the database.
|
||
Step 7 |
Set the Number of Days that you want to go back for file deletion. For example, if you enter 90, the system deletes records that are older than 90 days. |
||
Step 8 |
In the Feature Tables section, select each feature for which you want to clean records:
|
||
Step 9 |
Click Submit Clean-up Job.
|
What to do next
If you just ran a manual cleanup, repeat the procedure and select Automatic Clean-up to set the utility to monitor and delete records automatically.
Troubleshooting the External Database Cleanup Utility
If you run into issues with the external database utility:
-
Make sure that the database publisher node can connect to the external database and that the database has been provisioned. You can verify this on the database publisher node by selecting
. -
For PostgreSQL databases, make sure that the IM and Presence database publisher node has full access permission to all of the other configured external databases.
Logs for the External Database Cleanup Tool are available under admin logs: /var/log/active/tomcat/logs/cupadmin/log4j/