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. 5 2193
On Dec 20, 2007 9:41 AM, Mrown <ma*********@fa stmail.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.
On Dec 20, 6:13 pm, "Chris Mellon" <arka...@gmail. comwrote:
On Dec 20, 2007 9:41 AM, Mrown <mathewbr...@fa stmail.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.
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 'bG9ybWF5bmFAZ2 1haWwuY29t'.dec ode('base64')"
Roger Miller wrote:
On Dec 20, 5:41 am, Mrown <mathewbr...@fa stmail.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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mike Mallory |
last post by:
Can Java perform two pings at one time and display the best ping time
with the best result?
Also, can Java perform two trace routes at one time and display the
trace with the fewest hops?
Thank you for your help.
Mike
|
by: Alberto Vera |
last post by:
Hello:
Is it possible to make "ping" from Python and get statistics like using command prompt from Windows?
How Can I capture them into variables?
Thanks
Pinging XXXX.XXXX.XXXX.XXXX with 32 bytes of data:
|
by: Count László de Almásy |
last post by:
Greetings,
I'm in need of a simple GUI application that "monitors" a range of
hosts using ping and reports on their status by changing the panel
color for that host (i.e, green for pingable, red for unreachable).
Does anyone know of any existing opensource program that does this?
Preferably Python so I can extend it easily.
If not, what tools would you recommend I write this kind of app in?
|
by: Jason Rodman |
last post by:
I have downloaded every example on how to create a ping utility in .Net in
both VB and C#, but have been disappointed with the results. I have YET to
find an example that returns consistent results that are even close the the
actual ping command line utility. For example:
If i would ping the same server over and over, some pings would come back in
0 milliseconds, others would come back in 15, but never in between. It would
always jump...
|
by: Nico Grubert |
last post by:
Hi there,
I could not find any "ping" Class or Handler in python (2.3.5) to ping a
machine.
I just need to "ping" a machine to see if its answering. What's the best
way to do it?
Kind regards,
Nico
| |
by: Linus Cohen |
last post by:
Hi all,
I'm a newbie to python and programming in general, so I wanted a
simple project to start off. What I'm trying to do here is write a
python command-line ping program, much like the Unix and Windows ping
programs. I've got this much worked out already:
class ping
def PING(IP, pings, size):
and that's where I stop, because I realize I have no idea how to make
|
by: Mauro \Baba\ Mascia |
last post by:
Hi, this is my question:
I want to know if several switch (about 50) in a big lan are up and then
know their MAC addresses to do a list that contains host name, ip and mac.
I know only the range of their IP addresses (the host name it's simply
to know using socket.gethostn.
The first idea it's to ping all ip, parse the response and then execute
the command "arp -a" and parse the response.
However this way depends on the operating...
|
by: Karl Kobata |
last post by:
Hi Fredrik,
This is exactly what I need. Thank you.
I would like to do one additional function. I am not using the tokenizer to
parse python code. It happens to work very well for my application.
However, I would like either or both of the following variance:
1) I would like to add 2 other characters as comment designation
2) write a module that can readline, modify the line as required, and
finally, this module can be used as the...
|
by: ScottZ |
last post by:
With python 2.6 and wxpython I'm trying to create a system tray icon
application based around an example found here:
http://codeboje.de/MailSneaker-Part-3-SystemTrayTaskBar-Icons-with-Python-and-wxPython/
The application will simply change the systray icon based on if an ip
address is online or not.
The ping portion looks like this:
if os.name == "nt": # Windows
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
| |
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |