Skip to main content

2025 年 7 月 21 日

使用 DCT 來收集遠端桌面平台功能和元件的記錄

您可以在 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
BlastBlast 附註:此服務僅適用於 Horizon Agent for Windows 和 Horizon Agent for Linux。INFO
BlastserverBlast 伺服器 Proxy 附註:此服務僅適用於 Horizon Agent for Linux。INFO
ClientClient 附註:此服務不適用於 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
DPISyncDPI 同步INFO
DnD拖放 附註:此服務不適用於 Horizon Agent for Linux 或 Linux 版 Horizon Client。 INFO
FA檔案類型關聯 附註:此服務不適用於 Horizon Agent for Linux 或 Linux 版 Horizon Client。 DEBUG
FIDO2FIDO2 重新導向 附註:此服務僅適用於 Windows 用戶端和 Windows 代理程式。INFO
Helpdesk服務台 附註:此服務僅適用於 Horizon Agent for Linux。INFO
TSMMR多媒體重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 INFO
PCoIPPCoIPINFO
PerfTrackerPerformance Tracker 附註:此服務僅適用於 Windows 代理程式。INFO
PrintRedir印表機重新導向INFO
PublishedApp已發佈的應用程式 附註:此服務不適用於 Horizon Agent for Linux。INFO
RdesvcRDE 服務 附註:此服務僅適用於 Horizon Agent for Linux。INFO
RTAVRTAVDEBUG
ScannerRedirection掃描器重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 INFO
SerialPortRedirection序列埠重新導向 附註:此服務不適用於 Horizon Agent for Linux 或 Mac 版 Horizon Client。 INFO
SmartCard智慧卡重新導向 附註:此服務不適用於 Windows 版 Horizon Client。INFO
TruessoTrue SSO 附註:此服務僅適用於 Horizon Agent for Linux。DISABLED
UNCRDUNC 路徑重新導向 附註:此服務僅適用於 Horizon Agent for Windows 和 Windows 版 Horizon Client。INFO
URLRedirectionURL 內容重新導向 附註:此服務不適用於 Horizon Agent for Linux。INFO
USBUSB 重新導向DEBUG 附註:對於 Horizon Agent for Linux,預設值為 INFO。
VDPServiceVDPServiceINFO
Watermark數位浮水印INFO
WebrtcRedirectionWebRTC 重新導向INFO

命令列選項

下表說明命令列選項和使用方式。

選項用途說明
-l-l列出 DCT 所支援所有功能和元件的記錄層級。 例如,Windows 版 Horizon Client 的命令 support.bat -l 輸出結果會列出所有由 DCT 控制的元件及其記錄層級狀態:

- Agent Core          [INFO]
- PCoIP               [INFO]
- Virtual Channel     [INFO]
- VDP Service         [TRACE]
- Remote Features 
    - Client Drive Redirection  [TRACE]
    - Clipboard Redirection     [DEBUG]        
    - Drag and Drop             [TRACE]
    - DPI Synchronization       [INFO]
    - File Type Association     [INFO]
 -l feature1,feature2 ...列出指定功能的記錄層級。 例如,Windows 版 Horizon Client 的命令 support.bat -l CDR,DnD 輸出結果會列出「用戶端磁碟機重新導向」與「拖放」功能的記錄層級狀態:

 - Client Drive Redirection  [TRACE]    
 - Drag and Drop             [TRACE]
 -l -dumps查詢已設定程序的傾印設定。 例如,Windows 版 Horizon Client 的命令 support.bat -l -dumps 輸出結果會列出每個程序的名稱、傾印類型與傾印計數上限:

Process Name                  Dump Type   Max Dump Count
========================================================
view.exe               Full        128
remotemks.exe          Full        128
appstub.exe            Full        128
horizon_client_service.exe    Full        NO LIMIT 
附註:此命令僅適用於 Windows 版 Horizon Client。
 -l -dumps count查詢已設定程序的傾印計數。 附註:此命令僅適用於 Windows 版 Horizon Client。
 -l -dumps type查詢已設定程序的傾印次數。 附註:此命令僅適用於 Windows 版 Horizon Client。
-ld-ld feature1,feature2 ...列出指定功能的記錄層級詳細資料。
-x-x All:level設定 DCT 所支援所有功能的記錄層級。有效的記錄層級如下:
  • Info
  • Debug
  • Trace
  • Verbose
 -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 相關的現有處理程序產生傾印檔案。

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…