Kylin Sos安裝步驟以及日志收集方法

配置本地Yum源

[root@localhost home]# ls
Kylin10SP220210524x86.iso  sa13
[root@localhost home]# mkdir /mnt/iso
mkdir: 無(wú)法創(chuàng)建目錄 “/mnt/iso”: 文件已存在
------------將ISO掛載至本地創(chuàng)建的目錄。
[root@localhost home]# mount -o loop Kylin10SP220210524x86.iso  /mnt/iso
mount: /mnt/iso: WARNING: source write-protected, mounted read-only.
root@localhost home]# cat /etc/yum.repos.d/kylin.repo 
[kylin]
name=kylin
baseurl=file:///mnt/iso
gpgcheck=0
enabled=1

使用Yum安裝sos

[root@localhost ~]# yum provides sos
上次元數(shù)據(jù)過(guò)期檢查:2 days, 9:22:43 前,執(zhí)行于 2024年03月04日 星期一 10時(shí)17分09秒。
sos-3.9.1-2.p01.ky10.noarch : A set of tools to gather troubleshooting information from a system
倉(cāng)庫(kù)        :@System
匹配來(lái)源:
提供    : sos = 3.9.1-2.p01.ky10

sos-3.9.1-2.p01.ky10.noarch : A set of tools to gather troubleshooting information from a system
倉(cāng)庫(kù)        :kylin
匹配來(lái)源:
提供    : sos = 3.9.1-2.p01.ky10
-------------通過(guò)本地yum源安裝sos軟件包。
[root@localhost ~]# yum install sos
上次元數(shù)據(jù)過(guò)期檢查:0:00:51 前,執(zhí)行于 2024年03月06日 星期三 19時(shí)40分04秒。
依賴(lài)關(guān)系解決。
=========================================================================================================================================================================================
 Package                                 Architecture                               Version                                              Repository                                 Size
=========================================================================================================================================================================================
安裝:
 sos                                     noarch                                     3.9.1-2.p01.ky10                                     kylin                                     506 k

事務(wù)概要
=========================================================================================================================================================================================
安裝  1 軟件包

總計(jì):506 k
安裝大小:1.6 M
確定嗎?[y/N]: y
下載軟件包:
運(yùn)行事務(wù)檢查
事務(wù)檢查成功。
運(yùn)行事務(wù)測(cè)試
事務(wù)測(cè)試成功。
運(yùn)行事務(wù)
  準(zhǔn)備中  :                                                                                                                                                                          1/1 
  安裝    : sos-3.9.1-2.p01.ky10.noarch                                                                                                                                              1/1 
  運(yùn)行腳本: sos-3.9.1-2.p01.ky10.noarch                                                                                                                                              1/1 
/sbin/ldconfig: /usr/lib64/libLLVM-7.so 不是符號(hào)鏈接


  驗(yàn)證    : sos-3.9.1-2.p01.ky10.noarch                                                                                                                                              1/1 

已安裝:
  sos-3.9.1-2.p01.ky10.noarch                                                                                                                                                            

完畢!

使用sos收集日志

[root@localhost ~]# sosreport 

sosreport (version 3.9)

This command will collect diagnostic and configuration information from
this Kylin system and installed applications.

An archive containing the collected information will be generated in
/var/tmp/sos.yfhmy6l7 and may be provided to a Kylin support
representative.

Any information provided to Kylin will be treated in accordance with the
published support policies at:

  http://www.kylinos.cn

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.

按 ENTER 鍵繼續(xù),或者 CTRL-C 組合鍵退出。

Please enter the case id that you are generating this report for []: 

 Setting up archive ...
 Setting up plugins ...
[plugin:firewalld] skipped command 'nft list ruleset': required kmods missing: nf_tables.  Use '--allow-system-changes' to enable collection.
[plugin:networking] skipped command 'nft list ruleset': required kmods missing: nf_tables. 
[plugin:networking] skipped command 'ip -s macsec show': required kmods missing: macsec.  Use '--allow-system-changes' to enable collection.
[plugin:networking] skipped command 'ss -peaonmi': required kmods missing: inet_diag, tcp_diag, unix_diag, af_packet_diag, udp_diag, netlink_diag.  Use '--allow-system-changes' to enable collection.

Your sosreport has been generated and saved in:
  /var/tmp/sosreport-localhost-20240306194119.tar.xz

 Size   20.99MiB
 Owner  root
 md5    956682e9523e189485812a5cca2964a4

Please send this file to your support representative.
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容