auditclean

This command cleans the audit database by removing old data.

Syntax

Enter the command using the syntax shown below. Available options are shown in brackets.

zosadmin auditclean --dayskept= [--grid=] [--table=] 

Options

When you add an option, use the syntax in the command line as shown above (where options are shown in their long form). Short and long options for this command are listed below.

-d, --dayskept <value>

Specify the number of days of history kept in the database (0 removes all).

-g, --grid <value>

Specify a different grid (by ID). Use ‘*’ to match all. Include the single quotes only in a shell environment.

-t, --table <value>

Specify the table (workflow, actions). Default is workflow.

-v, --verbose

Turn on verbose output during this operation.

-V, --debug

Turn on debug output during this operation.

-h, --help

Display a help message for this operation.

Examples

Example 1

To clean up all records older than 7 days for the logged in grid, use the following command:

zosadmin auditclean --dayskept=7

Example 2

To clean up all records older than 7 days from all servers stored in the audit database, use the following command:

zosadmin auditclean --dayskept=7 --gridId=*