473,804 Members | 3,204 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Doing 40 differnt things at once

I'm building a statistics page and would like to ping a server and show
the result in ASP. This shouldn't be a problem, but I'd like to be
able to get the same information for 40 other servers all at the same
time.

The only solution I can think of would be to put the list of servers
into an array and loop through it. But this approach would take
seconds to process each server and therefore the entire page would take
an age to load.

Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds? I've never done
anything like this before so I have no idea where to start.
Any suggests or comments would be greatly appreciated.

TIA,

Colin

Jul 22 '05 #1
5 1318
> Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds?
Probably not (best people to ask would be Aaron Bertrand, Ray Constanzo or
Bob Barrows)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

<co************ @gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. . I'm building a statistics page and would like to ping a server and show
the result in ASP. This shouldn't be a problem, but I'd like to be
able to get the same information for 40 other servers all at the same
time.

The only solution I can think of would be to put the list of servers
into an array and loop through it. But this approach would take
seconds to process each server and therefore the entire page would take
an age to load.

Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds? I've never done
anything like this before so I have no idea where to start.
Any suggests or comments would be greatly appreciated.

TIA,

Colin

Jul 22 '05 #2
co************@ gmail.com wrote:
I'm building a statistics page and would like to ping a server and
show the result in ASP. This shouldn't be a problem, but I'd like to
be able to get the same information for 40 other servers all at the
same time.

The only solution I can think of would be to put the list of servers
into an array and loop through it. But this approach would take
seconds to process each server and therefore the entire page would
take an age to load.

Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds? I've never done
anything like this before so I have no idea where to start.
Any suggests or comments would be greatly appreciated.

TIA,

Colin

I suspect you will need to find a third-party component capable of doing
asynchronous pings (I'm not sure such a beast even exists - maybe you should
ask on .iis or .asp.components ). I know this is not possible using asp by
itself.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"
Jul 22 '05 #3
OK thanks Bob, I thought as much!

Jul 22 '05 #4
<co************ @gmail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
I'm building a statistics page and would like to ping a server and show
the result in ASP. This shouldn't be a problem, but I'd like to be
able to get the same information for 40 other servers all at the same
time.

The only solution I can think of would be to put the list of servers
into an array and loop through it. But this approach would take
seconds to process each server and therefore the entire page would take
an age to load.

Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds? I've never done
anything like this before so I have no idea where to start.
Any suggests or comments would be greatly appreciated.

TIA,

Colin

What kind of response times are you getting from your servers. I did a proof
of concept against google.com and it took approximately 7 seconds with and
average response time of about 85ms. Here's the code:

<%
Dim start : start = Timer
Dim shell, exec, i
Response.Write "<pre>"
Set shell = CreateObject("W Script.Shell")
For i = 0 To 39
Set exec = shell.Exec("pin g google.com -n 1")
Response.Write exec.StdOut.Rea dAll()
Next
Set exec = Nothing
Set shell = Nothing
Response.Write "</pre>"
Response.Write Timer - start
%>
Jul 22 '05 #5
<co************ @gmail.com> wrote...
Is there any way ASP can ping all the server at the same time so that
the results for all server could be seen in seconds? I've never done
anything like this before so I have no idea where to start.
Any suggests or comments would be greatly appreciated.


Slightly different approach perhaps and it relies on SQL Server if you have
it...but you *could*.... have SQL Server ping the servers and record the
results to a table, run this in a job at what ever frequency you wanted, per
minute, per hour etc, then in the ASP just dump the table results to the
page - you could add a feature to the page enabling a user to get a 'real
time' result but warn them it might take longer to load...

Just a suggestion

Regards

Rob
Jul 22 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

17
2652
by: Paul | last post by:
HI! I get an error with this code. <SCRIPT language="JavaScript"> If (ifp==""){ ifp="default.htm"} //--></SCRIPT> Basicly I want my iframe to have a default page if the user enters in directly. so I need a way doing this. so I check to see if the ifp value is null and if so then assign it a value. is this correct?
16
2074
by: Shelly | last post by:
(posted previously on comp.lang.php but no response received. Cross-posted in the dreamweaver forum) I am confused about what goes on with method POST. Here is an overview of a my code, sketching it out: <?php if (isset($_POST) && $_POST=="Submit") { ---Do a bunch of stuff--- if (isset($_SESSION)) unset($_SESSION);
6
6586
by: Michael Sparks | last post by:
Hi, I suspect this is a bug with AMK's Crypto package from http://www.amk.ca/python/code/crypto , but want to check to see if I'm being dumb before posting a bug report. I'm looking at using this library and to familiarise myself writing small tests with each of the ciphers. When I hit Crypto.Cipher.ARC4 I've
5
1641
by: Stephan Gehrlein | last post by:
What do I have to do to get help from other newsgroup members? Whenever I try to get help from the NG I never get results... If I do something wrong, please tell me about it! Stephan
27
1923
by: Greg Smith | last post by:
Hello, I have been given a programming task that falls into the "impossible" category with my current skill set. I am hoping somebody out there knows how to do this and can save my b-t. I work for a large University. I wrote a Windows-based database application for my department that is used in purchasing. The University has just released Web-base application that does the same thing using a sub set of the data that my application...
1
2711
by: Manoj Nair | last post by:
Hi, The problem : Have a system tray application.This has a menu item 'Exit'. On click of this a differnt application with a UI which runs in the background should close. The other application requires a Keyboard combination of Ctrl + Shift + Alt + X to close it properly. After closing the other application the tray app should exit. (Process.Kill cannot be used)
2
2713
by: Aaron Ackerman | last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried everything and I am at a loss. The using goes into add mode with the add button adds his data then updates with the update button, seems simple. I am using ALL visual controls (supposedly to simplify things. If I was not using the visual controls and calling an ExecuteNonQuery no prob. Please look at my code and tell me what I am doing wrong. Also, what are the advatages...
1
1369
by: srinivd1 | last post by:
Hi, I have a tabbed pane with 3 tabs.The content of each pane is going to be a different html based on from where the page is called. Now, i have defined the div tag for each of the panes as below: <div id="tab1" ></div> The content inside this has to b a differnt HTML. Can some1 tell me how i could call the differnt HTML from this div tag. Please help!
2
1082
by: ksrashmi | last post by:
Hi we have 3 database . i want to connect to 3 differnt database using same code , it is web application . we are using connection pooling , how can i do this ? any idea pls help me .
0
9706
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10578
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10321
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10077
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7620
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6853
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5651
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4300
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3820
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.