Download AHF (including TFA) from below support note:
Autonomous Health Framework (AHF) - Including TFA and ORAchk/EXAChk (Doc ID 2550798.1)
[root@ol8 stage]# mkdir -p /opt/oracle.ahf/data
[root@ol8 stage]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_204000_77285_2021_01_23-13_25_39.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.4.0 Build Date: 202012141017
Default AHF Location : /opt/oracle.ahf
Do you want to install AHF at [/opt/oracle.ahf] ? [Y]|N :
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/data
AHF Data Directory : /opt/oracle.ahf/data
Do you want to add AHF Notification Email IDs ? [Y]|N :
Enter Email IDs separated by space : luodonghua@gmail.com
Extracting AHF to /opt/oracle.ahf
Configuring TFA Services
Discovering Nodes and Oracle Resources
Successfully generated certificates.
Starting TFA Services
Created symlink /etc/systemd/system/multi-user.target.wants/oracle-tfa.service → /etc/systemd/system/oracle-tfa.service.
Created symlink /etc/systemd/system/graphical.target.wants/oracle-tfa.service → /etc/systemd/system/oracle-tfa.service.
.--------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID |
+------+---------------+-------+-------+------------+----------------------+
| ol8 | RUNNING | 78714 | 20285 | 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/ol8/diag |
'-----------------+---------------------------------'
Starting orachk scheduler from AHF ...
AHF binaries are available in /opt/oracle.ahf/bin
AHF is successfully installed
Moving /tmp/ahf_install_204000_77285_2021_01_23-13_25_39.log to /opt/oracle.ahf/data/ol8/diag/ahf/
[root@ol8 stage]# systemctl status oracle-tfa.service
● oracle-tfa.service - Oracle Trace File Analyzer
Loaded: loaded (/etc/systemd/system/oracle-tfa.service; enabled; vendor preset: disabled)
Active: active (running) since Sat 2021-01-23 13:26:36 +08; 4min 10s ago
Main PID: 78605 (init.tfa)
Tasks: 51 (limit: 58824)
Memory: 195.7M
CGroup: /system.slice/oracle-tfa.service
├─78605 /bin/sh /etc/init.d/init.tfa run >/dev/null 2>&1 </dev/null
├─78714 /opt/oracle.ahf/jre/bin/java -server -Xms64m -Xmx128m -Djava.awt.headless=true -Ddisable.checkForUpdat>
└─85455 /bin/sleep 30
Jan 23 13:26:51 ol8.oci.net init.tfa[78605]: OSWatcher is already deployed at /opt/oracle.ahf/tfa/ext/oswbb
Jan 23 13:26:51 ol8.oci.net init.tfa[78605]: Cannot find valid Non root user to run OSWatcher
Jan 23 13:28:32 ol8.oci.net su[82566]: (to oracle) root on none
Jan 23 13:28:32 ol8.oci.net su[82566]: pam_unix(su:session): session opened for user oracle by (uid=0)
Jan 23 13:28:32 ol8.oci.net su[82566]: pam_unix(su:session): session closed for user oracle
Jan 23 13:28:32 ol8.oci.net su[82575]: (to oracle) root on none
Jan 23 13:28:32 ol8.oci.net su[82575]: pam_unix(su:session): session opened for user oracle by (uid=0)
Jan 23 13:28:32 ol8.oci.net su[82575]: pam_unix(su:session): session closed for user oracle
Jan 23 13:28:32 ol8.oci.net su[82584]: (to oracle) root on none
Jan 23 13:28:32 ol8.oci.net su[82584]: pam_unix(su:session): session opened for user oracle by (uid=0)
[root@ol8 stage]# /opt/oracle.ahf/orachk/orachk -autostart
Successfully copied Daemon Store to Remote Node
orachk is using TFA Scheduler. TFA PID: 78714
Daemon log file location is : /opt/oracle.ahf/data/ol8/orachk/user_root/output/orachk_daemon.log
Once autostart has been run ORAchk/EXAchk will perform compliance checks for:
- The most severe problems at 2am, once a day
- All known problems once a week at 3am on a Sunday
- Send an email to the notification addresses, provided during install of any check failures and a diff since last run
[root@ol8 bin]# /opt/oracle.ahf/bin/tfactl
tfactl> help
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
tfactl> status
.---------------------------------------------------------------------------------------------.
| Host | Status of TFA | PID | Port | Version | Build ID | Inventory Status |
+------+---------------+-------+-------+------------+----------------------+------------------+
| ol8 | RUNNING | 78714 | 20285 | 20.4.0.0.0 | 20400020201214101756 | COMPLETE |
'------+---------------+-------+-------+------------+----------------------+------------------'
tfactl> toolstatus
.------------------------------------------------------------------.
| TOOLS STATUS - HOST : ol8 |
+----------------------+--------------+--------------+-------------+
| 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.
tfactl> alertsummary
Output from host : ol8
------------------------------
Reading /u01/app/oracle/diag/rdbms/orcl/orcl/trace/alert_orcl.log
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
------------------------------------------------------------------------
21 12 2020 22:47:50 Database started
------------------------------------------------------------------------
21 12 2020 22:48:54 Database started
------------------------------------------------------------------------
21 12 2020 22:49:32 Database started
------------------------------------------------------------------------
21 12 2020 23:01:22 Database started
------------------------------------------------------------------------
21 12 2020 23:10:32 Database started
------------------------------------------------------------------------
23 12 2020 23:20:42 Database started
------------------------------------------------------------------------
24 12 2020 12:09:53 Database started
------------------------------------------------------------------------
09 01 2021 08:45:04 Database started
------------------------------------------------------------------------
12 01 2021 15:05:28 Database started
------------------------------------------------------------------------
14 01 2021 21:06:10 Database started
------------------------------------------------------------------------
15 01 2021 15:10:32 Database started
------------------------------------------------------------------------
15 01 2021 16:17:04 Database started
------------------------------------------------------------------------
15 01 2021 16:19:52 Database started
------------------------------------------------------------------------
16 01 2021 17:39:34 Database started
------------------------------------------------------------------------
20 01 2021 10:51:02 Database started
------------------------------------------------------------------------
20 01 2021 14:26:00 Database started
------------------------------------------------------------------------
20 01 2021 15:26:47 Database started
------------------------------------------------------------------------
20 01 2021 15:30:56 Database started
------------------------------------------------------------------------
23 01 2021 10:50:35 Database started
Summary: Ora-600=0, Ora-7445=0, Ora-700=0
~~~~~~~
Warning: Only FATAL errors reported
Warning: These errors were seen and NOT reported
Ora-00313 Ora-00312 Ora-27037 Ora-00376 Ora-01110 Ora-06512 Ora-06510
Ora-65054
tfactl> diagcollect
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):
Collecting data for the last 1 hours for all components...
Collecting data for all nodes.
Collection Id : 20210123133700ol8
Detailed Logging at : /opt/oracle.ahf/data/repository/collection_Sat_Jan_23_13_37_01_08_2021_node_all/diagcollect_20210123133700_ol8.log
2021/01/23 13:37:07 SGT : NOTE : Any file or directory name containing the string .com will be renamed to replace .com with dotcom
2021/01/23 13:37:07 SGT : Collection Name : tfa_Sat_Jan_23_13_37_01_+08_2021.zip
2021/01/23 13:37:07 SGT : Collecting diagnostics from hosts : [ol8]
2021/01/23 13:37:07 SGT : Collecting additional diagnostic information...
2021/01/23 13:37:07 SGT : Getting list of files satisfying time range [01/23/2021 12:37:07 SGT, 01/23/2021 13:37:07 SGT]
2021/01/23 13:37:11 SGT : Collecting ADR incident files...
2021/01/23 13:37:22 SGT : Completed collection of additional diagnostic information...
2021/01/23 13:37:26 SGT : Completed Local Collection
.---------------------------------.
| Collection Summary |
+------+-----------+-------+------+
| Host | Status | Size | Time |
+------+-----------+-------+------+
| ol8 | Completed | 390kB | 19s |
'------+-----------+-------+------'
Logs are being collected to: /opt/oracle.ahf/data/repository/collection_Sat_Jan_23_13_37_01_08_2021_node_all
/opt/oracle.ahf/data/repository/collection_Sat_Jan_23_13_37_01_08_2021_node_all/ol8.tfa_Sat_Jan_23_13_37_01_+08_2021.zip
tfactl> exit
Fix installation error due to missing package.
[root@ol8 stage]# ./ahf_setup
AHF Installer for Platform Linux Architecture x86_64
AHF Installation Log : /tmp/ahf_install_204000_74272_2021_01_23-13_21_48.log
Starting Autonomous Health Framework (AHF) Installation
AHF Version: 20.4.0 Build Date: 202012141017
PERL : /bin/perl
[ERROR] : AHF-00074: Perl Modules not found : Net::Ping
[root@ol8 stage]# yum install perl-Net-Ping.noarch
No comments:
Post a Comment