您可以在 Horizon Agent for Windows、Linux 版 Horizon Client、Mac 版 Horizon Client 或 Linux 版 Horizon Client 系統上,為特定遠端桌面平台功能或所有遠端桌面平台功能設定記錄層級,並在資料收集工具 (DCT) 服務包中產生記錄檔。
預設安裝路徑
DCT 指令碼會安裝在下列目錄中,並從代理程式和用戶端安裝路徑執行。
- Horizon Agent for Windows:
C:\Program Files\View\Agent\DCT\support.bat - Horizon Agent for Linux:
/usr/lib/viewagent/bin/dct-debug.sh - Windows 版 Horizon Client:
C:\Program Files (x86)\Horizon View Client\DCT\support.bat - Mac 版 Horizon Client:
/Applications/Horizon Client.app/Contents/Library/dct/HorizonCollector.sh - Linux 版 Horizon Client:
/usr/bin/view-log-collector
命令語法
使用下列命令針對每個平台執行 DCT 指令碼。
- Horizon Agent for Windows:
support.bat - Horizon Agent for Linux:
dct-debug.sh - Windows 版 Horizon Client:
support.bat - Mac 版 Horizon Client:
HorizonCollector.sh - Linux 版 Horizon Client:
view-log-collector
支援的功能
下表所列的遠端桌面平台功能具有 JSON 組態檔,其中包含記錄層級設定、記錄收集設定和傾印收集設定。
這些服務可在 Horizon Agent for Windows、Horizon Agent for Linux、Windows 版 Horizon Client、Mac 版 Horizon Client,以及 Linux 版 Horizon Client 系統上使用,說明中另述特定例外。
對於接受功能名稱的命令列選項,請指定 [功能名稱] 資料行中顯示的名稱。
| 功能名稱 | 完整功能名稱 | 預設記錄層級 |
|---|---|---|
| AgentCore | 代理程式核心 附註:此服務僅適用於 Horizon Agent for Windows 和 Horizon Agent for Linux。 | DEBUG |
| Appscanner | 應用程式掃描器 | INFO |
| Blast | Blast 附註:此服務僅適用於 Horizon Agent for Windows 和 Horizon Agent for Linux。 | INFO |
| Blastserver | Blast 伺服器 Proxy 附註:此服務僅適用於 Horizon Agent for Linux。 | INFO |
| Client | Client 附註:此服務不適用於 Horizon Agent for Windows 或 Horizon Agent for Linux。 | INFO |
| CDR | 用戶端磁碟機重新導向 | INFO |
| Clipboard | 剪貼簿重新導向 | INFO |
| Collabui | 協作 UI 附註:此服務僅適用於 Horizon Agent for Linux。 | INFO |
| Desktopdaemon | 桌面平台精靈控制站 附註:此服務僅適用於 Horizon Agent for Linux。 | INFO |
| DPISync | DPI 同步 | INFO |
| DnD | 拖放 附註:此服務不適用於 Horizon Agent for Linux 或 Linux 版 Horizon Client。 | INFO |
| FA | 檔案類型關聯 附註:此服務不適用於 Horizon Agent for Linux 或 Linux 版 Horizon Client。 | DEBUG |
| FIDO2 | FIDO2 重新導向 附註:此服務僅適用於 Windows 用戶端和 Windows 代理程式。 | INFO |
| Helpdesk | 服務台 附註:此服務僅適用於 Horizon Agent for Linux。 | INFO |
| TSMMR | 多媒體重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 | INFO |
| PCoIP | PCoIP | INFO |
| PerfTracker | Performance Tracker 附註:此服務僅適用於 Windows 代理程式。 | INFO |
| PrintRedir | 印表機重新導向 | INFO |
| PublishedApp | 已發佈的應用程式 附註:此服務不適用於 Horizon Agent for Linux。 | INFO |
| Rdesvc | RDE 服務 附註:此服務僅適用於 Horizon Agent for Linux。 | INFO |
| RTAV | RTAV | DEBUG |
| ScannerRedirection | 掃描器重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 | INFO |
| SerialPortRedirection | 序列埠重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 | INFO |
| SmartCard | 智慧卡重新導向 附註:此服務不適用於 Windows 版 Horizon Client。 | INFO |
| Truesso | True SSO 附註:此服務僅適用於 Horizon Agent for Linux。 | DISABLED |
| UNCRD | UNC 路徑重新導向 附註:此服務僅適用於 Horizon Agent for Windows 和 Windows 版 Horizon Client。 | INFO |
| URLRedirection | URL 內容重新導向 附註:此服務不適用於 Horizon Agent for Linux。 | INFO |
| USB | USB 重新導向 | DEBUG 附註:對於 Horizon Agent for Linux,預設值為 INFO。 |
| VDPService | VDPService | INFO |
| Watermark | 數位浮水印 | INFO |
| WebrtcRedirection | WebRTC 重新導向 | INFO |
命令列選項
下表說明命令列選項和使用方式。
| 選項 | 用途 | 說明 |
|---|---|---|
| -l | -l | 列出 DCT 所支援所有功能和元件的記錄層級。
例如,Windows 版 Horizon Client 的命令 support.bat -l 輸出結果會列出所有由 DCT 控制的元件及其記錄層級狀態: |
| -l feature1,feature2 ... | 列出指定功能的記錄層級。
例如,Windows 版 Horizon Client 的命令 support.bat -l CDR,DnD 輸出結果會列出「用戶端磁碟機重新導向」與「拖放」功能的記錄層級狀態: | |
| -l -dumps | 查詢已設定程序的傾印設定。
例如,Windows 版 Horizon Client 的命令 support.bat -l -dumps 輸出結果會列出每個程序的名稱、傾印類型與傾印計數上限:
附註:此命令僅適用於 Windows 版 Horizon Client。 | |
| -l -dumps count | 查詢已設定程序的傾印計數。 附註:此命令僅適用於 Windows 版 Horizon Client。 | |
| -l -dumps type | 查詢已設定程序的傾印次數。 附註:此命令僅適用於 Windows 版 Horizon Client。 | |
| -ld | -ld feature1,feature2 ... | 列出指定功能的記錄層級詳細資料。 |
| -x | -x All:level | 設定 DCT 所支援所有功能的記錄層級。有效的記錄層級如下:
|
| -x feature1:level1,feature2:level2 ... | 設定指定功能或元件的記錄層級。
例如,Linux 版 Horizon Client 的命令 view-log-collector -x All:TRACE 會將所有元件的記錄層級設為「Trace」。Linux 版 Horizon Client 的命令 view-log-collect -x DnD:INFO,CDR:TRACE 會將「拖放」功能的記錄層級設為「Info」,並將「用戶端磁碟機重新導向」功能的記錄層級設為「Trace」。 | |
| -r | -r | 將所有功能的記錄層級重設為安裝預設值。 |
| -c | -c All | 收集所有記錄。 |
| -c feature1,feature2 ... | 收集指定功能或元件的記錄。 | |
| -d | -d directory1 | 將 DCT 輸出重新導向至指定的目錄。 |
| -f | -f bundleName | 將記錄服務包檔案的完整名稱指定為 bundleName。 |
| -h | -h | 顯示命令列選項的說明資訊,並列出 DCT 支援的功能和元件。 |
| -del | -del -dumps All | 刪除 DCT 所支援所有功能和元件的傾印。 附註:此命令僅適用於 Windows 版 Horizon Client。 |
| -del -dumps feature1,feature2 ... | 刪除指定功能的傾印。
例如,Windows 版 Horizon Client 的命令 support.bat -del -dumps Client,FA 輸出結果會刪除「用戶端」與「檔案類型關聯」功能的傾印檔案。
附註:此命令僅適用於 Windows 版 Horizon Client。 |
即時傾印
對於 Windows 版 Horizon Client 和 Horizon Agent for Windows,部分功能也支援即時傾印。此功能會根據組態檔設定傾印目標處理程序,並在記錄服務包中收集傾印。是否需要產生即時傾印,取決於功能的組態。
例如,如果您執行 Windows 版 Horizon Client 的命令「support.bat -c」,則會出現此訊息「You can choose to generate diagnostic dumps of the Horizon Client processes running on this machine, please note these files can be very large」。如果您選擇 Y,則會針對與 Windows 版 Horizon Client 相關的現有處理程序產生傾印檔案。
此頁面對您有幫助嗎?