OceanBase
English日本語简体中文
Docs Home
Products
Integrations
Release Notes

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Databases

OceanBase DatabaseOceanBase AI DatabaseOceanBase Cloud OceanSeekOceanBase Best Practices

Connectors and Middleware

OceanBase Database Proxy OceanBase Connector/C OceanBase Connector/J OceanBase Connector/ODBC OceanBase Connector/NETOceanBase Command-Line Client

Tools

OceanBase Cloud PlatformOceanBase Migration ServiceOceanBase Developer CenterOceanBase Migration AssessmentOceanBase Admin ToolOceanBase Loader and DumperOceanBase DeployerKubernetes operator for OceanBaseOceanBase Diagnostic Tool OceanBase Binlog ServiceOceanBase DataPilotOceanBase OAgent
OceanBase DatabaseOceanBase Cloud ToolsConnectors and MiddlewareLifecycle Support Policy

OceanBase Diagnostic Tool

V1.5.0
  • Overview
  • Install obdiag
  • Configure obdiag
  • Clustor monitor
    • Use obdiag to inspect an OceanBase cluster
    • Inspection metrics
  • Use obdiag to collect information
  • Use obdiag for diagnostic analysis
  • Telemetry mode
  • FAQ
  • Relase note
    • obdiag V1.5.0
    • obdiag V1.4.0
    • obdiag V1.3.0

Download PDF

Document Feedback
  1. Documentation Center
  2. OceanBase Diagnostic Tool
  3. V1.5.0

Install obdiag

Last Updated:2026-09-04 08:22:11

Environment requirements
Prerequisites
Procedure
Method 1: Use obdiag independently
Method 2: Use obdiag in combination with OBD

This topic describes how to install OceanBase Diagnostic Tool (obdiag).

Environment requirements

The server where obdiag is to be installed runs on Linux.

Prerequisites

To collect fault information, inspect a cluster, analyze logs online, and perform online end-to-end diagnostics, network access must be available between the server where obdiag is to be installed and the host of the target OceanBase cluster whose information is to be collected.

Procedure

You can use obdiag independently or in combination with OceanBase Deployer (OBD).

Method 1: Use obdiag independently

If the cluster to be diagnosed is not deployed by using OBD, you can run the following commands to install and deploy obdiag:

  • Online deployment (when Internet access is available)

    sudo yum install -y yum-utils
    sudo yum-config-manager --add-repo https://mirrors.aliyun.com/oceanbase/OceanBase.repo
    sudo yum install -y oceanbase-diagnostic-tool
    source /usr/local/oceanbase-diagnostic-tool/init.sh
    

    Note

    The online deployment method is supported on CentOS 7 and 8. If you use CentOS 9, perform the following operations for offline deployment.

  • Offline deployment (when Internet access is unavailable) Download the obdiag package from the OceanBase Download Center.

    yum install -y oceanbase-diagnostic-tool*.rpm
    source /usr/local/oceanbase-diagnostic-tool/init.sh
    
  • Deployment on a Debian-based system, such as Ubuntu Download the obdiag package from the OceanBase Download Center.

    apt-get update
    apt-get install alien -y
    alien --scripts --to-deb  oceanbase-diagnostic-tool*.rpm # Convert the RPM package to a DEB package.
    dpkg -i oceanbase-diagnostic-tool*.deb
    source /usr/local/oceanbase-diagnostic-tool/init.sh
    

Method 2: Use obdiag in combination with OBD

If the cluster to be diagnosed is deployed by using OBD, we recommend that you upgrade OBD to V2.5.0 or later. Then, you can directly run obdiag commands on OBD. For more information about the commands, see obdiag commands.

  • Online deployment (when Internet access is available)

    # Enable OBD to pull remote images.
    obd mirror enable remote
    # Deploy obdiag by using OBD.
    obd obdiag deploy
    
  • Offline deployment (when Internet access is unavailable)

    Download the obdiag package from the OceanBase Download Center.

    # Copy the downloaded obdiag package to the image repository of OBD.
    obd mirror clone oceanbase-diagnostic-tool-xxxxxxxx.rpm
    # Deploy obdiag by using OBD.
    obd obdiag deploy
    

Previous topic

Overview
Last

Next topic

Configure obdiag
Next
on this page
Environment requirements
Prerequisites
Procedure
Method 1: Use obdiag independently
Method 2: Use obdiag in combination with OBD