17.1 Managing Automatic Diagnostic Repository Log and Trace Files

Use the managelogs command to manage Automatic Diagnostic Repository log and trace files.

The -purge command option removes files managed by Automatic Diagnostic Repository. This command clears files from “ALERT”, "INCIDENT", "TRACE", "CDUMP", "HM", "UTSCDMP", "LOG" under diagnostic destinations. The -purge command also provides details about the change in the file system space.

If the diagnostic destinations contain large numbers of files, then the command runs for a while. Check the removal of files in progress from the corresponding directories.

To remove files, you must have operating system privileges over the corresponding diagnostic destinations.

To manage Automatic Diagnostic Repository log and trace files:

  1. To limit purge, or show operations to only files older than a specific time:
    $ tfactl managelogs -older nm|h|d Files from past 'n' [d]ays or 'n' [h]ours or 'n' [m]inutes
    For example:
    $ tfactl managelogs -purge -older 30d -dryrun 
    
    $ tfactl managelogs -purge -older 30d
  2. To get an estimate of how many files are removed and how much space is freed, use the –dryrun option:
    For example:
    $ tfactl managelogs -purge -older 30d -dryrun
  3. To remove files and clean disk space:
    For example:
    $ tfactl managelogs -purge -older 30d 
    
    $ tfactl managelogs -purge -older 30d –gi
    
    $ tfactl managelogs -purge -older 30d -database
    
  4. To view the space usage of individual diagnostic destinations:
    For example:
    $ tfactl managelogs -show usage
    
    $ tfactl managelogs -show usage –gi
    
    $ tfactl managelogs -show usage -database
    

Related Topics