Please run the following command to do a Delivery Controller’s health check from an elevated powershell window:
To load the Citrix modules run asnp citrix*
1. Run Get-BrokerController to list the information about all the Delivery Controllers in the site.
Note down the SID of the controller and match it with the SID value in the chb_configcontrollers XenApp/XenDesktop Site database table (Browse to the database for your XenDesktop environment, expand tables and then check for the table by the chb.config controller)
Also ensure that the status of all the Delivery Controllers is “Active”
2. To check the service status of all the Citrix Services , run the following command:
Copy all the values in ‘Name’ and paste it in the next command line
OUTPUT: Service status should come up as ‘OK
3. To measure the number of instances getting registered from the controller with the database:
Get-ConfigRegisteredServiceInstance | measure
OUTPUT: Will give the consolidated number. (With every version we have few new services and instances which get added, i.e, with 7.6 we have 49 instances. If you have 2 controllers in the environment then the value will come up to be 49*2=98)
4. For environment where we have separate databases for Logging and Monitor service, the following command can be run to check the status:
(In case you have a single database for Ste, Monitoring and Logging the String value will be same. For environment with different databases, the string value will be different for Logging and Monitor datastore)
5. To check the connection string which connects the Delivery Controller uses to communicate to the site database, run the following command:
OUTPUT: Server= SQL Server name;Initial Catalog=Name of the XenApp/XenDesktop database
6. Run the following command to verify the installed db version for all the services. Example for Broker Service run:
Similarly, you can check for the other services as well:
Get-AnalyticsInstalledDbVersion and so on.
You will get the list of Citrix services from Get-command get-*servicestatus as stated earlier.
7. To check the Connection strings in the registry, browse to the following location and check the value of the connection string:
This can as well be checked for all the services installed:
Browse to the following location and verify the value for the Connection String:
8. Run the below cmdlet to test Database connectivity of individual Citrix Services.
Test-BrokerDBconnection “<connection strings>”
Test-ConfigDBConnection “<connection strings>”