Concurrent multi-host ping (ICMP and TCP)
Project description
cPing
cPing concurrently checks if hosts are responding using ICMP echo or TCP SYN.
Installation
pip3 install cping
Usage
cPing uses unprivileged sockets; no need for root privileges.
cping host1 host2
Tip: When you launch cPing, look at the footer; it's got some useful actions.
Help
See the available arguments to adjust the behavior of cPing or use a different protocol.
cping -h
If you found a bug, or just have a question/suggestion, please open an issue (greatly appreciated).
Sparkline on Windows
The sparkline (right part of the screenshot) is simplified on Windows as it doesn't support the required block characters. If you know of any substitutes, let me know.
Unprivileged ICMP Sockets
If you're getting a Permission denied
exception, it is likely that your OS is
too old to have unprivileged ICMP sockets enabled by default. You can enable
this with:
sudo sh -c 'echo net.ipv4.ping_group_range = 0 2147483647 >> /etc/sysctl.conf'
sudo sysctl -p
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
Built Distribution
File details
Details for the file cping-0.1.11.tar.gz
.
File metadata
- Download URL: cping-0.1.11.tar.gz
- Upload date:
- Size: 27.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89bcbd8d8d1c43dbb40b4a388c4178ecd7379ceb265baacf469ee17e7c4e5e81 |
|
MD5 | 3bdc90ee5d5b9fd83fe87d7c91fc5cc5 |
|
BLAKE2b-256 | 9a5b99896de4b0e4380ed2e5424ba2bd123f5ae22b75e6bdd1b3490c28a0eb7d |
File details
Details for the file cping-0.1.11-py3-none-any.whl
.
File metadata
- Download URL: cping-0.1.11-py3-none-any.whl
- Upload date:
- Size: 34.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.9.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3929b3eae77f1de693fe93c5703a36b26ee0c6430ca6b81e43ba63ebc053df41 |
|
MD5 | ee90e445ae2f1d5426b767d4ba6ac872 |
|
BLAKE2b-256 | ccebf2f7ae3c993611620ae29a2c975d7c8e7b535f1ac78fc4902c62e1b4db18 |