We have an inbuilt plugins which work with XenApp 5.5 from versions 6.0 onwards Citrix has moved away from the old MFCOM api to a windows powershell based api. Because of this development, toolkit plugin can now get access to all the metrics published by the Citrix api.
So how does this work?
Steps below replicate the Citrix-apps plugin, something similar can be followed for all other Citrix plugins.
- Install the XenApp 6.5 Powershell SDK on the machine where XenApp server is running
- Command reference is available as part of the installation
- The 6.5 version of the SDK can be installed on any machine to remotely access the XenApp server. Version 6.0 SDK does not support this.
- The SDK is a windows powershell snap-in
- Write the powershell script to get metrics out of the XenServer using the “
- You may need to change powershell script execution policies in order to run the scripts. Please see the following article How do I monitor a PowerShell script on Windows with the Toolkit plugin?
#add the citrix snapin, throw away any ouput
Add-PSSnapin Citrix* | Out-Null
Get-PSSnapin Citrix* | Out-Null
# get list of applications running on your citrix farm
$applications = Get-XAApplication
# format the output into toolkit plugin format
# remove double quotes from the output
- Install and start netprobe on the machine where you have the powershell scripts.
- Configure a toolkit plugin on the probe to execute the powershell script
- Eg – my sampler script is set to: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe C:\Users\Administrator\Desktop\citrix-apps.ps1
Additional information about the XenApp Powershell SDK can be found on the Citrix site https://docs.citrix.com/en-us/xenapp-and-xendesktop/7-6/cds-sdk-wrapper-rho.html