Qfarm and QProcess the basics Print E-mail
Written by Hans Straat, Wednesday, 13 September 2006

In Citrix metaframe Presentation server you get a lot of goodies to use with the command prompt. Two of these goodies are explained in this tiny howto. The basics of Qfarm and Qprocess.

 

QPROCESS options

  • *
  • processid
  • username
  • sessionname
  • programname
  • /server:servername

These options give you a load of information which you can pipe to a txt file which is not possible with the task manager of CMC.

 

If you use for example qprocess * > c:\temp\processes.txt then all information will be written to the file processes.txt. A simular output like this will form then.

 USERNAME              SESSIONNAME         ID    PID  IMAGE
 (unknown)             console              0      0 
 system                console              0      4  system
 system                console              0    628  smss.exe
 system                console              0    700  csrss.exe
 system                console              0    732  winlogon.exe
 system                console              0    784  services.exe
 system                console              0    808  lsass.exe
 system                console              0    964  svchost.exe
 network service       console              0   1096  svchost.exe
 network service       console              0   1180  svchost.exe
 local service         console              0   1236  svchost.exe
 system                console              0   1248  svchost.exe
 system                console              0   1544  spoolsv.exe
 network service       console              0   1572  msdtc.exe
 system                console              0   1700  vcagent.exe
 ctx_smauser           console              0   1736  cpsvc.exe

If you however want to see what one user is doing and log it you can then see where the user is logged on to and use qprocess username > c:\username.txt to capture the outcome.

see example

We did a output request on qprocess dummy and qprocess /id:21 which is the id that user dummy works on.

 USERNAME              SESSIONNAME         ID    PID  IMAGE
 dummy                 ica-tcp#53          21  14532  ssonsvr.exe
 dummy                 ica-tcp#53          21  42272  wfshell.exe
 dummy                 ica-tcp#53          21  14896  proquota.exe
 dummy                 ica-tcp#53          21  15936  mstsc.exe
 USERNAME              SESSIONNAME         ID    PID  IMAGE
 system                ica-tcp#53          21  41204  csrss.exe
 system                ica-tcp#53          21  13392  winlogon.exe
 dummy                 ica-tcp#53          21  14532  ssonsvr.exe
 dummy                 ica-tcp#53          21  42272  wfshell.exe
 dummy                 ica-tcp#53          21  14896  proquota.exe
 dummy                 ica-tcp#53          21  15936  mstsc.exe

Now you see you also get the pid numbers the system accounts works on and the dummy account.

You can do lot's more with qprocess by simply trying it out.

 QFARM options

With Qfarm you get another range of command prompt goodies that are handy. You can easely query from a command prompt if a server is offline or online etc.

Qfarm parameters

  • TCP
  • IPX
  • Netbios
  • Addr
  • App
  • Disc
  • Load
  • Offline
  • Online
  • Servers
  • Process
  • Zone
  • Zoneapp
  • Zoneload
  • Continue

Let's take a look at the addr (address)

If you query it like Qfarm /addr servername you get simular output

M:\>qfarm /addr servername

Server               Transport Network Address
-------------------- --------- --------------------
SERVERNAME        TCP/IP    192.168.2.2

You can also use Qfarm /load which shows you the current load on a server. It's a static point however so gives you only a snapshot of the load of that current time on the farm.

If you want to see what disconected sessions you have you use Qfarm /disc which shows you the disconnected sessions.

In following example you see all disconnected sessions without having to look for them in the CMC :)

M:\>qfarm /disc

Client Name               Application Name                         Transport
------------------------- ---------------------------------------- ---------
WI_syjA9IMjz5rZaxkI       Desktop                              TCP/IP
WI_v_4ZkEDbOCNbZlvL       Desktop                               TCP/IP
farm-userame            Desktop                               TCP/IP
farm-username           Desktop                       TCP/IP

with Qfarm /online you can easely see what server(s) are online and with qfarm /offline the oposite.

M:\>qfarm /online

