Step 1.
Download latest version of TFACTL from Doc ID 2550798.1
Step 2.
Upload the downloaded zip into the server and extract it as
Run tfactl as root user
[root@jdepddb AHF]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_221000_32516_2022_05_09-08_29_04.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 22.1.0 Build Date: 202204111557
Default AHF Location : /opt/oracle.ahf
Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N : y
AHF Location : /opt/oracle.ahf
AHF Data Directory stores diagnostic collections and metadata.
AHF Data Directory requires at least 5GB (Recommended 10GB) of free space.
Please Enter AHF Data Directory : /opt/oracle.ahf
AHF Data Directory : /opt/oracle.ahf/data
Do you want to add AHF Notification Email IDs ? [Y]|N : N
Extracting AHF to /opt/oracle.ahf
Configuring TFA Services
Discovering Nodes and Oracle Resources
Successfully generated certificates.
Starting TFA Services
Created symlink from /etc/systemd/system/multi-user.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
Created symlink from /etc/systemd/system/graphical.target.wants/oracle-tfa.service to /etc/systemd/system/oracle-tfa.service.
.—————————————————————————-.
| Host | Status of TFA | PID | Port | Version | Build ID |
+———+—————+——+——-+————+———————-+
| jdepddb | RUNNING | 2192 | 36413 | 22.1.0.0.0 | 22100020220411155753 |
‘———+—————+——+——-+————+———————-‘
Running TFA Inventory…
Adding default users to TFA Access list…
.—————————————————–.
| Summary of AHF Configuration |
+—————–+———————————–+
| Parameter | Value |
+—————–+———————————–+
| AHF Location | /opt/oracle.ahf |
| TFA Location | /opt/oracle.ahf/tfa |
| Orachk Location | /opt/oracle.ahf/orachk |
| Data Directory | /opt/oracle.ahf/data |
| Repository | /opt/oracle.ahf/data/repository |
| Diag Directory | /opt/oracle.ahf/data/jdepddb/diag |
‘—————–+———————————–‘
Starting orachk scheduler from AHF …
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Do you want AHF to store your My Oracle Support Credentials for Automatic Upload ? Y|[N] :
Moving /tmp/ahf_install_221000_32516_2022_05_09-08_29_04.log to /opt/oracle.ahf/data/jdepddb/diag/ahf/
Step 3 .
Check the all installed tfatl tools status
[root@jdepddb AHF]# tfactl toolstatus
.——————————————————————.
| TOOLS STATUS – HOST : jdepddb |
+———————-+————–+————–+————-+
| Tool Type | Tool | Version | Status |
+———————-+————–+————–+————-+
| AHF Utilities | alertsummary | 22.1.0 | DEPLOYED |
| | calog | 22.1.0 | DEPLOYED |
| | dbglevel | 22.1.0 | DEPLOYED |
| | grep | 22.1.0 | DEPLOYED |
| | history | 22.1.0 | DEPLOYED |
| | ls | 22.1.0 | DEPLOYED |
| | managelogs | 22.1.0 | DEPLOYED |
| | menu | 22.1.0 | DEPLOYED |
| | orachk | 22.1.0 | DEPLOYED |
| | param | 22.1.0 | DEPLOYED |
| | ps | 22.1.0 | DEPLOYED |
| | pstack | 22.1.0 | DEPLOYED |
| | summary | 22.1.0 | DEPLOYED |
| | tail | 22.1.0 | DEPLOYED |
| | triage | 22.1.0 | DEPLOYED |
| | vi | 22.1.0 | DEPLOYED |
+———————-+————–+————–+————-+
| Development Tools | oratop | 14.1.2 | DEPLOYED |
+———————-+————–+————–+————-+
| Support Tools Bundle | darda | 2.10.0.R6036 | DEPLOYED |
| | oswbb | 22.1.0AHF | RUNNING |
| | prw | 12.1.13.11.4 | NOT RUNNING |
‘———————-+————–+————–+————-‘
Note :-
DEPLOYED : Installed and Available – To be configured or run interactively.
NOT RUNNING : Configured and Available – Currently turned off interactively.
RUNNING : Configured and Available.
· Tfactl print config status
| tfactl print config |
Check tfactl current status
| [root@jdepddb AHF]# tfactl status .———————————————————————————————–. | Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status | +———+—————+——+——-+————+———————-+——————+ | jdepddb | RUNNING | 2192 | 36413 | 22.1.0.0.0 | 22100020220411155753 | COMPLETE | ‘———+—————+——+——-+————+———————-+——————‘ |
To stop tfactl
| [root@jdepddb AHF]# tfactl stop Stopping TFA from the Command Line Stopped OSWatcher Nothing to do ! Please wait while TFA stops Please wait while TFA stops TFA-00002 Oracle Trace File Analyzer (TFA) is not running TFA Stopped Successfully Telemetry adapter is not running Successfully stopped TFA.. |
To start tfactl
| [root@jdepddb AHF]# tfactl start Starting TFA.. Waiting up to 100 seconds for TFA to be started.. . . . . . Successfully started TFA Process.. . . . . . TFA Started and listening for commands |
To disable/ enable tfactl during server restart
| [root@jdepddb AHF]# tfactl disable TFA autostart has been disabled .. [root@jdepddb AHF]# tfactl enable TFA autostart has been enabled .. |
· To Collect all diagnostic report
| [root@jdepddb AHF]# tfactl diagcollect -all TFA will collect diagnostics for the last 1 hour(s). Please enter the time of the incident [YYYY-MM-DD HH24:MI:SS], or <RETURN> to collect for the last 1 hour(s). (Q|q to Quit): The -all switch is being deprecated as collection of all components is the default behavior. TFA will continue to collect all components. Collecting data for the last 1 hours for all components… Collecting data for all nodes TFA is using system timezone for collection, All times shown in IST. Collection Id : 20220509085039jdepddb Detailed Logging at : /opt/oracle.ahf/data/repository/collection_Mon_May_09_08_50_43_IST_2022_node_all/diagcollect_20220509085039_jdepddb.log 2022/05/09 08:50:50 IST : NOTE : Any file or directory name containing the string .com will be renamed to replace .com with dotcom 2022/05/09 08:50:50 IST : Collection Name : tfa_Mon_May_09_08_50_42_IST_2022.zip 2022/05/09 08:50:51 IST : Collecting diagnostics from hosts : [jdepddb] 2022/05/09 08:50:51 IST : Scanning of files for Collection in progress… 2022/05/09 08:50:51 IST : Collecting additional diagnostic information… 2022/05/09 08:50:56 IST : Getting list of files satisfying time range [05/09/2022 07:50:50 IST, 05/09/2022 08:50:56 IST] 2022/05/09 08:51:03 IST : Collecting ADR incident files… 2022/05/09 08:54:36 IST : Completed collection of additional diagnostic information… 2022/05/09 08:54:39 IST : Completed Local Collection .———————————–. | Collection Summary | +———+———–+——+——+ | Host | Status | Size | Time | +———+———–+——+——+ | jdepddb | Completed | 18MB | 228s | ‘———+———–+——+——‘ Logs are being collected to: /opt/oracle.ahf/data/repository/collection_Mon_May_09_08_50_43_IST_2022_node_all /opt/oracle.ahf/data/repository/collection_Mon_May_09_08_50_43_IST_2022_node_all/jdepddb.tfa_Mon_May_09_08_50_42_IST_2022.zip |


Leave a Reply