3. 啟動TAS(Thin-Agent服務)
TAS在安裝完成后通常會自動啟動,并在系統重啟時自啟。如需手動啟動,請按以下步驟操作:

3.1 在Windows上啟動TAS
1. 打開 Windows服務管理器:
? 按下 Win + R,輸入 services.msc,回車。
2. 在服務列表中找到 ThinAgentService。
3. 右鍵點擊該服務,選擇 啟動(或通過命令行執行 net start ThinAgentService)。

3.2 在Linux上啟動TAS
? Systemd系統(如RHEL 7+/CentOS 7+/Ubuntu 16.04+):
sudo systemctl start tas # 啟動服務
sudo systemctl enable tas # 設置開機自啟(可選)
傳統Init系統(如RHEL 6/CentOS 6):
sudo /etc/init.d/tas start # 或
sudo service tas start
3.3 在FreeBSD x86_64上啟動TAS
? 使用以下命令:
sudo /etc/rc.d/tas start # 或
sudo service tas start
如需開機自啟,編輯 /etc/rc.conf 文件并添加:
tas_enable="YES"
常見問題排查
1. 服務無法啟動:
? 檢查日志:
■ Linux/FreeBSD:journalctl -u tas 或 /var/log/messages。
■ Windows:事件查看器 → 應用程序日志。
? 確保BMC/IPMI驅動已正確安裝(如Linux的ipmitool、Windows的BMC驅動)。
2. 權限問題:
? Linux/FreeBSD需root權限運行,Windows需管理員權限。
3. 端口沖突:
? 確認IPMI默認端口(623/UDP)未被防火墻阻止。

操作總結
操作系統
啟動命令
開機自啟配置
Windows
net start ThinAgentService
服務屬性設為“自動”
Linux
systemctl start tas 或 service tas start
systemctl enable tas
FreeBSD
/etc/rc.d/tas start
在/etc/rc.conf中添加配置
如需進一步調試(如自定義啟動參數),請提供具體的操作系統版本和錯誤日志。
4. 卸載TAS(Thin-Agent服務)
本節介紹如何在不同操作系統中卸載TAS服務。

4.1 在Windows上卸載TAS
1. 使用管理員權限登錄
? 確保當前賬戶具有管理員權限。
2. 打開控制面板
? 按下 Win + R,輸入 appwiz.cpl,回車。
3. 卸載程序
? 在程序列表中找到 ThinAgentService。
? 右鍵點擊并選擇 卸載,按照提示完成操作。
替代方法(命令行):
wmic product where "name like 'ThinAgentService%'" call uninstall /nointeractive
.2 在Linux上卸載TAS
1. 切換到root用戶
sudo su -
運行卸載腳本
? 進入TAS安裝包目錄,找到 uninstall.sh 并執行:
./uninstall.sh
若腳本丟失,手動刪除相關文件:
rm -rf /usr/local/tas /etc/init.d/tas /var/log/tas
Systemd系統額外步驟(如RHEL 7+/Ubuntu):
systemctl stop tas
systemctl disable tas
rm /etc/systemd/system/tas.service
4.3 在FreeBSD x86_64上卸載TAS
1. 切換到root用戶?
su -
運行卸載腳本
? 進入安裝包目錄執行:
./uninstall.sh
或手動清理
rm -rf /usr/local/tas /etc/rc.d/tas /var/log/tas
禁用開機啟動:
編輯 /etc/rc.conf,刪除或注釋以下行:
tas_enable="YES"
卸載后檢查
? Windows:確認服務列表中無 ThinAgentService。
? Linux/FreeBSD:檢查進程是否終止:
ps aux | grep tas
通用:刪除殘留配置文件(如 /etc/tas.conf)。

注意事項
1. 數據備份:卸載前備份TAS收集的監控數據(如有需要)。
2. 依賴項:卸載后,IPMI工具等依賴組件仍會保留。
3. 權限問題:若腳本執行失敗,手動檢查文件權限(chmod +x uninstall.sh)。
如需針對特定環境的詳細指導,請提供操作系統版本和安裝方式(如RPM/DEB包)。