Solved

How to find load for specific Citrix servers

Posted on 2013-06-10
5
1,571 Views
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-

XEN-1
XEN-2
XEN-3
XEN-4
XEN-5

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

XEN-1
XEN-3
XEN-4

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.
0
Comment
Question by:hchabria
  • 2
  • 2
5 Comments
 
LVL 24

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
0
 
LVL 82

Expert Comment

by:oBdA
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

0
 

Author Comment

by:hchabria
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?
0
 
LVL 82

Accepted Solution

by:
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
0
 

Author Comment

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

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

#Citrix #XenApp #Citrix XenApp #Citrix Concurrent License #Citrix Licensing #Citrix Policies
Exchange server is not supported in any cloud-hosted platform (other than Azure with Azure Premium Storage).
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.

708 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