obdiag-multi-cluster

Discover obdiag cluster profiles and switch the active session via cluster_config_path.

161|40|Updated Nov 22, 2022
One-click install
npx skills add https://github.com/oceanbase/obdiag --skill obdiag-multi-cluster
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: obdiag-multi-cluster
Source: https://github.com/oceanbase/obdiag/tree/main/plugins/agent/skills/obdiag-multi-cluster
Command: npx skills add https://github.com/oceanbase/obdiag --skill obdiag-multi-cluster

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

这项技能解决在 OceanBase obdiag 工具中进行多集群管理时的困难:需要发现可用集群、查看当前会话所属集群、以及通过 cluster_config_path 指定目标集群进行切换。

Core Features & Use Cases

  • 多集群发现:list_obdiag_clusters 可以列出 ~/.obdiag/ 下的集群配置文件及其短名。
  • 当前会话管理:show_current_cluster 显示当前活跃的 config_path 与解析结果。
  • 会话切换与定向:/use 或 cluster_config_path 用于将后续操作定向到指定集群。

使用场景包括在同一对话中对不同集群进行诊断和诊断分析,或为不同集群在会话间快速切换配置。

Quick Start

切换到目标集群的短名以设定活跃会话配置,并在需要时通过 cluster_config_path 指定完整路径。

Frequently Asked Questions about obdiag-multi-cluster

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage multiple OceanBase clusters in a single obdiag session?

Switch between multiple OceanBase clusters in a single obdiag session by discovering available cluster profiles under ~/.obdiag/ and using the /use command to direct subsequent diagnostic operations to a specific target cluster.

How can I check which OceanBase cluster is currently active for obdiag?

Check the currently active OceanBase cluster for obdiag by using the show_current_cluster command, which displays the active config_path and its resolved cluster configuration details for your ongoing session.

How do I list all available OceanBase cluster configurations for obdiag?

List all available OceanBase cluster configurations for obdiag by running the list_obdiag_clusters command, which scans the ~/.obdiag/ directory and displays cluster configuration files alongside their short names.

Can I direct obdiag operations to a specific cluster using a configuration path?

Yes, you can direct obdiag operations to a specific cluster by setting the cluster_config_path variable with the full path to the target cluster profile, ensuring all following diagnostic tools execute with cluster awareness.

Do I need to specify the full cluster_config_path every time I run an obdiag command?

You do not need to specify the full cluster_config_path every time; once you switch to a target cluster using its short name, the active session configuration automatically applies to all subsequent obdiag operations.

What are the limitations of using obdiag for multi-cluster session management?

Limitations of obdiag multi-cluster session management include relying on predefined cluster configuration files located in the ~/.obdiag/ directory, meaning any cluster not registered there cannot be discovered or targeted for switching.