By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,742 Members | 1,044 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,742 IT Pros & Developers. It's quick & easy.

Ping Implementation in Python

P: n/a
Hi,
I was wondering if there was a ping implementation written in
Python. I'd rather using a Python module that implements ping in a
platform/OS-independent way than rely on the underlying OS, especially
as every OS has a different implementation. Furthermore, if you're
going to ping a large number of IPs, using a module would probably be
a lot faster. Any ideas if such a module exists? Thanks.
Dec 20 '07 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Dec 20, 2007 9:41 AM, Mrown <ma*********@fastmail.fmwrote:
Hi,
I was wondering if there was a ping implementation written in
Python. I'd rather using a Python module that implements ping in a
platform/OS-independent way than rely on the underlying OS, especially
as every OS has a different implementation. Furthermore, if you're
going to ping a large number of IPs, using a module would probably be
a lot faster. Any ideas if such a module exists? Thanks.

There's no point in having a script that pings things, especially
large numbers of IPs. If you really want to do network scanning other
tools for that already exist.
Dec 20 '07 #2

P: n/a
On Dec 20, 6:13 pm, "Chris Mellon" <arka...@gmail.comwrote:
On Dec 20, 2007 9:41 AM, Mrown <mathewbr...@fastmail.fmwrote:
Hi,
I was wondering if there was a ping implementation written in
Python. I'd rather using a Python module that implements ping in a
platform/OS-independent way than rely on the underlying OS, especially
as every OS has a different implementation. Furthermore, if you're
going to ping a large number of IPs, using a module would probably be
a lot faster. Any ideas if such a module exists? Thanks.

There's no point in having a script that pings things, especially
large numbers of IPs. If you really want to do network scanning other
tools for that already exist.
Thanks. Actually, I was more interested in the OS neutral part than
in pinging a large number of IPs. Instead, I want to ping a number of
IPs (under 10) in an OS/platform independent manner and take the
necessary action depending on the results. Thanks.
Dec 20 '07 #3

P: n/a
Nel mezzo del cammin di nostra vita, mi ritrovai con Mrown che diceva:
Hi,
I was wondering if there was a ping implementation written in
Python. I'd rather using a Python module that implements ping in a
platform/OS-independent way than rely on the underlying OS, especially
as every OS has a different implementation. Furthermore, if you're
going to ping a large number of IPs, using a module would probably be a
lot faster. Any ideas if such a module exists? Thanks.

Get Scapy, it's one of the best tool for this kind of problem, and it's
Python based

--
"Le opinioni dei fanatici prescindono dai fatti"
python -c "print 'bG9ybWF5bmFAZ21haWwuY29t'.decode('base64')"
Dec 20 '07 #4

P: n/a
On Dec 20, 5:41 am, Mrown <mathewbr...@fastmail.fmwrote:
Hi,
I was wondering if there was a ping implementation written in
Python.
http://www.gnist.org/~lars/code/ping/ping.html
Dec 20 '07 #5

P: n/a
Roger Miller wrote:
On Dec 20, 5:41 am, Mrown <mathewbr...@fastmail.fmwrote:
Hi,
I was wondering if there was a ping implementation written in
Python.

http://www.gnist.org/~lars/code/ping/ping.html
Thanks for your replies. I'll probably start invesigating with
Roger's suggestion. Scapy would definitely be able to do the job, but
it's a little too much if all I want is to ping the host.
Furthermore, to even get it to run on an OS such as Windows, you have
to install a number of additional packages (refer to
http://trac.secdev.org/scapy/wiki/Wi...tallationGuide) which will
make deployment in an OS/platform neutral way more difficult.
Dec 22 '07 #6

This discussion thread is closed

Replies have been disabled for this discussion.