前言
- redhat 7
- redhat 7集成了sosreport不需要再安装了。如果没有的可以用yum安装。
sosreport在github上
https://github.com/sosreport/sos
用途
使用sosreport收集系统日志和其他调试信息。
执行sosreport命令
$ sosreport -a --report
sosreport (version 3.0)
This command will collect diagnostic and configuration information from
this Red Hat Enterprise Linux system and installed applications.
An archive containing the collected information will be generated in
/var/tmp and may be provided to a Red Hat support representative.
Any information provided to Red Hat will be treated in accordance with
the published support policies at:
https://access.redhat.com/support/
The generated archive may contain data considered sensitive and its
content should be reviewed by the originating organization before being
passed to any third party.
No changes will be made to system configuration.
Press ENTER to continue, or CTRL-C to quit.
Please enter your first initial and last name [localhost]:
Please enter the case number that you are generating this report for:
Running plugins. Please wait ...
Running 71/71: yum...
Creating compressed archive...
Your sosreport has been generated and saved in:
/var/tmp/sosreport-localhost-20190822094536.tar.xz
The checksum is: 8b9dc601d949a6e8b276fceabaf99f85
Please send this file to your support representative.
输入命令后一路回车。生成的文件存于目录/var/tmp
。