CentraSite 10.5 | CentraSite Administrator’s Guide | Managing Logs | Purging Logs | Purging Logs
 
Purging Logs
Pre-requisites:
To purge logs through the CentraSite Command Line Interface, you must have the CentraSite Administrator role.
CentraSite provides a command tool named purge Logs for this purpose.
*To purge logs
*Run the command purge Logs.
The syntax is of the format: C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd purge Logs [-url <CENTRASITE-URL>] -user <USER-ID> -password <PASSWORD> [-assets <AssetName/Key(s)>] -file <CONFIG-FILE>
The input parameters are:
Parameter
Description
CENTRASITE-URL
(Optional). The URL of the CentraSite registry. Default value is http://localhost:53307.
USER-ID
The user ID of a registered CentraSite user. For example, a user who has the CentraSite Administrator role.
PASSWORD
The password for the registered CentraSite user identified by the parameter USER-ID.
Asset Name/Key (s)
The name or UUID assigned to the asset and which uniquely identifies it within the registry.
CONFIG-FILE
The absolute or relative path to the XML configuration file. If relative, the path should be relative to the location from where the command is executed.
Example (all in one line):
C:\SoftwareAG\CentraSite\utilities>CentraSiteCommand.cmd purge Logs -url "http://localhost:53307/CentraSite/CentraSite" -user "Administrator" -password "manage" -assets "MyService" -file "config.xml"
The response to this command could be:
Executing the command : purge Logs

Successfully executed the command : purge Logs
Note:
Changes to the log configuration do not affect the currently running tasks.