您好,登錄后才能下訂單哦!
sosreport命令用于收集系統配置及架構信息并輸出診斷文檔
2018年04月24日 15:05:55 涼風何處去 閱讀數 1252
要運行sosreport,需要安裝sos 包。sos包是大多是linux的默認安裝包中的一部分。如果因為某種原因沒有安裝,那么運行下面的yum命令來安裝sos 包 :
# 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.
免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。