Product Documentation

Example: Get load balancing information

Mar 23, 2015

In XenDesktop 7, you can use Server OS Machines to deliver cost-effective applications and desktops hosted on server operating systems to multiple users.

To load balance Server OS Machines in a XenDesktop 7 deployment, you use Citrix Policies. There are several load balancing policies for enabling and configuring load management between servers delivering Windows Server OS machines. For more information about these policies, see: Load Management policy settings. You work with policies through Studio or the Group Policy Management Console in Windows. For more information about working with policies, see: Manage Citrix policies.

To see the load, you can use either the Citrix Director or Studio consoles, or the PowerShell SDK. The following example shows how to use the PowerShell SDK to display the load.

Note: If you've used previous versions of XenDesktop, you may be familiar with the qfarm /load command. This tool is no longer available in XenDesktop 7, but you can use PowerShell to display similar output as shown in the example below.

Example: Get load index values

To display a list of machines with their calculated/measured load index values, together with counts of sessions running on them:
  1. Start a shell in PowerShell. For more information, see: About the XenDesktop SDK.
  2. Type:
    Get-BrokerMachine -SessionSupport MultiSession -Property 'DnsName','LoadIndex','SessionCount'

For more information and examples, see the cmdlet help for the get-brokermachine cmdlet and About help such as about_broker_filtering-xd7.html. See: XenDesktop cmdlet help.