Find out if a host is alive

Robert Brewer fumanchu at amor.org
Sat Oct 4 13:51:58 EDT 2003


If you can run code on both ends, check out Nicola Larosa's PyHeartBeat
in the Cookbook:

http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/52302


Robert Brewer
MIS
Amor Ministries
fumanchu at amor.org

-----Original Message-----
From: Anand Pillai [mailto:pythonguy at Hotpop.com] 
Sent: Saturday, October 04, 2003 8:36 AM
To: python-list at python.org
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





More information about the Python-list mailing list