一、簡介:
SuSE Subscription Management Tool(SMT)是提供SuSE Enterprise Linux(SLES) 線上更新服務的工具。一般安裝SLES時需要向SuSE 公司註冊以取得最新的線上套件更新。但若是我們今天有大量的SLES需要更新時將佔用的大量頻寬及時間。因此SuSE公司提供一套SMT管理工具,利用SMT幫我們預先下載SLES的Patches而我們只要將內部SLES指向SMT即可快速的更新SLES了。
二、安裝SMT
1.登入系統後開啟YAST (SLES 管理工具)
2.選擇Add-on Product
3.進入Add-On Product介面後,選擇add,加入SMT產品光碟資訊
4.選擇DVD,同時將SMT光碟放入DVD光碟機中,選擇Continue後載入SMT安裝資訊
5.選擇同意License Agreement
6.在pattern中會看SMT安裝資訊,點選Accept
7.顯示相依套件安裝資訊,點選continue即可開始安裝
8.安裝過程中會需要更換SLES11SP3原安裝光碟
9.再放入SMT光碟
10.安裝完成後即會開啟Configuration Wizard,請填入相關資訊,若開啟Firewall請勾選open port in Firewall
11.輸入Database User的密碼
12.註冊Novell Customer Center 資訊,依Wizard註冊即可。
13.安裝完成後,會再建主一次mysql root 的password
PS:若又出現Novell Customer Center註冊畫面,按"Next" 即可。
安裝完成
三、組態SMT
1.登入系統後執行YASTàNetwork Service àSMT Server Configureation
2.選擇Database and Reporting,在E-Mail Addresses加入欲收到report的E-Mail。
PS: Configuration: /etc/smt.conf
3.SMT 排程 YASTàNetwork Service àSMT Server Configuration
有五種Job排程:
- Synchronization of Updates:Synchronizes with Novell Customer Center, updates repositories, and downloads new updates.
- Generation of Reports:Generates and sends SMT Subscription Reports to addresses
- NCC Registration:Registers all clients to Novell Customer Center that are not already registered or that changed their data since the last registration
- Job Queue Cleanup:Cleans up queued jobs. It will remove finished or failed jobs from the job queue that are older than 8 days and remove job artifacts that remained in the database as result of an error
- Uploading Support Configs:Uploading support configs is only available, when the SMT-support package is installed and manually added. To add it, click Add then select Uploading Support Configs from the Job to Run list.
4.設定欲 mirror repo : YASTàNetwork Service àSMT Server Managerment
在Repositories中選擇要Mirror的產品後點選Toggle Mirroring再點選Mirror Now即可
5.SLES Client 註冊
a.wget http://smt.site/repo/tools/clientSetup4SMT.sh
b. ./clientSetup4SMT.sh https://smt.site/center/regsvc
回答yes後即可註冊完成
6.QA
PS1:註冊時若有出現
ERROR: SSL peer certificate or SSH remote key was not OK: (51)(2)
ERROR: SSL peer certificate or SSH remote key was not OK: (51)(2)
應是輸入網址時沒有輸入完整的FQDN 名稱。如./clientSetup4SMT.sh https://smt/center/regsvc 導致憑證資訊不對。
因為在安裝我們使用的FQDN為smt.site因此建立憑證時為smt.site建立的。
PS2:另外也可重建CA,請參考: http://www.novell.com/support/kb/doc.php?id=7006024
PS3:利用zypper ref –s重新整理repo,若有出現Error請檢查SMT Server的Repo是否Download完成
Finished