2 Star 5 Fork 4

OceanBase / oceanbase-diagnostic-tool

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
gather_admin.md 2.33 KB
一键复制 编辑 原始数据 按行查看 历史
靖顺 提交于 2023-03-13 15:50 . odt 1.0.0 release

gather admin命令

通过ob_admin工具能解析clog和slog文件,并对所选时间范围内的clog和slog进行一键收集。

usage: ./obdiag gather clog [-h] [--from datetime datetime] [--to datetime datetime] [--since 'n'<m|h|d>] [--store_dir store_dir]
                                 [--ob_install_dir ob_install_dir] [--mode mode] --cluster_name cluster_name [--encrypt encrypt]

Example: ./obdiag gather clog --cluster_name demo1 --from 2022-06-16 18:25:00 --to 2022-06-16 18:30:00

执行结果:

./obdiag gather clog --cluster_name demo1 --from 2023-01-16 18:25:00 --to 2023-01-17 01:30:00

Gather clog Summary:
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
| Node           | Status    | Size    | Time   | PackPath                                                             |
+================+===========+=========+========+======================================================================+
| 192.168.2.11   | Completed | 15.762K | 6 s    | gather_pack_20230118002457/clog_192.168.2.11  _20230118002458.zip    |
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
usage: ./obdiag gather slog [-h] [--from datetime datetime] [--to datetime datetime] [--since 'n'<m|h|d>] [--store_dir store_dir]
                                 [--ob_install_dir ob_install_dir] [--mode mode] --cluster_name cluster_name [--encrypt encrypt]

Example: ./obdiag gather clog --cluster_name demo1 --from 2022-06-16 18:25:00 --to 2022-06-16 18:30:00

执行结果:

./obdiag gather slog --cluster_name demo1 --from 2023-01-16 18:25:00 --to 2023-01-17 01:30:00

Gather slog Summary:
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
| Node           | Status    | Size    | Time   | PackPath                                                             |
+================+===========+=========+========+======================================================================+
| 192.168.2.11   | Completed | 15.762K | 6 s    | gather_pack_20230118002457/slog_192.168.2.11  _20230118002458.zip    |
+----------------+-----------+---------+--------+----------------------------------------------------------------------+
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/oceanbase/oceanbase-diagnostic-tool.git
git@gitee.com:oceanbase/oceanbase-diagnostic-tool.git
oceanbase
oceanbase-diagnostic-tool
oceanbase-diagnostic-tool
master

搜索帮助

344bd9b3 5694891 D2dac590 5694891