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

# 線上倉庫安裝
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
| 參數 | 說明 |
|---|---|
-A | 啟用所有功能,含完整 RPM 驗證 (耗時較長) |
-B STRING | 自訂 tarball 檔名元素 |
-C | 建立預設 /etc/supportconfig.conf |
-D | 忽略設定檔,使用預設值 |
-E STRING | 聯絡人 Email |
-F | 顯示可用 feature keyword (搭配 -i/-x) |
-G GPG_UID | GPG 加密接收者 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 校驗檔Ubuntu 刪除 PPA 軟體倉庫完整指南:add-apt-repository 與 ppa-purge 實戰
Linux 與 Windows 檔案權限機制深度比較:為何 Linux 更安全?
Linux VirtualBox 安裝 Windows 8.1 報錯 0x000000C4 解決:啟用 CMPXCHG16B CPU 指令支援
Rsync + Sersync 實現海量資料即時同步架構部署指南
Fedora 18 DNSenum IP 顯示亂碼修正:Perl 腳本 $rr->{address} 改為 $rr->address
Linux SSH 連線去除「The authenticity of host can't be established」提示