Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

Who is logged on with .vbs?

 
   Web Hosting and Web Master Forums (Home) -> IIS RSS
Next:  SMTP problem: some emails get stuck, smtp says i..  
Author Message
dfoxley

External


Since: Nov 12, 2003
Posts: 6



(Msg. 1) Posted: Thu Jun 10, 2004 2:12 pm
Post subject: Who is logged on with .vbs?
Archived from groups: microsoft>public>inetserver>iis (more info?)

Any scripts out there to get current IIS 6.0 server stats?

Dan Foxley

 >> Stay informed about: Who is logged on with .vbs? 
Back to top
Login to vote
user1580

External


Since: Apr 03, 2004
Posts: 367



(Msg. 2) Posted: Fri Jun 11, 2004 10:56 am
Post subject: Re: Who is logged on with .vbs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"dan foxley" <dfoxley DeleteThis @nospampacificdatavision.com> wrote in message
news:ONVJFaxTEHA.644@tk2msftngp13.phx.gbl...
 > Any scripts out there to get current IIS 6.0 server stats?
 >
 > Dan Foxley

which stats?
Logs or performance/memory?
for Logs you can get the IIS LOg parser...
<a style='text-decoration: underline;' href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a...73-b628</a>

I believe that Aaron Bertrand (a SQL MVP) has a lot of 'status' scripts for
IIS. But I just can't find them.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: Who is logged on with .vbs? 
Back to top
Login to vote
dfoxley

External


Since: Nov 12, 2003
Posts: 6



(Msg. 3) Posted: Fri Jun 11, 2004 10:56 am
Post subject: Re: Who is logged on with .vbs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I was thinking a .vbs to find out how many people on an IIS server and the
like, I guess I could just setup a Permon to show it, but though some
scripts might be around.

dan

"Egbert Nierop (MVP for IIS)" <egbert_nierop.DeleteThis@nospam.invalid> wrote in
message news:evPWuk3TEHA.1984@TK2MSFTNGP12.phx.gbl...
 > "dan foxley" <dfoxley.DeleteThis@nospampacificdatavision.com> wrote in message
 > news:ONVJFaxTEHA.644@tk2msftngp13.phx.gbl...
  > > Any scripts out there to get current IIS 6.0 server stats?
  > >
  > > Dan Foxley
 >
 > which stats?
 > Logs or performance/memory?
 > for Logs you can get the IIS LOg parser...
 >
<a style='text-decoration: underline;' href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a...73-b628</a>
 >
 > I believe that Aaron Bertrand (a SQL MVP) has a lot of 'status' scripts
for
 > IIS. But I just can't find them.
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Who is logged on with .vbs? 
Back to top
Login to vote
andrey

External


Since: Apr 12, 2004
Posts: 214



(Msg. 4) Posted: Fri Jun 11, 2004 10:19 pm
Post subject: Re: Who is logged on with .vbs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dan foxley wrote:
 > I was thinking a .vbs to find out how many people on an IIS server and the
 > like, I guess I could just setup a Permon to show it, but though some
 > scripts might be around.
 >
 > dan
 >
 > "Egbert Nierop (MVP for IIS)" <egbert_nierop.TakeThisOut@nospam.invalid> wrote in
 > message news:evPWuk3TEHA.1984@TK2MSFTNGP12.phx.gbl...
 >
  >>"dan foxley" <dfoxley.TakeThisOut@nospampacificdatavision.com> wrote in message
  >>news:ONVJFaxTEHA.644@tk2msftngp13.phx.gbl...
  >>
   >>>Any scripts out there to get current IIS 6.0 server stats?
   >>>
   >>>Dan Foxley
  >>
  >>which stats?
  >>Logs or performance/memory?
  >>for Logs you can get the IIS LOg parser...
  >>
 >
<font color=purple> > <a style='text-decoration: underline;' href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en</font" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a...73-b628</a>>
 >
  >>I believe that Aaron Bertrand (a SQL MVP) has a lot of 'status' scripts
 >
 > for
 >
  >>IIS. But I just can't find them.
  >>
 >

Just a simple solution - some code in global.asa for session_start and
session_end ....

<a style='text-decoration: underline;' href="http://www.aspfree.com/c/a/ASP/Introduction-To-The-GLOBAL.ASA-For-ASP-Programmers" target="_blank">http://www.aspfree.com/c/a/ASP/Introduction-To-The-GLOBAL.ASA-For-ASP-...grammer</a>

More complicated solutions - 3rd party counters components etc:

<a style='text-decoration: underline;' href="http://www.aspin.com/home/tutorial/sitestat/counter?qry=counters" target="_blank">http://www.aspin.com/home/tutorial/sitestat/counter?qry=counters</a>

-Andrey<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Who is logged on with .vbs? 
Back to top
Login to vote
user1580

External


Since: Apr 03, 2004
Posts: 367



