Windows XP Windows 7 Windows 2003 Windows Vista Windows 綜合教學 Linux 系統教學
Windows 10 Windows 8 Windows 2008 Windows NT Windows Server 電腦軟體教學
您现在的位置: Windows教程網 >> Windows教程 >  >> Linux 系統教學 >> 關於 Linux

Linux supportconfig 系統資訊收集工具安裝與使用完整指南:SUSE/openSUSE 官方診斷利器

編輯:關於 Linux

supportconfig (套件名 supportutils) 是 SUSE 官方提供的系統診斷資訊收集工具,可一次性收集硬體、核心、日誌、RPM、網路、服務等完整狀態並打包壓縮,供技術支援分析。本文涵蓋 zypper/yast 安裝、rpm 查詢檔案清單、完整參數對照表、執行範例與上傳流程。

supportconfig 輸出示意圖

安裝方式

# 線上倉庫安裝
zypper install supportutils

# 或離線 rpm 安裝
yast install supportutils-xxx.rpm
# 註:舊版套件名可能為 supportconfig

安裝後檔案清單

rpm -ql supportutils
# /etc/schealth.conf
# /etc/supportconfig.conf
# /sbin/chkbin
# /sbin/supportconfig
# /usr/bin/schealth
# /usr/share/man/man5/supportconfig.conf.5.gz
# /usr/share/man/man8/chkbin.8.gz
# /usr/share/man/man8/supportconfig.8.gz

核心參數速查 (supportconfig -h)

參數說明
-A啟用所有功能,含完整 RPM 驗證 (耗時較長)
-B STRING自訂 tarball 檔名元素
-C建立預設 /etc/supportconfig.conf
-D忽略設定檔,使用預設值
-E STRING聯絡人 Email
-F顯示可用 feature keyword (搭配 -i/-x)
-G GPG_UIDGPG 加密接收者 UID
-R PATH指定輸出目錄 (預設 /var/log)
-U URI上傳目標 URL (ftp/scp/http/https)
-i KEYWORDS包含指定功能關鍵字 (逗號分隔)
-x KEYWORDS排除指定功能關鍵字
-m最小模式 (僅基本環境、健康、硬體、RPM、messages、y2logs)
-v執行 rpm -V 驗證所有已安裝套件
-r SRNUM包含 Novell 11 位元服務請求編號

常用執行範例

# 標準收集 (輸出至 /var/log/nts_hostname_date.tbz)
supportconfig

# 完整收集含 RPM 驗證
supportconfig -A

# 僅收集基本資訊 (快速)
supportconfig -m

# 排除詳細磁碟掃描
supportconfig -d

# 指定上傳至 FTP
supportconfig -U ftp://user:pass@ftp.example.com/incoming -r 12345678901

# 使用 gzip 壓縮 (預設 bzip2)
supportconfig -g

輸出檔案

  • nts_主機名_日期.tbz (或 .tar.gz) 壓縮包
  • .md5 校驗檔

適用場景

  • 系統異常向廠商提交 Service Request (SR)
  • 重大變更前後狀態基線比對
  • 安全稽核、合規檢查資料彙整
Copyright © Windows教程網 All Rights Reserved