Please share cli command to purge logs and completed jobs older than 7 days

book

Article ID: 198345

calendar_today

Updated On:

Products

CA Workload Automation DE - Business Agents (dSeries) CA Workload Automation DE DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries) CA Workload Automation DE - Scheduler (dSeries)

Issue/Introduction

We are in the process of deleting logs and completed Jobs that are older than 7. We are planning to run a job that does this activity everyday. Kindly advise on the cli commands that can achieve this.

Environment

Release : 12.2

Component : CA WORKLOAD AUTOMATION DE (DSERIES)

Resolution

These are the CLI commands to purge logs and completed jobs older than 7 days;

Purge server tracelogs older than 7 days:

PURGELOG age(7)

or

PURGELOG 7

Purge completed jobs older than 7 days:

PURGECOMPLETEDJOBS olderthan(‘now less 7 days’)