sosreport工具

sosreport

作用:收集系统配置和linux机器上的诊断信息,如正在运行的内核版本、加载的模块、系统服务配置文件、系统日志等。

  1. 安装

    服务器系统:yum  -y  install  sos
    桌面系统:sudo  apt  isntall  sosreport
  2. 使用
    在终端下输入sosreport命令,按几次回车即可;
    file

  3. sosreport常用参数说明

    -l 列出所有可用的插件及其选项
    -n 禁用指定的插件
    -e 启用指定的插件
    -a 对于所有的插件启用,将所有布尔选项设置为True
    -v 增加日志记录的详细程度
    --no-report 禁用HTML报告写入
    --config-file CONFIG 指定备用配置文件

    日志路径:/var/tmp/sosreport-xxxx-xxxxxxxxxx.tar.xz
    file

发表回复 0

Your email address will not be published.