[root@joshi db_1]# /u01/app/oracle/product/19.3.0/db_1/bin/tfactl status
WARNING - TFA Software is older than 180 days. Please consider upgrading TFA to the latest version.
.---------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+-------+---------------+------+-------+------------+----------------------+------------------+
| joshi | RUNNING | 1872 | 23953 | 18.1.0.0.0 | 18100020171203222424 | COMPLETE |
'-------+---------------+------+-------+------------+----------------------+------------------'
Download the latest TFA from the Oracle site.
Autonomous Health Framework (AHF) - Including TFA and ORAchk/EXAChk (Doc ID 2550798.1)
e.g.
./ahf_setup [-ahf_loc install_dir] [-data_dir data_dir]
Once installation is complete TFA will be automatically started.
ORAchk/EXAchk can be started to run automatic compliance checks with the command: orachk -autostart or exachk -autostart
[root@joshi AHF]# ls -ltrh
total 344M
-rw-r--r--. 1 oracle oinstall 344M Jan 6 16:47 AHF-LINUX_v20.4.0.zip
[root@joshi AHF]# unzip AHF-LINUX_v20.4.0.zip
Archive: AHF-LINUX_v20.4.0.zip
inflating: README.txt
inflating: ahf_setup
[root@joshi AHF]# ls -ltrh
total 694M
-rwxr-xr-x. 1 root root 350M Dec 15 00:57 ahf_setup
-rw-r--r--. 1 root root 848 Dec 15 01:00 README.txt
-rw-r--r--. 1 oracle oinstall 344M Jan 6 16:47 AHF-LINUX_v20.4.0.zip
[root@joshi AHF]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_204000_19813_2021_01_06-16_53_20.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.4.0 Build Date: 202012141017
TFA is already installed at : /u01/app/oracle/tfa/joshi/tfa_home
Installed TFA Version : 181000 Build ID : 20171203222424
Default AHF Location : /u01/app/oracle/tfa
Do you want to install AHF at [/u01/app/oracle/tfa] ? [Y]|N : Y
AHF Location : /u01/app/oracle/tfa
[ERROR] : AHF-00014: AHF Location /u01/app/oracle/tfa is not owned by root in directory hierarchy
[root@joshi AHF]#
Solution;
When prompted, choose /opt file-system which is owned by root.
[root@joshi AHF]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_204000_21319_2021_01_06-16_55_05.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.4.0 Build Date: 202012141017
TFA is already installed at : /u01/app/oracle/tfa/joshi/tfa_home
Installed TFA Version : 181000 Build ID : 20171203222424
Default AHF Location : /u01/app/oracle/tfa
Do you want to install AHF at [/u01/app/oracle/tfa] ? [Y]|N : N
Please Enter new AHF Location : /opt
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
AHF Data Directory : /opt/oracle.ahf/data
Shutting down TFA : /u01/app/oracle/tfa/joshi/tfa_home
Copying TFA Data Files from /u01/app/oracle/tfa/joshi/tfa_home
Uninstalling TFA : /u01/app/oracle/tfa/joshi/tfa_home
Do you want to add AHF Notification Email IDs ? [Y]|N : N
Extracting AHF to /opt/oracle.ahf
Configuring TFA Services
Copying TFA Data Files to AHF
Discovering Nodes and Oracle Resources
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 |
+-------+---------------+-------+-------+------------+----------------------+
| joshi | RUNNING | 25380 | 20020 | 20.4.0.0.0 | 20400020201214101756 |
'-------+---------------+-------+-------+------------+----------------------'
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/joshi/diag |
'-----------------+---------------------------------'
Starting orachk scheduler from AHF ...
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Moving /tmp/ahf_install_204000_21319_2021_01_06-16_55_05.log to /opt/oracle.ahf/data/joshi/diag/ahf/
[root@joshi AHF]#
[root@joshi AHF]# tfactl status
.----------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+-------+---------------+-------+-------+------------+----------------------+------------------+
| joshi | RUNNING | 25380 | 20020 | 20.4.0.0.0 | 20400020201214101756 | COMPLETE |
'-------+---------------+-------+-------+------------+----------------------+------------------'
[root@joshi AHF]#
TFA has been successfully upgraded.
root@joshi AHF]# tfactl print status
.----------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+-------+---------------+-------+-------+------------+----------------------+------------------+
| joshi | RUNNING | 25380 | 20020 | 20.4.0.0.0 | 20400020201214101756 | COMPLETE |
'-------+---------------+-------+-------+------------+----------------------+------------------'
[root@joshi AHF]# tfactl toolstatus
.------------------------------------------------------------------.
| TOOLS STATUS - HOST : joshi |
+----------------------+--------------+--------------+-------------+
| Tool Type | Tool | Version | Status |
+----------------------+--------------+--------------+-------------+
| Development Tools | orachk | 20.2.2.0.0 | DEPLOYED |
| | oratop | 14.1.2 | DEPLOYED |
+----------------------+--------------+--------------+-------------+
| Support Tools Bundle | darda | 2.10.0.R6036 | DEPLOYED |
| | oswbb | 8.3.2 | NOT RUNNING |
| | prw | 12.1.13.11.4 | NOT RUNNING |
+----------------------+--------------+--------------+-------------+
| TFA Utilities | alertsummary | 20.2.2.0.0 | DEPLOYED |
| | calog | 20.2.2.0.0 | DEPLOYED |
| | dbcheck | 18.3.0.0.0 | DEPLOYED |
| | dbglevel | 20.2.2.0.0 | DEPLOYED |
| | grep | 20.2.2.0.0 | DEPLOYED |
| | history | 20.2.2.0.0 | DEPLOYED |
| | ls | 20.2.2.0.0 | DEPLOYED |
| | managelogs | 20.2.2.0.0 | DEPLOYED |
| | menu | 20.2.2.0.0 | DEPLOYED |
| | param | 20.2.2.0.0 | DEPLOYED |
| | ps | 20.2.2.0.0 | DEPLOYED |
| | pstack | 20.2.2.0.0 | DEPLOYED |
| | summary | 20.2.2.0.0 | DEPLOYED |
| | tail | 20.2.2.0.0 | DEPLOYED |
| | triage | 20.2.2.0.0 | DEPLOYED |
| | vi | 20.2.2.0.0 | DEPLOYED |
'----------------------+--------------+--------------+-------------'
Note :-
DEPLOYED : Installed and Available - To be configured or run interactively.
NOT RUNNING : Configured and Available - Currently turned off interactively.
RUNNING : Configured and Available.
[root@joshi AHF]# tfactl -help
Usage : tfactl <command> [options]
commands : compliance|celldiagcollect|applypatch|querypatch|rollbackpatch|startahf|stopahf|statusahf|uninstall|version|showrepo|import|set|get|unset|setupload|getupload|unsetupload|checkupload|upload|setpassword|unsetpassword|checkpassword|setresourcelimit|getresourcelimit|unsetresourcelimit|printresourcestats
For detailed help on each command use: tfactl <command> -h
Usage : /bin/tfactl <command> [options]
commands:diagcollect|collection|analyze|ips|run|start|stop|enable|disable|status|print|access|purge|directory|host|receiver|set|toolstatus|uninstall|diagnosetfa|syncnodes|setupmos|upload|availability|rest|events|search|changes|isa|blackout|rediscover|modifyprofile|refreshconfig|generatecerts|get|version|floodcontrol
For detailed help on each command use:
/bin/tfactl <command> -help
No comments:
Post a Comment