#162255 - 2006-05-23 01:29 PM
check serverstatus
|
Gilrim
Fresh Scripter
Registered: 2005-07-19
Posts: 20
|
I'm writing a loginscript, and upon loading network shares I'd like to check if the server's online. I'm now doing this usin ping, but if a server is missing dns-records it takes ~8 secounds to time-out. This quicky would leave the script "hanging" - so, long story short: is there a better way?
also, I'm capturing the ping output thru wshPipe, that opens a console window. Are there any way of doing this without opening a terminal window, or hiding it?
|
|
Top
|
|
|
|
#162262 - 2006-05-23 02:28 PM
Re: check serverstatus
|
Mart
KiX Supporter
   
Registered: 2002-03-27
Posts: 4673
Loc: The Netherlands
|
Quote:
Allthough I find it nice that you trust my udf, It doesn't really say anything about the server state; It just checks if the NIC of the server is willing/able to reply to a ping request
You are right. It will not say anything about running services and stuff like that. It only gives a indication if the system is switched on and can be reached over the network.
My reply was about the use of wshpipe to get the ping results back to the script.
Edited by Mart (2006-05-23 02:29 PM)
|
|
Top
|
|
|
|
#162265 - 2006-05-23 06:15 PM
Re: check serverstatus
|
Gilrim
Fresh Scripter
Registered: 2005-07-19
Posts: 20
|
the records aren't missing, and the servers are online - but I'd like the script to "be prepared", if they should for some reason go down.
if a server doesn't resond to a ping, it's pretty fair to say that that server arent usable for any file shares Thus, there arent any reason to even attempt to connect to the remaining shares on that server...
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 756 anonymous users online.
|
|
|