Parameters
Parameter
Description
--help
,
-h
(Optional) Displays help for using the
command.
--components
,
-c
(Optional) Specifies the list of components,
separated by comma. The values are
gi|
database|dcs
For example,
gi,dcs
.
--olderthan
,
-o
(Optional) Cleans logs older than specified
time interval. Default is 30 if it is not
specified.
--unit
,
-u
(Optional) Unit for the
--olderthan
parameter. Default is
Day
if it is not specified.
Example 13-91 Creating Jobs to Purge Logs
To create jobs to purge logs:
# odacli create-logcleanjob
Job details
----------------------------------------------------------------
ID: e03d90b5-41dd-45e0-8b7a-1480d6d7f86f
Description: log file cleanup
Status: Created
Created: July 25, 2018 8:06:56 PM UTC
Message:
Task Name Start Time End Time Status
----------------------------------------
----------------------------------- -------------
# ./odacli describe-job -i e03d90b5-41dd-45e0-8b7a-1480d6d7f86f
Job details
----------------------------------------------------------------
ID: e03d90b5-41dd-45e0-8b7a-1480d6d7f86f
Description: log file cleanup
Status: Success
Created: July 25, 2018 8:06:56 PM UTC
Chapter 13
Log Commands
13-98
Summary of Contents for Database Appliance X6-2-HA
Page 15: ...Index xv...