(Msg. 5) Posted: Fri Jun 11, 2004 10:36 pm
Post subject: Re: Who is logged on with .vbs? [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"dan foxley" <dfoxley.RemoveThis@nospampacificdatavision.com> wrote in message
news:%23H4bm37TEHA.1284@TK2MSFTNGP10.phx.gbl...
 > I was thinking a .vbs to find out how many people on an IIS server and the
 > like, I guess I could just setup a Permon to show it, but though some
 > scripts might be around.

here you have a sample, made with VB6.
For vbs, just remove the 'as ...' so strong data types become variant.

Sub main()
Dim oLocator As SWbemLocator
Set oLocator = New SWbemLocator
Dim oService As SWbemObject
Dim oServices As SWbemServices
' connect local
Set oServices = oLocator.ConnectServer

Dim props As SWbemPropertySet
Dim prop As SWbemProperty
'dim subprop
Dim stringArray() As Variant
Dim longArray() As Variant
Dim intArray() As Variant
Dim cx As Long
For Each oService In
oServices.InstancesOf("Win32_PerfRawData_W3SVC_WebService")
Set oprops = oService.Properties_
For Each prop In oprops
Debug.Print prop.Name, ":";
If IsNull(prop.Value) Then
Debug.Print "null"
Else
If prop.IsArray Then
'loop through array here
Select Case prop.CIMType
Case wbemCimtypeString
' cast to more efficient data type
stringArray = prop.Value
For cx = 0 To UBound(stringArray)
Debug.Print stringArray(cx); ",";
Next
Debug.Print 'newline
Case wbemCimtypeUint16
intArray = prop.Value
For cx = 0 To UBound(intArray)
Debug.Print intArray(cx); ",";
Next
Debug.Print 'newline
Case wbemCimtypeSint32

longArray = prop.Value
For cx = 0 To UBound(longArray)
Debug.Print longArray(cx); ",";
Next
Debug.Print 'newline
Case Else
Debug.Print TypeName(prop.Value(0))
Stop
End Select
Else
Select Case prop.CIMType
Case wbemCimtypeString
Debug.Print prop.Value
Case wbemCimtypeSint32
Debug.Print prop.Value
Case wbemCimtypeUint32
Debug.Print prop.Value
Case wbemCimtypeObject
'set subprop
End Select
End If
End If
Next
Next
End Sub



 > dan
 >
 > "Egbert Nierop (MVP for IIS)" <egbert_nierop.RemoveThis@nospam.invalid> wrote in
 > message news:evPWuk3TEHA.1984@TK2MSFTNGP12.phx.gbl...
  > > "dan foxley" <dfoxley.RemoveThis@nospampacificdatavision.com> wrote in message
  > > news:ONVJFaxTEHA.644@tk2msftngp13.phx.gbl...
   > > > Any scripts out there to get current IIS 6.0 server stats?
   > > >
   > > > Dan Foxley
  > >
  > > which stats?
  > > Logs or performance/memory?
  > > for Logs you can get the IIS LOg parser...
  > >
 >
<a style='text-decoration: underline;' href="http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a-4c73-b628-ade629c89499&displaylang=en" target="_blank">http://www.microsoft.com/downloads/details.aspx?FamilyID=56fc92ee-a71a...73-b628</a>
  > >
  > > I believe that Aaron Bertrand (a SQL MVP) has a lot of 'status' scripts
 > for
  > > IIS. But I just can't find them.
  > >
 >
 ><!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: Who is logged on with .vbs? 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Order of Logged Options - I'm currently using AWStats (www.awstats.org) to analyze our logs and report. We recently upgraded to Windows Server 2003 (and obviously IIS6) and I noticed that while the same logging options are selected, the order of those options has changed! In fact...

HTTP Status 500 Logged for GET request for a GIF - My log file contains the following line: 2004-02-26 11:32:54 194.164.79.118 - 81.23.232.11 80 GET /images/footer/someone-coming-on.gif - 500 141 533 0 Mozilla/4.0+(compatible;+MSIE+6.0;+Windows+98) <snip> My fields are: date time c-ip cs-usernam...

The referenced account is currently locked out and may not.. - Hi All, I have an ASP application that must write uploaded files to a network fileshare. We have a account configured in the domain with full access to this fileshare. I am using this account and password as the anonymous user in the Directory Security....

ASP Error when no user is logged on to the server - We have a Windows 2000 server, with SQL Server 2000 on the same machine. We have a small web page accessing the SQL Server database. The web page works absolutely fine until we log off the server, then we get an ODBC error when the page attempts to...

file name not logged w/ custom 404 error script - Hello, I have created a custom 404 error page which is an ASP script. The script can determine the requested page (by looking at request.querystring) and then process the request as intended. However when I look in the web log file, I see the name....
   Web Hosting and Web Master Forums (Home) -> IIS All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]