Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to find load for specific Citrix servers

Posted on 2013-06-10
Medium Priority
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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
LVL 25

Expert Comment

by:Sekar Chinnakannu
ID: 39234278
for specific server qfarm /load servername
also check this different commands for qfarm http://support.citrix.com/proddocs/topic/xenapp65-admin/ps-commands-query-farm-v2.html
LVL 85

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 85

Accepted Solution

oBdA earned 2000 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

After several days of searching and hunting for limited documentation, I wanted to share this guide to hopefully save someone the hassle of trying to figure this out on their own. I have tested this on Xendesktop 7.1 and PS 4.5 running simultaneous…
#Citrix #Citrix Policies #XenDesktop #VDI #POC #Citrix Univeral Printer Driver #Citrix UPD
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.

636 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