快上网专注成都网站设计 成都网站制作 成都网站建设
成都网站建设公司服务热线:028-86922220

网站建设知识

十年网站开发经验 + 多家企业客户 + 靠谱的建站团队

量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决

sosreport命令用于收集系统配置

sosreport命令用于收集系统配置及架构信息并输出诊断文档
2018年04月24日 15:05:55 凉风何处去 阅读数 1252
要运行sosreport,需要安装sos 包。sos包是大多是linux的默认安装包中的一部分。如果因为某种原因没有安装,那么运行下面的yum命令来安装sos 包 :

成都创新互联长期为上1000+客户提供的网站建设服务,团队从业经验10年,关注不同地域、不同群体,并针对不同对象提供差异化的产品和服务;打造开放共赢平台,与合作伙伴共同营造健康的互联网生态环境。为英吉沙企业提供专业的成都网站设计、成都网站建设、外贸网站建设英吉沙网站改版等技术服务。拥有10年丰富建站经验和众多成功案例,为您定制开发。

# yum install sos -y

生成报告

打开终端输入sosreport命令:

# sosreport

这条命令正常情况下会在几分钟里完成。根据本地配置,在某些情况下,某些选项可能需要更长的时间才能完成。一旦完成,sosreport将在/ tmp目录目录中生成一个压缩文件。不同版本使用不同的压缩方案( gz,bz2,或xz)。该文件应提供给红帽的支持代表(在开放的情况下通常作为附件)。

注意:sosreport需要root权限才能运行。

[root@linuxprobe ~]# sosreport
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 [linuxprobe.com]:此处敲击回车来确认主机编号
Please enter the case number that you are generating this report for:此处敲击回车来确认主机编号
Running plugins. Please wait ...
Running 70/70: yum...
Creating compressed archive...
Your sosreport has been generated and saved in:

/tmp/sosreport-iZuf66ojri88mynksjw6vjZ-20180424145944.tar.xz

The checksum is: 79436cdf791327040efde48c452c6322
Please send this file to your support representative.


分享标题:sosreport命令用于收集系统配置
分享路径:http://6mz.cn/article/jsdedd.html

其他资讯