Page 1 of 1 1
Topic Options
#117582 - 2004-04-08 10:16 PM Mission impossible?
JerDog Offline
Fresh Scripter

Registered: 2003-03-24
Posts: 10
Greets all,

Looking to create a login script that does it all, and have found quite a few samples. However, I've got a couple issues that I'm trying to figure out and hope I can get some insight from the experienced peeps out there.

1. Can I script via Kixtart to detect connection speed of workstation logging into the network? I see plenty of examples that differentiate between Dial-Up and LAN/VPN by IP address. However, with the frequency of spoofing that takes place, I don't see this as necessarily accurate. I'm wondering if there is something that can ping the machine, and then interpret the results?

2. Many of our users connenct to our network/domain solely by logging into Citrix servers. What do I need to do to have the script recognize the machine logging into the server, and not the Citrix server itself?

I appreciate any assistance.

Jer

Top
#117583 - 2004-04-08 10:34 PM Re: Mission impossible?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
required WMIQuery() UDF

Code:

$bwidth = WMIQuery("CurrentBandwidth","Win32_PerfRawData_Tcpip_NetworkInterface")
$bname = WMIQuery("name","Win32_PerfRawData_Tcpip_NetworkInterface")
if $bname="WAN [PPP_SLIP] Interface" $bwidth=$bwidth/1000+"KB" endif
$adname = split($bname,"|") $adapter= split($bwidth,"|")
for $loop=0 to ubound($adapter)
$adn=$adname[$loop] $adb=$adapter[$loop]
if not instr($adn,"Loopback") $speed=val($adb)/1000000 endif
next

? " Computer IP is "color c+/n"$ip "color w/n "with a "color w+/n $speed "MB" color w/n " connection"

_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#117584 - 2004-04-08 11:06 PM Re: Mission impossible?
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
See the FAQ forum for Citrix stuff.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#117585 - 2004-04-09 12:32 AM Re: Mission impossible?
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Rad...Will that stuff return connection info of client or the citrix server?
Top
#117586 - 2004-07-01 06:39 PM Re: Mission impossible?
JerDog Offline
Fresh Scripter

Registered: 2003-03-24
Posts: 10
Rad...

Being the newbie that I am, I'm having problems having this script excerpt do anything aside from error out stating Error: expected expression! Line: 0

I'll definitely claim that I do not understand everything inyour script, and am just wondering if there is a formatting issue or am I leaving something out?

Also, do you know if this will recognize cirtix client machines?

Thanks.

jer

Top
#117587 - 2004-07-02 04:02 AM Re: Mission impossible?
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The script requires the WMIQuery UDF as stated in the example which in turns requires WMI installed on the computer. Teh use of UDFs is explained in the FAQ Forum.
_________________________
There are two types of vessels, submarines and targets.

Top
#117588 - 2004-07-02 06:17 AM Re: Mission impossible?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
this will do the speed of the machine it is run on... since the script would typically be running in a citrix env, it would do the speed on the server.

however, if wouldn't be too dificult to code in the client's name and do a remote query against the client machine... assuming the user has permissions to the client machine and it is WMI capable
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
#117589 - 2004-07-02 06:19 AM Re: Mission impossible?
Radimus Moderator Offline
Moderator
*****

Registered: 2000-01-06
Posts: 5187
Loc: Tampa, FL
also, the code posted above is from an old version of WMIQuery that would return | delimited strings, which necessitated the split statements. The current version of WMIQuery returns arrays directly
_________________________
How to ask questions the smart way <-----------> Before you ask

Top
Page 1 of 1 1


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

Who's Online
0 registered and 657 anonymous users online.
Newest Members
M_Moore, BeeEm, min_seow, Audio, Hoschi
17883 Registered Users

Generated in 0.066 seconds in which 0.034 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