How to Enable Continuous CDF Tracing in Provisioning Services 7.x
book
Article ID: CTX138698
calendar_today
Updated On:
Description
This article describes how to enable continuous CDF tracing in Citrix Provisioning, formerly Provisioning Services, 7.x.
Instructions
Update: There is a new way to collect PVS diagnostic data. Refer to Citrix Documentation - CIS Problem Reporting for more details.
Requirements
CDFMonitor
Background
With the introduction of Provisioning Services 7.x, the Provisioning Services logging mechanism has changed from persistent log files to CDF tracing. Provisioning Services no longer logs streaming event to a log file. You must configure CDF tracing to capture persistent logging for determining the root cause of a problem.
Procedure
To enable continuous CDF tracing in Provisioning Services 7.x, complete the following procedure:
- Download CDFMonitor.
- Download the Provisioning Services specific configuration file from this article for your version of PVS. (Refer to the "Configuration File (Cdfmonitor.exe.config)" section of CTX129537 - CDFMonitor for more details).
- Extract the appropriate Cdfmonitor.exe.config file to the C:\cdfmonitor folder. Use the configuration file from the subfolder that applies to your installed version of PVS.
- Replace the CDFMonitor.exe.config that comes with CDFMonitor with the one downloaded from this article.
- Open a command line interface and open the C:\cdfmonitor folder.
- Run the following command: cdfmonitor.exe /installservice
CDFMonitor runs as a service that persists even after the server restarts. Continuous CDF trace is then captured on all modules. The trace file will grow to 100 MB in size and will rotate between five files. The moment the CDFMonitor service is restarted, a new CDF trace file is created.
Gathering Log Files
To collect the log files, complete the following procedure:
- Stop the CDFMonitor service from the Services applet.
- Copy trace files from the c:\windows\cdfmonitor folder.
- Start the CDFMonitor service from the Services applet, as shown in the following screen shot:
Uninstalling the CDFMonitor Service
To uninstall the CDFMonitor service, complete the following procedure:
- Open a command line interface and open the C:\cdfmonitor folder.
- Run the following command: cdfmonitor.exe /uninstallservice
NOTE: If any changes are made to the Cdfmonitor.exe.config file after installing the Cdfmonitor service then for the changes to take effect the Cdfmonitor service needs to be uninstalled and reinstalled.
Environment
The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.
Issue/Introduction
This article describes how to enable continuous CDF tracing in Provisioning Services 7.x.
Additional Information
Provisioning Services 7.x Data Collection : https://support.citrix.com/article/CTX208592Provisioning Services 7.x: How To Collect Logs On PVS Server And Target Devices :
https://support.citrix.com/article/CTX236308CDFMonitor :
https://support.citrix.com/article/CTX129537
Was this article helpful?
thumb_up
Yes
thumb_down
No