[ajug-members] checking for server availability

msyoung at metlife.com msyoung at metlife.com
Fri Apr 6 12:27:04 EDT 2007


If you really want to check availability for web service traffic, read 
on...

During initial network setup, I have seen circumstances where ping works, 
telnet connection works, but HTTP POST does NOT work.
To determine availability for web services traffic (via HTTP POST), I like 
to send a "do nothing" request and check the response.  This sounds like 
your current approach.

Here is a handy manual test that can be done via telnet:
1) type "telnet {server} {port}"
2) type "POST /{SOAP enpoint path} HTTP/1.0"  (example:  "POST 
/webapp/appname/messagerouter HTTP/1.0"
3) type a blank line to signify the end of the HTTP header
4) although it may be an error, you should get some kind of HTTP response 
back if you reach the app server

I have seen this test fail when ping and telnet connections work.

P.S. - if you have a JVM handy, I have also seen AntEater 
(http://aft.sourceforge.net/) used to check for HTTP "200" response codes.

Mike Young | 678-319-1774 | msyoung at metlife.com 




"Barnes, Mike" <mike.barnes at cingular.com> 
Sent by: ajug-members-bounces at ajug.org
04/06/2007 10:19 AM
Please respond to
"General AJUG membership forum (100-200 messages/month)" 
<ajug-members at ajug.org>


To
ajug-members at ajug.org
cc

Subject
[ajug-members] checking for server availability






Is there a way to ping a host/port to see if it is available? I need to 
set up a heartbeat process and would like to do it as cheaply as possible 
(network time). The current way we are doing this is to send a known 
message to the server and wait for a response, I am not sure that this is 
the best way to check if a server is up or not.
 
Thanks
Mike Barnes_______________________________________________
ajug-members mailing list
ajug-members at ajug.org
http://www.ajug.org/mailman/listinfo/ajug-members


The information contained in this message may be CONFIDENTIAL and is for the intended addressee only.  Any unauthorized use, dissemination of the information, or copying of this message is prohibited.  If you are not the intended addressee, please notify the sender immediately and delete this message.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.ajug.org/pipermail/ajug-members/attachments/20070406/4c84fb58/attachment.html 


More information about the ajug-members mailing list