一键收集HAF日志
HAF一键收集日志功能,打包log_directory目录下所有日志,打包后会默认放到“/home/omm/haf-install/haf-target/logs/log_collection.tar”。
主机节点不支持日志收集功能。
卸载节点log_directory的配置在安装运行路径下的haf.conf文件中。如“/home/omm/haf-install/haf-target/etc/haf.conf”。
- 卸载节点命令:
/home/omm/haf-install/haf-target/tools/haf-tool collect
Collect successfully, the output package is /home/omm/haf-install/haf-target/logs/log_collection.tar
以卸载节点的SmartKit日志收集为例。
- 选择“命令执行”,单击“添加”。
- 编辑任务内容,单击“保存”。
参数
内容
任务名称
一键收集打包日志
运行目录
/
执行命令
/home/omm/haf-install/haf-target/tools/haf-tool collect
- 选择“文件传输”,单击“添加”。
通过SmartKit下载日志前,必须经过客户授权才能进行下载。
- 编辑任务内容,单击“保存”。
参数
内容
任务名称
收集打包日志到本地
传输方向
从远端主机传至本地
本地路径
本地安装包所在的目录
远端路径
/home/omm/haf-install/haf-target/logs/log_collection.tar
远端路径日志的根目录为安装时haf_target_install.conf中log_directory字段的内容,默认为haf-target/logs。
父主题: 运行和维护HAF