473,396 Members | 1,779 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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 1302
> 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.googlegr oups.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.googlegr oups.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("WScript.Shell")
For i = 0 To 39
Set exec = shell.Exec("ping google.com -n 1")
Response.Write exec.StdOut.ReadAll()
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
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...
16
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,...
6
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...
5
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
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...
1
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...
2
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...
1
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...
2
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.