Objective
This article describes how to capture a Common Diagnostic Facility (CDF) trace during system startup using registry settings.
Instructions
To capture a CDF trace during system startup using registry settings, complete the following steps:
-
Create a registry value under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\Tracing:
Value Name: PersistentTraceLogPath
Value Type: REG_SZ
Value: Type the log path here
Note: The value for the log path must be a file path, such as C:\CitrixLogFile. Do not type the name of the log file.The trace session name and trace log file name is always CDF_PersistSession and CDF_PersistSession.etl, respectively. The log file is stored in the path specified by the registry settings. The trace path must be an existing path, you cannot create it at runtime.?? ?? ?? ?? ?? ?? ??
-
To enable the trace providers, modify the provider registry values under:
KEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\Tracing\Modules\<Providers>:
Value Name: “Enabled”
Value Type: REG_DWORD
Value: Set 1, to enable tracing?? ?? ?? ?? ?? ?? ?? ?? ?? ??
-
Set Flags and Level in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Citrix\Tracing\Modules\<Providers>:
Value Type: REG_DWORD
Value: Set the required trace flags, supplied by Citrix Technical Support.
The maximum flag level is hex FFFFFF.
Value Name: “Level”??
Value Type: REG_DWORD
Value: Set the required trace level, supplied by Citrix Technical Support.
The highest level is decimal 16.
-
In addition to these steps you may have to modify the following registry value to LocalSystem:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\CdfSvc\
Value Name: ObjectName
Value Type: REG_SZ
Value: “LocalSystem”
Note: To correctly capture traces during startup, some service and driver components might need to depend on the CdfSvc service. - Change the service startup dependency. You must modify or add the DependOnService registry value to the following recommended components:
- TermService
- Cdm
- WDICA
- IMAService
-
The DependOnService registry value is located in: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\<ServiceName>
Value Name: “DependOnService”
Value Type: REG_MULTI_SZ
Value: Append CdfSvc to the list
-
Restart cdfsvc.exe or the server.
-
When you first open the trace file, it might appear empty. This is because the traces are cached in memory and are rarely written to the log file. To flush out the traces from memory, it is necessary to stop the CdfSvc service. If the service does not stop because of the dependency chain, restart the server and open the backed up copy of the trace log file. The backed up log file has a filename CDF_PersistSession.etl.backup.
-
The persistent CDF trace session configures the trace to use EVENT_TRACE_FILE_MODE_CIRCULAR by default.??
The REG_DWORD value “LogFileLogMode” under HKLM\System\CurrentControlSet\Control\Citrix\Tracing can specify any of the following values amongst others:
0x00000002?? ?? ?? ?? ?? ?? EVENT_TRACE_FILE_MODE_CIRCULAR (default)
0x00000001?? ?? ?? ?? ?? ?? EVENT_TRACE_FILE_MODE_SEQUENTIAL
Additional Resources
Disclaimer
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.