KingbaseES Collector

KingbaseES collector script

Each inspection starts with a bash collector that runs on the target DB host. The script is zero-dependency, writes plain text, and is safe to run in production.

Download

kes_check.sh · 20 KB

⬇ Download

Or with curl

curl -O https://dbaclaw.com/collector/kes.sh
chmod +x kes.sh

Requirements

Run it

export KINGBASE_HOME=/home/kingbase/install/kingbase
./kes_check.sh 54321 system /home/kingbase/userdata/data \
  > kes_$(hostname -s)_54321_$(date +%Y%m%d).txt 2>&1

# 三参数:port / user / data_dir。脚本读 $KINGBASE_HOME/bin/ksql。
# 每个节点各跑一次,把所有 .txt 一起上传。

Output

建议把 stdout 重定向到带主机名 + 端口 + 日期的文件:

kes_<hostname>_<port>_<YYYYMMDD>.txt

例:kes_demo-kes_54321_20260621.txt。上传到 KingbaseES 巡检页即可生成报告(兼容旧 .log)。

Next

→ Upload the collector output to the KingbaseES workspace