OceanBase logo

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Resources

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS

OceanBase Cloud

OceanBase Database

Tools

Connectors and Middleware

QUICK START

OceanBase Cloud

OceanBase Database

BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Company

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

International - English
中国站 - 简体中文
日本 - 日本語
Sign In
Start on Cloud

OceanBase

A unified distributed database ready for your transactional, analytical, and AI workloads.

Product Overview
DEPLOY YOUR WAY

OceanBase Cloud

The best way to deploy and scale OceanBase

OceanBase Enterprise

Run and manage OceanBase on your infra

TRY OPEN SOURCE

OceanBase Community Edition

The free, open-source distributed database

OceanBase seekdb

Open source AI native search database

Customer Stories

Real-world success stories from enterprises across diverse industries.

View All
BY USE CASES

Mission-Critical Transactions

Global & Multicloud Application

Elastic Scaling for Peak Traffic

Real-time Analytics

Active Geo-redundancy

Database Consolidation

Comprehensive knowledge hub for OceanBase.

Blog

Live Demos

Training & Certification

Documentation

Official technical guides, tutorials, API references, and manuals for all OceanBase products.

View All
PRODUCTS
OceanBase CloudOceanBase Database
ToolsConnectors and Middleware
QUICK START
OceanBase CloudOceanBase Database
BEST PRACTICES

Practical guides for utilizing OceanBase more effectively and conveniently

Learn more about OceanBase – our company, partnerships, and trust and security initiatives.

About OceanBase

Partner

Trust Center

Contact Us

Start on Cloud
编组
All Products
    • Databases
    • iconOceanBase Database
    • iconOceanBase Cloud
    • iconOceanBase Tugraph
    • iconInteractive Tutorials
    • iconOceanBase Best Practices
    • Tools
    • iconOceanBase Cloud Platform
    • iconOceanBase Migration Service
    • iconOceanBase Developer Center
    • iconOceanBase Migration Assessment
    • iconOceanBase Admin Tool
    • iconOceanBase Loader and Dumper
    • iconOceanBase Deployer
    • iconKubernetes operator for OceanBase
    • iconOceanBase Diagnostic Tool
    • iconOceanBase Binlog Service
    • Connectors and Middleware
    • iconOceanBase Database Proxy
    • iconEmbedded SQL in C for OceanBase
    • iconOceanBase Call Interface
    • iconOceanBase Connector/C
    • iconOceanBase Connector/J
    • iconOceanBase Connector/ODBC
    • iconOceanBase Connector/NET
icon

OceanBase Cloud Platform

V4.3.1

    Download PDF

    OceanBase logo

    The Unified Distributed Database for the AI Era.

    Follow Us
    Products
    OceanBase CloudOceanBase EnterpriseOceanBase Community EditionOceanBase seekdb
    Resources
    DocsBlogWhite PaperLive DemosTraining & CertificationTicket
    Company
    About OceanBaseTrust CenterLegalPartnerContact Us
    Follow Us

    © OceanBase 2026. All rights reserved

    Cloud Service AgreementPrivacy PolicySecurity
    Contact Us
    Document Feedback
    1. Documentation Center
    2. OceanBase Cloud Platform
    3. V4.3.1
    iconOceanBase Cloud Platform
    V 4.3.1
    Databases
    • OceanBase Database
    • OceanBase Cloud
    • OceanBase Tugraph
    • Interactive Tutorials
    • OceanBase Best Practices
    Tools
    • OceanBase Cloud Platform
    • OceanBase Migration Service
    • OceanBase Developer Center
    • OceanBase Migration Assessment
    • OceanBase Admin Tool
    • OceanBase Loader and Dumper
    • OceanBase Deployer
    • Kubernetes operator for OceanBase
    • OceanBase Diagnostic Tool
    • OceanBase Binlog Service
    Connectors and Middleware
    • OceanBase Database Proxy
    • Embedded SQL in C for OceanBase
    • OceanBase Call Interface
    • OceanBase Connector/C
    • OceanBase Connector/J
    • OceanBase Connector/ODBC
    • OceanBase Connector/NET
    • V 4.4.2
    • V 4.3.6
    • V 4.3.5
    • V 4.3.4
    • V 4.3.3
    • V 4.3.2
    • V 4.3.1
    • V 4.3.0
    • V 4.2.2
    • V 4.0.0 and earlier

    OCP-Agent O&M Script Instructions

    Last Updated:2026-04-14 07:46:03  Updated
    Share
    What is on this page
    Environment
    Command line format
    Examples
    Query the usage help of the tool
    Start OCP-Agent
    Stop OCP-Agent
    Restart OCP-Agent
    View the installation information of OCP-Agent

    folded

    Share

    The O&M tool ocp_agentctl is built in the software package of OCP-Agent of OCP V3.2.0, to help you install, start, stop, and uninstall OCP-Agent. After you install the software package of OCP-Agent, you can run commands to operate OCP-Agent.

    Environment

    After you install OCP-Agent, you can find ocp_agentctl in the OCP-Agent directory: /home/admin/ocp_agent/bin.

    ocp_agentctl is an executable file. You can execute the file on the CLI for the O&M and management of OCP-Agent. You can directly execute ocp_agentctl under the /home/admin/ocp_agent/bin directory.

    <main id="notice" type='notice'>
    <h4>Notice</h4>
    <p><li>The execution logs of <code>ocp_agentctl</code> will be stored in the <code>agentctl.log</code> file under the <code>/home/admin/ocp_agent/log</code> directory.</li><li>The ocp_agentctl file can be executed only for the O&M of the local OCP-Agent, and the O&M of a remote OCP-Agent is not supported.</li></p>
    </main>
    

    Command line format

    ocp_agentctl [COMMAND] [OPTIONS]
    
    • COMMAND specifies an operation command such as the start or stop command.

    • OPTIONS specifies additional options, including:

      • -help: This option can be simplified as "-h" and is used to query the usage help.

    Examples

    Query the usage help of the tool

    • Run the following command to query the usage help of the tool:

      ./ocp_agentctl -h
      

      The usage of this tool and supported operation commands are returned.

    • Query the usage help of a command

      ./ocp_agentctl config -h
      

      The usage of the config command and its applicable objects are returned.

    Start OCP-Agent

    ./ocp_agentctl start
    

    ocp_agentd, ocp_monagent, and ocp_mgragent will also be started.

    Stop OCP-Agent

    ./ocp_agentctl stop
    

    ocp_agentd, ocp_monagent, and ocp_mgragent will also be stopped, and the host status changes to offline. This will cause the loss of OCP monitoring metric data and SQL diagnostic data, and OceanBase log alerts will become unavailable.

    Restart OCP-Agent

    ./ocp_agentctl restart
    

    View the installation information of OCP-Agent

    ./ocp_agentctl info
    

    The name, version, architecture, and description of OCP-Agent are returned.

    Previous topic

    OCP-Agent processes
    Last

    Next topic

    Overview
    Next
    What is on this page
    Environment
    Command line format
    Examples
    Query the usage help of the tool
    Start OCP-Agent
    Stop OCP-Agent
    Restart OCP-Agent
    View the installation information of OCP-Agent