fping-like python application
Project description
pyfping
ping-like pythonic pinger, works for multiple hosts
usage: ping.py [-h] [-f FILENAME] [-c COUNT] [-i INTERVAL] [-s SIZE] [host]
python ping script similar to fping
positional arguments:
host single target host
optional arguments:
-h, --help show this help message and exit
-f FILENAME, --file FILENAME
file contains host list
-c COUNT, --count COUNT
icmp packet count to a destination
-i INTERVAL, --interval INTERVAL
icmp packet interval to a destination
-s SIZE, --size SIZE icmp packet size
Result is like below:
admin$ pyfping -f some_file_contain_target_hosts
Ping www.baidu.com (110.242.68.3): 98 data bytes
Ping www.taobao.com (121.29.9.227): 98 data bytes
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=0 ttl=44 time=44.3398 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=0 ttl=46 time=38.8643 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=1 ttl=44 time=44.9580 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=1 ttl=46 time=38.3545 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=2 ttl=44 time=44.3999 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=2 ttl=46 time=38.4810 ms
106 bytes from www.baidu.com(110.242.68.3): icmp_seq=3 ttl=44 time=44.8110 ms
106 bytes from www.taobao.com(121.29.9.227): icmp_seq=3 ttl=46 time=39.9470 ms
--- www.baidu.com ping statistics ---
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min/avg/max/stddev = 44.34/44.63/44.96/0.26 ms
--- www.taobao.com ping statistics ---
4 packets transmitted, 4 packets received, 0.00% packet loss
round-trip min/avg/max/stddev = 38.35/38.91/39.95/0.63 ms
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pyfping-1.0.1.tar.gz
(6.0 kB
view details)
Built Distribution
File details
Details for the file pyfping-1.0.1.tar.gz
.
File metadata
- Download URL: pyfping-1.0.1.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78dd62ecee5d02ef32165f8d2362b24ddb448f2fc6f952a7c70b4739a2150dcc |
|
MD5 | 074b6e925ae98724be7cb631d75b8576 |
|
BLAKE2b-256 | b211bf8302c2132fc0308b89e40eff3d920991e54f79dfe8352a1f30f5b45da7 |
File details
Details for the file pyfping-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: pyfping-1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.9.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0a1468e6cc79495153aa25f7c6d43040a931782d37fc3b4b89275be8a5a0be0 |
|
MD5 | 059e98c01fcb1273e8e2452380d24dae |
|
BLAKE2b-256 | 36a433c814fc922aef63d5b971086a02b0564023c809257f29aa6c1b982dc6ae |