12 远程诊断代理

LTFS-LE 使用远程诊断代理 (Remote Diagnostics Agent, RDA) 来为应用程序、服务器、磁带机和磁带库收集日志文件。

概述

日志文件的质量在一定程度上取决于硬件的消息传送功能。如果日志来自磁带硬件,LTFS-LE 不会对日志文件中的信息提供任何诊断或要求硬件提供模式检测页面。LTFS-LE 也不能执行磁带机转储。必须直接通过磁带机或磁带库执行该功能。无论错误的来源是什么,LTFS-LE 都会尝试避免多次记录相同的信息。LTFS-LE 还对外部来源(文件、注册表、目录、参数)的所有值进行验证,并报告不在预期数据范围内的任何值或数据类型中的不一致项。应当可以通过 CLI 命令使用按需状态捕获功能,但这取决于 Oracle Enterprise Linux 已经提供的功能。

下载 RDA

要为 LTFS-LE 下载 RDA 工具,请执行以下步骤:

  1. 从 LTFSLE 服务器上,打开 Firefox 并登录到 "My Oracle Support" 页面。

    https://support.oracle.com

  2. 在 "Search Knowledge Base"(搜索知识库)搜索词框中,输入 remote diagnostic agent 并单击搜索图标。

    图 12-1 下载远程诊断代理

    图 12-1 的说明如下
    说明 - 图 12-1 下载远程诊断代理

  3. 从搜索结果中,选择 Remote Diagnostic Agent (RDA) – Getting Started 链接。

  4. 在 "Remote Diagnostic Agent (RDA) – Getting Started" 页面上,在 "In This Document"(本文档中)部分下,单击 Download RDA(下载 RDA)链接。

    有关不同于此文档所述的安装和运行 RDA 内容的更改信息,请参阅 Installation Instructions(安装说明)Running RDA – UNIX(运行 RDA – UNIX)链接。

  5. 从下载页面上,单击 Linux x86 (64-bit)(Linux x86(64 位))对应的链接。

    图 12-2 下载 Linux x86(64 位)

    图 12-2 的说明如下
    说明 - 图 12-2 下载 Linux x86(64 位)

  6. 在修补程序集页面上,确保选中 Linux x86_64 平台选项,然后单击 Download(下载)

  7. 在 Firefox 下载对话框中,选择 Save File(保存文件),然后单击 OK(确定)

    默认情况下,Firefox 会将该文件下载到桌面。建议您将该文件移动到 LTFS-LE 软件所下载到的位置(例如:/downloads)。

    # mv /root/Desktop/p16469241_431_Linux-x86-64.zip /downloads
    
  8. 在下载并移动文件后,提取 RDA zip 文件。

    # cd /downloads
    unzip p16469241_431_Linux-x86-64.zip
    
  9. 将目录更改为 RDA 主目录路径。

    # cd /downloads/rda
    # ls -l
    
  10. 验证 RDA 是否已正确安装。

    # ./rda.sh -cv
    

    输出示例:

    --Output--
    
    Loading the file list ...
    
    Checking the directory [D_RDA] . ...
    
    Checking the directory [D_RDA_CHK] APPS ...
    .
    No issues found
    .
    
  11. 配置 RDA 以收集 LTFS-LE 信息:

    # ./rda.sh -vSCRP OS INST LTFS
    

    按照指示对以下提示做出响应:

    Do you want RDA to collect StorageTek Linear Tape File System information (Y/N)? Hit "Return" to accept the default (Y)
    > Y
    
    Enter the Oracle WebLogic Server domain home to be used for data analysis (For example for UNIX, <BEA Home>/user_projects/domains/<Domain> or <Middleware Home>/user_projects/domains/<Domain>)> /var/opt/Oracle/Middleware/user_projects/domains/ltfsle_domain
    
    Server list for 'ltfsle_domain' domain:1  AdminServerEnter your selection, as a comma-separated list of item numbers or ranges Hit "Return" to accept the default (1)> 1
    
    Are custom scripts used to start Oracle WebLogic servers (Y/N)?Hit "Return" to accept the default (N)
    > Y
    
    Are these scripts located in the Domain home bin directory (Y/N)?Hit "Return" to accept the default (Y)
    > YDo you want RDA to capture thread dumps when a data collection module requires on-line collections (Y/N)?
    Hit "Return" to accept the default (Y)> Y
    
  12. 通过在 [DEFAULT] 部分中将 N_TAIL=1000 更改为 N_TAIL=350000 增大在 RDA 日志中收集的行数。为此,请执行以下操作:

    # cp -p output.cfg output.cfg.ORIG
    vi output.cfg
    

    找到 N_TAIL=1000 并将其更改为 N_TAIL=350000。

  13. 收集 LTFS-LE 信息:

    # ./rda.sh -vSCRP OS INST LTFS