9.3.3.8 tfactl purge

Use the tfactl purge command to delete collections and log files from AHF components from the local node.

Syntax

tfactl purge [tfa|compliance|collections <-tfa>|oswatcher|managelogs|supporttools] -older n[h|d] [-dryrun]

Parameters

Table 9-113 tfactl purge Command Parameters

Parameter Description

tfa

Purges collections and log files of the TFA component.

compliance

Purges collections and log files of the compliance component.

collections

Purges collections of the passed component.

-tfa

Purge collections for the TFA component. Only supported with collections.

oswatcher

Purges files from the oswatcher tool directory.

managelogs

Purges files from the managelogs tool directory.

supporttools

Purges files from all the support tools directory except from oswatcher and managelogs.

-older n[h|d]

Purges files older than n hours or days.

-dryrun

Lists files that would be purged without purging the files.

Example 9-122 tfactl purge

# tfactl purge tfa -older 1h
/u01/app/giusr/oracle.ahf/data/repository/collection_Thu_Nov_23_13_31_27_CST_2023_node_all
/u01/app/giusr/oracle.ahf/data/repository/collection_Thu_Nov_23_14_33_05_CST_2023_node_all
/u01/app/giusr/oracle.ahf/data/repository/suptools/srdc/user_root/GJxkypiOn.sh
/u01/app/giusr/oracle.ahf/data/test-node/diag/acr/user_root/diag/acr/test-node/acrctl/trace/acrctl_131098.trc
 
Successfully deleted above files.
# tfactl purge oswatcher -older 12h -dryrun
 
List of files older than 12h considered for purge :
/u01/app/giusr/oracle.ahf/data/repository/suptools/test-node/oswbb/root/run_oswbb1310.log
/u01/app/giusr/oracle.ahf/data/repository/suptools/test-node/oswbb/root/archive/oswbuddy/oswbb_buddy131098.gz
# tfactl purge -older 1h
/u01/app/giusr/oracle.ahf/data/repository/collection_Thu_Nov_23_13_31_27_CST_2023_node_all
/u01/app/giusr/oracle.ahf/data/repository/collection_Thu_Nov_23_14_33_05_CST_2023_node_all
/u01/app/giusr/oracle.ahf/data/repository/suptools/srdc/user_root/GJxkypiOn.sh
/u01/app/giusr/oracle.ahf/data/test-node/diag/acr/user_root/diag/acr/test-node/acrctl/trace/acrctl_131098.trc
/u01/app/giusr/oracle.ahf/data/test-node/orachk/user_root/output/.input_131098
/u01/app/giusr/oracle.ahf/data/test-node/orachk/user_root/output/orachk_131098
/u01/app/giusr/oracle.ahf/data/test-node/orachk/user_root/output/orachk_131098.zip
/u01/app/giusr/oracle.ahf/data/test-node/orachk/user_root/output/orachk_debug131098.log
 
Successfully deleted above files.