Page 1 of 1 1
Topic Options
#104721 - 2003-09-05 12:33 AM IP of Citrix Client
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
[Moderator (Sealeopard): Moved thread from 'Scripts' to 'General' forum due to lack of script in body]

Guys,

Anyone know how to determine the IP address of a connected Citrix Client?

The IP is listed in CMC, connection properties of the user.

-edit-

found already: http://www.kixtart.org/board/ultimatebb.php?ubb=get_topic;f=2;t=003385#000015

[ 17. September 2003, 19:01: Message edited by: sealeopard ]
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#104722 - 2003-09-05 01:23 AM Re: IP of Citrix Client
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
This is also covered in a FAQ.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#104723 - 2003-09-05 01:42 AM Re: IP of Citrix Client
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Take a look at Win32Admin.WTSQuerySessionInfo.

You can find the DLL on my web site. (if it is working yet)

[ 05. September 2003, 01:44: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#104724 - 2003-09-05 01:56 AM Re: IP of Citrix Client
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
code:
$WTSsession = $Win32Admin.WTSQuerySessionInfo("prodmf04", 622)
if VarTypeName($WTSsession) = "Variant[]"
For $i=0 to ubound($WTSsession) step 2
? $WTSsession[$i] + " = " + $WTSsession[$i+1]
Next
else
? "Error @serror"
endif

This is the output:
quote:
applicationname = #PC Master
clientaddress = 159.57.43.67
clientbuildnumber = 985
clientdirectory = C:\PROGRA~1\Citrix\ICACLI~1\
clientdisplay =
clienthardwareid = 0
clientname = AMP01-US054450
clientproductid = 1
connectstate = WTSActive
domainname = AMP01
initialprogram = icast.exe v:\pcmw30\pcmlaunch.cmd
oemid =
sessionid = 622
username = US054450
winstationname = ICA-tcp#622
workingdirectory = u:\wtsrv\profiles\%username%\personal



[ 05. September 2003, 01:57: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#104725 - 2003-09-05 02:04 AM Re: IP of Citrix Client
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Howard,
I added a reference and link to the FAQ.
Topic: Citrix and/or Terminal Server Client Collection
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#104726 - 2003-09-05 02:06 AM Re: IP of Citrix Client
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
Thanks. [Smile]
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#104727 - 2003-09-05 07:11 AM Re: IP of Citrix Client
MightyR1 Offline
MM club member
*****

Registered: 1999-09-09
Posts: 1264
Loc: The Netherlands
And what a great tools the Hobester writes!!!

Thanx Howard for the dll and renameadmin.
_________________________
Greetz,
Patrick Rutten

- We'll either find a way or make one...
- Knowledge is power; knowing how to find it is more powerful...
- Problems don't exist; they are challenges...

Top
#104728 - 2003-09-05 10:26 AM Re: IP of Citrix Client
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
An alternative if you have Citrix WinFrame (wfapi.dll) is this small executable:
http://www.sgbit.demon.co.uk/files/ctxcinfo.exe

This will output the same sort of details in an INI format which can then be read with ReadProfileString(). I redirect this to a file in all my users home directories as they log on. It makes identifying the owner of a remote PC a doddle when the helpdesk records are incomplete or out of date.

Sample output:


[CTXCINFO]
WFVersion_MAJOR=2
WFVersion_MINOR=18
WFVersion_BUILD=663
WFVersion_CSD=Service Pack 3
WFClientBuildNumber=17534
WFClientName=SGB007968
WFClientDirectory=C:\PROGRA~1\Citrix\icaweb32\
WFClientProductId=0x1
WFClientAddress=10.9.2.139
WFClientDisplay_HRES=1247
WFClientDisplay_VRES=937
WFClientDisplay_DEPTH=2
WFClientCacheMem_TINY=32768
WFClientCacheMem_LOW=3145728
WFClientCacheMem_XMS=0
WFClientCacheMem_DISK=0
WFClientCacheDim_SIZE=0
WFClientCacheDim_MIN=0
WFClientCacheDim_LEVEL=0
WFClientCacheDim_OVERHEAD=0
WFICABufferLength=2048
WFInitialProgram=
WFApplicationName=#SGB Desktop
[WFClientDrives]
C=2
D=9
G=4
H=4
I=4
J=4
P=4
Q=4
X=4


Top
Page 1 of 1 1


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 369 anonymous users online.
Newest Members
rrosell, PatrickPinto, Raoul, Timothy, Jojo67
17877 Registered Users

Generated in 0.059 seconds in which 0.024 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org