Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: Find out if a host is alive

Reply
Thread Tools

RE: Find out if a host is alive

 
 
Robert Brewer
Guest
Posts: n/a
 
      10-04-2003
If you can run code on both ends, check out Nicola Larosa's PyHeartBeat
in the Cookbook:

http://aspn.activestate.com/ASPN/Coo...n/Recipe/52302


Robert Brewer
MIS
Amor Ministries
http://www.velocityreviews.com/forums/(E-Mail Removed)

-----Original Message-----
From: Anand Pillai [mailto(E-Mail Removed)]
Sent: Saturday, October 04, 2003 8:36 AM
To: (E-Mail Removed)
Subject: Find out if a host is alive


I would like to add a feature to one of my network programs.
The requirement is to find out if a server is alive by sending
it requests. I know of the standard ICMP ping, and searched
for python modules able to 'PING'. The only hit I got was Jeremy
Hiltons ping package, written for Python 1.4, and it does not
work with the latest Python versions (2.0 upwards).

Are there other ways of finding out (in a few lines of code)
whether a server is alive, apart from the ICMP protocol?

Thanks for your help.

-Anand
--
http://mail.python.org/mailman/listinfo/python-list

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How keep python socket alive for ever by setting Keep alive flag. hisan Python 1 06-25-2012 05:30 PM
Cisco PIX 501 - Port forwarded to an internal host via Static NAT doesn't work from internal host JoelSeph Cisco 9 01-23-2006 03:52 PM
PIX: how to allow 1 host from outside interface to access another host on the inside interface? jonnah Cisco 1 04-21-2004 02:26 PM
Find out if a host is alive Anand Pillai Python 2 10-05-2003 01:13 PM
request.getHeader("Host") returns wrong host name Orpheus66 Java 0 07-30-2003 02:59 PM



Advertisments