OdiPurgeLog [-FROMDATE=<fromdate>] [-TODATE=<todate>] [-CONTEXT_CODE=<context_code>] [-USER_NAME=<user_name>] [-AGENT_NAME=<agent_name>] [-PURGE_REPORTS=<0|1>] [-SESSION_STATUS=<D|E|M>]
Allows the purge of the execution logs.
If -FROMDATE is omitted, the purge is done starting with the oldest session.
If -TODATE is omitted, the purge is done up to the current date
If both parameters are omitted, the whole log is purged.
Note: Running, waiting or queued sessions cannot be purged.
Parameters |
Mandatory |
Description |
---|---|---|
-FROMDATE=<fromdate> |
No |
Starting date for the purge, using the format yyyy/MM/dd hh:mm:ss. |
-TODATE=<todate> |
No |
Ending date for the purge, using the format yyyy/MM/dd hh:mm:ss. |
-CONTEXT_CODE=<context_code> |
No |
Purges only sessions executed in <context_code> |
-USER_NAME=<user_name> |
No |
Purges only sessions launched by <user_name> |
-AGENT_NAME=<agent_name> |
No |
Purges only sessions executed by <agent_name> |
-PURGE_REPORTS=<0|1> |
No |
If this parameter has a value of 1, the scenario reports (appearing under the execution node of each scenario) will also be purged. |
-SESSION_STATUS=<D|E|M> |
No |
Purges only the sessions with the specified state:
If this parameter is not specified, sessions in all the states above are purged. |
OdiPurgeLog "-FROMDATE=2001/03/25 00:00:00" "-TODATE=2001/08/31 21:59:00"
OdiPurgeLog "-FROMDATE=2001/03/25 00:00:00"
OdiPurgeLog "-TODATE=2001/08/31 21:59:00"