Skip to main content

Concurrent multi-host ping (ICMP and TCP)

Project description

cPing

Build status Coverage status Downloads Maintainability PyPI version

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

alt text

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cping-0.1.11.tar.gz (27.8 kB view details)

Uploaded Source

Built Distribution

cping-0.1.11-py3-none-any.whl (34.0 kB view details)

Uploaded Python 3

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

Hashes for cping-0.1.11.tar.gz
Algorithm Hash digest
SHA256 89bcbd8d8d1c43dbb40b4a388c4178ecd7379ceb265baacf469ee17e7c4e5e81
MD5 3bdc90ee5d5b9fd83fe87d7c91fc5cc5
BLAKE2b-256 9a5b99896de4b0e4380ed2e5424ba2bd123f5ae22b75e6bdd1b3490c28a0eb7d

See more details on using hashes here.

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

Hashes for cping-0.1.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3929b3eae77f1de693fe93c5703a36b26ee0c6430ca6b81e43ba63ebc053df41
MD5 ee90e445ae2f1d5426b767d4ba6ac872
BLAKE2b-256 ccebf2f7ae3c993611620ae29a2c975d7c8e7b535f1ac78fc4902c62e1b4db18

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page