Entry points
status, check
KINGBASEES · CLI DIAGNOSTICS
Read-only diagnostics for KES V8R6 + V9. One static binary, 17 canonical commands: a verdict, the evidence and the next step.
START WITH A QUESTION
Command examples, not captured output. Build the binary and copy it to the database host first.
kbdiag status
kbdiag check --html ./patrol.html
kbdiag lock --tree
kbdiag session <pid>
kbdiag sql topFIND YOUR STARTING POINT
status, check
session, lock, txn, progress
sql
space, object, vacuum, freeze
wal, checkpoint
repl, slots, cluster, server
LOOK · QUERY · FOLLOW
01 / LOOK
~/kbdiag status
echo $?
02 / QUERY
kbdiag session waits
kbdiag lock --tree
kbdiag sql show --id=-123
03 / FOLLOW
verify: kbdiag session 435308
Only the binary. It speaks the wire protocol itself, so it does not need ksql or any runtime; connect over the local socket as the kingbase OS user.
No. Every connection is a read-only transaction with a lock_timeout. Suggested fixes such as ROLLBACK PREPARED are printed for you to review, never executed.
KES V8R6 + V9, with SQL selected by capability. cluster checks repmgr topology separately.
Run your first checkCopy the binary to a KES V8R6 or V9 host, start with status, then save an offline report with check –html.