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

tfactl purge Command Parameters

ParameterDescription
tfaPurges collections and log files of the TFA component.
compliancePurges collections and log files of the compliance component.
collectionsPurges collections of the passed component.
-tfaPurge collections for the TFA component. Only supported with collections.
oswatcherPurges files from the oswatcher tool directory.
managelogsPurges files from the managelogs tool directory.
supporttoolsPurges files from all the support tools directory except from oswatcher and managelogs.
-older n [ h | d ]Purges files older than n hours or days.
-dryrunLists files that would be purged without purging the files.

Example 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.