Wrox Programmer Forums
|
ASP Pro Code Clinic As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Pro Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 5th, 2004, 08:13 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default How Many Users Have Accessed A Given File???

Hello Gr8 ASPians,

I m working for a company which provides a live cricket score to the users. We have an application[downloadable from the site] which reads a simple ascii file containing score.

Now, the company wants me to figure-out as to how-many users are currently using the application at a given time.

At this junction, i cannot modify my application, as it is already in the Live-State..The only thing i have on my side the file which the application is accessing to read score.

Is there any way out to keep the track as to how many users are currently accessing that file.

Your help will be appriciated...
Thanks in Advance...& Take Care...

Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old May 5th, 2004, 08:49 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

Try looking in the IIS logs for how many different IP's are accessing your site, or you can also use a third-party tool to track this kind of information. That's one way.

Brian
 
Old May 5th, 2004, 11:38 PM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello Brian,

Thanks for replying to my query.
Can u kindly elaborate on the solutions give by u. Meaning, as to how to programmatically read the IIS Log and that to the ips which accessed the particular file in my question
 OR
Which are the 3rd Party Tools for cracking such things, Are they FREEWARE/SHAREWARE & where r they available???

I know i m troubling u a lot...but if u help me out..that will be gr8

I too, am hunting the solution on the lines given by u

Thanks Again



Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old May 6th, 2004, 07:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,998
Thanks: 0
Thanked 3 Times in 3 Posts
Default

Hello,

I'm not a networking person, so I am not familiar with available tools. I know that at work we do have some tools that monitor performance though. If you do a search on the web I'm sure you would find some. Also, in IIS, right-click "default web site", select properties option, on the "Web Site" tab, at the bottom where logging is displayed, click the Properties button, at the bottom it tells you where your IIS log will exist. This log is a text file, which you could use to strip out IP's using regular expressions, most likely. Again I haven't done anything like this so you basically will have to look for patterns in the logged entries to search for.

Hope this helps,

Brian
 
Old May 6th, 2004, 11:55 PM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Brian,

I really appriciate the way u reciprocate to my queries. Thanks...
As u said, one can go in the IIS & check-out the default web site, properties..so on for the IIS Log..

But, since out site is being hosted by somebody else..i can't access the Server directly..

Also i found that there is a dll {logscrpt.dll}, which comes with the Win2000 and one can use the same for accessing the IISLog, by creating the instance as follows:

Set oVar = Server.CreateObject( MSWC.IISLog )

But the above thing fails to create the instance of the IISLog on my server..that means the dll is absent on the server or is not registerd properly

so using method of the IISlog is out-of-question

This is the scenario here..

Thanks once again..






Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old May 24th, 2004, 12:52 AM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 1,870
Thanks: 12
Thanked 20 Times in 20 Posts
Send a message via AIM to mat41
Default

Have you used a global.asa file before?
You can achieve this using the session_on_start
                               application_start....
downloadable application??
do they all acces the same page? if so this is an option


Wind is your friend
Matt





Similar Threads
Thread Thread Starter Forum Replies Last Post
'CDO.Message' Object Couldn't be Accessed! shiraz BOOK: ASP.NET Website Programming Problem-Design-Solution 2 December 7th, 2005 11:27 AM
Can Forms/controls be accessed remotely wizbang Pro VB 6 0 November 11th, 2004 07:46 PM
Linking to the last accessed page mahulda ASP.NET 1.0 and 1.1 Basics 4 July 27th, 2004 12:49 AM
Creating a log file for multiple users patwadd Classic ASP Basics 19 June 24th, 2004 08:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.