[THIN] Re: Clientname Utlity

  • From: "Durbin Jeff M" <Jeff.Durbin@xxxxxxx>
  • To: "'thin@xxxxxxxxxxxxx'" <thin@xxxxxxxxxxxxx>
  • Date: Wed, 14 Jun 2006 10:45:31 -0700

One of the lines wrapped. There are 6 lines of code. The one that wrapped
is:

WScript.Echo Session.UserName & "," & Session.AppName & "," &
Session.ClientName

That should all be on one line, with a space between the last '&' and
'session.clientname'.



-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of msemon@xxxxxxx
Sent: Wednesday, June 14, 2006 10:42 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Clientname Utlity

Jeff,

Tried running this on test box. I am getting a VB Script compilation error.
Syntax error.

I have saved this as a VBS file:

Const MetaFrameWinFarmObject = 1
set theFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")
theFarm.Initialize(MetaFrameWinFarmObject)
For each session in theFarm.Sessions
  WScript.Echo Session.UserName & "," & Session.AppName & "," &
Session.ClientName
Next  

From command prompt I am running cscript dumpsessiondata.vbs>sessiondata.csv

Anything I am missing?

Thanks,

Mike

Original Message:
-----------------
From: Jeff Durbin techlists@xxxxxxxxxxxxxxxx
Date: Wed, 14 Jun 2006 09:39:01 -0700
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Re: Clientname Utlity


Save the following as 'DumpSessionData.vbs' (the name isn't important, as
long as it ends in .vbs. Open a command prompt on one of your MetaFrame
servers and run 'cscript DumpSessionData.vbs>sessiondata.csv'. That will
redirect the output to a CSV file.

Const MetaFrameWinFarmObject = 1
set theFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")
theFarm.Initialize(MetaFrameWinFarmObject)
For each session in theFarm.Sessions
  WScript.Echo Session.UserName & "," & Session.AppName & "," &
Session.ClientName
Next  

  Or, if you want to just dump it to the screen in a more readable format,
use this:

Const MetaFrameWinFarmObject = 1
set theFarm = CreateObject("MetaFrameCOM.MetaFrameFarm")
theFarm.Initialize(MetaFrameWinFarmObject)
For each session in theFarm.Sessions
  WScript.Echo Session.UserName & vbTab & Session.AppName & vbTAB &
Session.ClientName
Next  


JD

-----Original Message-----
From: thin-bounce@xxxxxxxxxxxxx [mailto:thin-bounce@xxxxxxxxxxxxx] On Behalf
Of msemon@xxxxxxx
Sent: Wednesday, June 14, 2006 9:23 AM
To: thin@xxxxxxxxxxxxx
Subject: [THIN] Clientname Utlity

Does anybody have a utility to dump clientnames to a text file? Some users
are logging in via Web Interface and some by Program Neighborhood.
Unfortunetly dumping quser to a text file only gives User Name and Session
Name.


Thanks,

Mike

--------------------------------------------------------------------
mail2web - Check your email from the web at http://mail2web.com/ .


************************************************
For Archives, RSS, to Unsubscribe, Subscribe or set Digest or Vacation mode
use the below link:
//www.freelists.org/list/thin
************************************************

************************************************
For Archives, RSS, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
//www.freelists.org/list/thin
************************************************


--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .


************************************************
For Archives, RSS, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
//www.freelists.org/list/thin
************************************************

This e-mail, including attachments, may include confidential and/or proprietary 
information, and may be used only by the person or entity to which it is 
addressed. If the reader of this e-mail is not the intended recipient or his or 
her authorized agent, the reader is hereby notified that any dissemination, 
distribution or copying of this e-mail, including its contents and attachments, 
is prohibited. If you have received this e-mail in error, please notify the 
sender by a "reply to sender only" message and delete this e-mail immediately 
and destroy all electronic and hard copies of the communication, including 
attachments.

************************************************
For Archives, RSS, to Unsubscribe, Subscribe or 
set Digest or Vacation mode use the below link:
//www.freelists.org/list/thin
************************************************

Other related posts: