Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ping fro classic asp

Status
Not open for further replies.

raghu3

Programmer
Dec 19, 2005
96
US
How can I ping a server from classic asp and check if the server is responding to this ping ?
If the ping fails, I will connect to an alternate server.
There are 7 such server , and I will connec to the 1st responding one.


 
set wshShell = CreateObject("WScript.Shell")
ping=Not CBool(wshShell.run("ping -n 1 " & hostname,0,True))

Works for me. I will run the ping in a small loop 1-7 and stop at the 1st response. There is no load balance here as all I have to do is connect to the 1st responding server.

Thanks a lot.

When ever I try the search feature on tek-tips, I get no results.

 
raghu3 said:
When ever I try the search feature on tek-tips, I get no results.
While there are some known issues with the search functionality, it is still passable and should return some sort of result set. Sometimes, you may need to make your search more general or look for any words as opposed to exact matches, but it should still work. What specifically were you attempting to search for and what filters were you using? That often can make a difference...

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top