How to find load for specific Citrix servers

Posted on 2013-06-10
Last Modified: 2013-06-11
Is there any command available to calculate the load of specific Citrix servers out of multiple servers?

For example, we have following XenApp servers in our farm-


I want to use QFARM /LOAD command to check the load of following servers-


I can check the load of a single server with QFARM /LOAD XEN-1 command, but I am unable to do so for multiple servers.

Please note that I don't want to use PowerShell to do so. If any batch file or command available please let me know.

Thanks for your help in advance.
Question by:hchabria
  • 2
  • 2
LVL 24

Expert Comment

by:Sekar Chinnakannu
ID: 39234278
for specific server qfarm /load servername
also check this different commands for qfarm
LVL 83

Expert Comment

ID: 39234300
A simple "qfarm /load" will display the load for all servers in the farm.
You can then filter that output with findstr:
qfarm /load | findstr "XEN-1 XEN-3 XEN-4"

Open in new window

Or you can embed the qfarm command in a for loop:
for %a in (XEN-1 XEN-3 XEN-4) do @qfarm /load %a

Open in new window

To use that in a batch script, use double percent signs for the loop variable:
for %%a in (XEN-1 XEN-3 XEN-4) do @qfarm /load %%a

Open in new window


Author Comment

ID: 39234484
Excellent oBdA! That is exactly what I wanted.  The output of "qfarm /load | findstr "XEN-1 XEN-3 XEN-4" is what I looking for. Thank you so much.

Is it possible to get this same type of output using a batch file?
LVL 83

Accepted Solution

oBdA earned 500 total points
ID: 39234536
Just take the line as it is and put it into a batch file. Well, nearly as it is, as I just noticed something missing, sorry: add a "/i" to the findstr command, so that it ignores the case and will show you results for xen-1 as well.
qfarm.exe /load | findstr.exe /i "XEN-1 XEN-3 XEN-4"

Open in new window

If you want to pass the servers as arguments instead of hardcoding them, you can use
@echo off
qfarm.exe /load | findstr.exe /i "%*"

Open in new window

and then run that like Whatever.cmd XEN-1 XEN-3 XEN-4

Author Comment

ID: 39237434
Awesome! Thank you so much for the quick resolution.

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Citrix XenDesktop 7.6 Citrix Policies Graphics
How to install and configure Citrix XenApp 6.5 - Part 1. In this video tutorial we have explained step by step installation of Citrix XenApp 6.5 Server on Windows Server 2008 R2 is explained in this video. We have explained the difference between…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now