溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶(hù)服務(wù)條款》

sosreport命令用于收集系統(tǒng)配置

發(fā)布時(shí)間:2020-06-23 21:33:59 來(lái)源:網(wǎng)絡(luò) 閱讀:188 作者:千千網(wǎng)絡(luò)1 欄目:系統(tǒng)運(yùn)維

sosreport命令用于收集系統(tǒng)配置及架構(gòu)信息并輸出診斷文檔
2018年04月24日 15:05:55 涼風(fēng)何處去 閱讀數(shù) 1252
 要運(yùn)行sosreport,需要安裝sos 包。sos包是大多是linux的默認(rèn)安裝包中的一部分。如果因?yàn)槟撤N原因沒(méi)有安裝,那么運(yùn)行下面的yum命令來(lái)安裝sos 包 :

  # yum install sos -y

生成報(bào)告

  打開(kāi)終端輸入sosreport命令:

  # sosreport

  這條命令正常情況下會(huì)在幾分鐘里完成。根據(jù)本地配置,在某些情況下,某些選項(xiàng)可能需要更長(zhǎng)的時(shí)間才能完成。一旦完成,sosreport將在/ tmp目錄目錄中生成一個(gè)壓縮文件。不同版本使用不同的壓縮方案( gz,bz2,或xz)。該文件應(yīng)提供給紅帽的支持代表(在開(kāi)放的情況下通常作為附件)。

  注意:sosreport需要root權(quán)限才能運(yùn)行。

[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. 此處敲擊回車(chē)來(lái)確認(rèn)收集信息

Please enter your first initial and last name [linuxprobe.com]:此處敲擊回車(chē)來(lái)確認(rèn)主機(jī)編號(hào)
Please enter the case number that you are generating this report for:此處敲擊回車(chē)來(lái)確認(rèn)主機(jī)編號(hào)
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.

向AI問(wèn)一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI