2 Star 5 Fork 4

OceanBase / oceanbase-diagnostic-tool

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

gather awr命令

该命令用户收集性能报告报告

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

According to the input parameters, gather the awr of the specified range (whether it is time range), compress and pack, and transmit to the specified path of
the obdiag machine.

optional arguments:
  -h, --help            show this help message and exit
  --from datetime datetime
                        specify the start of the time range. format: yyyy-mm-dd hh:mm:ss.
  --to datetime datetime
                        specify the end of the time range. format: yyyy-mm-dd hh:mm:ss.
  --since 'n'<m|h|d>    Specify time range that from 'n' [d]ays, 'n' [h]ours or 'n' [m]inutes. before to now. format: <n> <m|h|d>. example: 1h.
  --ob_install_dir ob_install_dir
                        the dir to ob log dir
  --store_dir store_dir
                        the dir to store gather result, current dir by default.
  --cluster_name cluster_name
                        cluster name.

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

执行结果:

Gather AWR Summary:
+-----------+-----------+--------+--------+----------------------------------------------------------------------------------------+
| Cluster   | Status    | Size   | Time   | PackPath                                                                               |
+===========+===========+========+========+========================================================================================+
| jingshun  | Completed | 4.602M | 29 s   | gather_pack_20220627005659/OBAWR_obcluster_jingshun_20220625160100_20220625180100.html |
+-----------+-----------+--------+--------+----------------------------------------------------------------------------------------+
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

搜索帮助