0
点赞
收藏
分享

微信扫一扫

Linux下安装AHF


TFA :收集日志的工具
ORAchk/EXAchk : 检查系统的工具
AHF :Oracle在2019年10月18日发布自治健康框架Autonomous Health Framework (AHF) 19.3,将ORAchk,EXAchk,TFA三种诊断工具合并入AHF,作为一个单一的安装软件被称作AHF。AHF可以使用root或者非root用户安装,而且所有的命令行指令和之前版本一样,ORAchk,EXAchk,TFA被放置在AHF_LOC/bin的目录下。——AHF需要定期更新。

[root@node02:/tmp]$ unzip AHF-LINUX_v21.2.3.zip
[root@node02:/tmp]$ ./ahf_setup

AHF Installer for Platform Linux Architecture x86_64

AHF Installation Log : /tmp/ahf_install_212300_464_2021_10_08-15_12_14.log

Starting Autonomous Health Framework (AHF) Installation

AHF Version: 21.2.3 Build Date: 202109091658

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

AHF Data Directory : /opt/oracle.ahf/data

Do you want to add AHF Notification Email IDs ? [Y]|N : Y

Enter Email IDs separated by space : sa.haibo.he@oracle.com

Login using root is disabled in sshd config. Installing AHF only on Local Node

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 |
+--------+---------------+------+-------+------------+----------------------+
| node02 | RUNNING | 2230 | 35345 | 21.2.3.0.0 | 21230020210909165804 |
'--------+---------------+------+-------+------------+----------------------'

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/node02/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] : N

Moving /tmp/ahf_install_212300_464_2021_10_08-15_12_14.log to /opt/oracle.ahf/data/node02/diag/ahf/

收集数据

[oracle@node02:/opt/oracle.ahf/bin]$ ./tfactl diagcollect -from "10/08/2021 10:00:00" -to "10/08/2021 18:00:00"
Collecting data for all nodes

TFA is using system timezone for collection, All times shown in CST.
Scanning files from oct/08/2021 10:00:00 to oct/08/2021 18:00:00

Collection Id : 20211008181755node02

Detailed Logging at : /opt/oracle.ahf/data/repository/collection_Fri_Oct_08_18_17_57_CST_2021_node_all/diagcollect_20211008181755_node02.log
2021/10/08 18:18:01 CST : NOTE : Any file or directory name containing the string .com will be renamed to replace .com with dotcom
2021/10/08 18:18:01 CST : Collection Name : tfa_Fri_Oct_08_18_17_56_CST_2021.zip
2021/10/08 18:18:01 CST : Collecting diagnostics from hosts : [node02]
2021/10/08 18:18:01 CST : Collecting additional diagnostic information...
2021/10/08 18:18:01 CST : Scanning of files for Collection in progress...
2021/10/08 18:18:06 CST : Getting list of files satisfying time range [10/08/2021 10:00:00 CST, 10/08/2021 18:00:00 CST]
2021/10/08 18:18:12 CST : Collecting ADR incident files...
2021/10/08 18:19:33 CST : Completed collection of additional diagnostic information...
2021/10/08 18:19:38 CST : Completed Local Collection

.----------------------------------.
| Collection Summary |
+--------+-----------+------+------+
| Host | Status | Size | Time |
+--------+-----------+------+------+
| node02 | Completed | 13MB | 97s |
'--------+-----------+------+------'

Logs are being collected to: /opt/oracle.ahf/data/repository/collection_Fri_Oct_08_18_17_57_CST_2021_node_all
/opt/oracle.ahf/data/repository/collection_Fri_Oct_08_18_17_57_CST_2021_node_all/node02.tfa_Fri_Oct_08_18_17_56_CST_2021.zip

版权声明:本文为博主原创文章,未经博主允许不得转载。

oracle,linux

举报

相关推荐

0 条评论