Server Name          Zone Name
-------------------- ---------------
SERVERNAME            192.168.2.2 D
SERVERNAME            192.168.2.3
SERVERNAME            192.168.2.4
SERVERNAME            192.168.2.5

You see a D behind the first server which means it's the Data Collector. Also handy if you have multiple zones in your citrix environment you see right away which server is the data collector.

Well for all other options use them as you see fit. There are more command prompt options which will be explained in another howto sometime.

Comments
Add NewSearchRSS
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:29
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:34
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:36
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:38
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:46
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:49
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:08:51
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:02
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:05
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:15
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:26
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:28
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:39
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:42
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:09:56
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:01
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:06
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:12
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:21
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:25
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
Ronaldo - Nicolas Unregistered | 2008-07-07 02:10:26
f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7
[url]http://njdokj.info/f55c9426f2928bfefec990252dd741a7/f78e97463658b05e0fbd87eecf6418e7[url]
WoW Gold - WoW Gold Unregistered | 2008-09-07 16:22:20
Professional WoW Power Leveling store,We offer cheap WoW Power Leveling,cheap World of Warcraft WoW Power Leveling,).Free Guide to help you Buy WoW Gold,WoW Power Leveling, and WoW Gold, sessions are really cheap, normally a lot less than the WoW Gold, minimum wage offered in the US because most WoW Gold, of the workers who are leveling are based in China.WoW Gold, Not only that but they normally are buy WoW Gold able to level faster than the Cheap WoW Gold average player WoW Gold, considering they have workers rotating Cheap WoW Gold shifts along with many many practices in the game. Cheap WoW Gold One of the best part of leveling a brand new character is Cheap WoW Gold that you will have a fresh reputation of the WoW Gold and WoW Gold would be able to name the character as you like. World of warcraft Power Leveling,warcraft Power Leveling,World of warcraft Power Leveling,warcraft Power Leveling,age of conan gold,aoc gold,buy aoc gold,cheap aoc gold,aoc power leveling,age of conan power leveling,aoc power leveling,aoc gold,age of conan gold,age of conan power leveling,guild wars gold,lotro gold,lotro gold,lotr gold,lotr gold,maplestory mesos,maplestory mesos,maplestory mesos,maplestory mesos, maple story mesos,maple story mesos,maple story mesos,maple story mesos,maple story mesos,maplestory mesos,runescape gold,runescape money,aoc gold,age of conan gold,aoc gold, age of conan gold,aoc gold,FFXI Gil,final fantasy gil,oil purifier,rolex replica,replica rolex,chongqingyantai,evening dresses,evening gowns,wedding dresses,bridal gowns,
wedding gowns,cocktail dresses,Bridesmaid dresses,prom dresses,formal dresses,girls clothes,baby boy clothes,baby boy clothing,baby girl clothes,baby girl clothing,dog clothes,dog collarsPromotional items,Promotional products,Wedding dresses,Pet supplies,Dog clothes,
Reply | Quote
Anonymous Unregistered | 2008-11-10 08:32:09
zhanghe Welcome to our wow Gold and store. We are specilized, professional and reliable website for selling and service. By thewow goldsame token,we offer the best WoW service for our long-term and loyal customers You will find the benefits andwow power leveling value we created different from other sites. As to most people, they are unwilling to spend most of the time grinding money for mounts or repair when they can purchase what they are badly need. The only way is to look for the best place towow gold buy cheap WOW gold. Yes! You find it here! Our WoW Gold supplying service has already accumulated a high reputation and credibility. We have plenty of Gold suppliers, which will guarantee ourwow powerleveling delivery instant. Actually, we have been getting tons of postive feedbacks from our loyal customers who really appreciate our service.
Write comment
Name:
Title:
UBBCode:
[b] [i] [u] [url] [quote] [code] [img] 
 

Powered by JoomlaCommentCopyright (C) 2006 Frantisek Hliva. All rights reserved.Homepage: http://cavo.co.nr/

 
< Prev   Next >