Skip to main content

A script for pinging subnets.

Project description

PingSweeper

A Python script that runs pings to determine how many hosts are up on a specified subnet. This script will also run a DNS lookup to find host names if they are available.

Installation

Script can be installed using pip install pingsweeper

Requirements

Note: the script will need to be in the PATH environment variable to work as demonstrated here

Demo

Usage

Running the script:

pingsweeper

To show available arguments:

pingsweeper -h

Example with all available arguments:

pingsweeper -s 192.168.1.0/24 -t 0.5 -c 3
  • -s → Specifies the subnet in CIDR notation.
  • -r → Prompt for a range instead of entire subnet.
  • -t → Sets the timeout per ping (in seconds).
  • -c → Specifies the number of packets to send per host.

Once the script completes, the console will print a summary including the number of hosts ping, hosts that responded, and the results of all the hosts that were UP. A text file with the results will be generated at sweep_results/ and opened (assuming the system has a GUI).

Upgrading

To upgrade to the latest version:

python -m pip install --upgrade pingsweeper

To install a specific version:

python pip install pingsweeper==0.1.1

Possible issues

There have been cases where the following warning may be shown after installing the package which will not allow you to run pingsweeper as intended. If this is the case, then the file path highlighted will need added to the system PATH environment variable.

img.png

License

This project is licensed under the MIT License - see the LICENSE file for details.

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

pingsweeper-0.1.2.tar.gz (2.6 MB view details)

Uploaded Source

Built Distribution

pingsweeper-0.1.2-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file pingsweeper-0.1.2.tar.gz.

File metadata

  • Download URL: pingsweeper-0.1.2.tar.gz
  • Upload date:
  • Size: 2.6 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pingsweeper-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b845fae63b917c84769ca99d58754d14f0cfc65f2c6503b6a60502e2b6be0755
MD5 8aaee364733303498938d45387e2f8da
BLAKE2b-256 275acc49cbceb2dcd21a8193c3756bd5e96c0a0598f45041ea779f912c359c28

See more details on using hashes here.

File details

Details for the file pingsweeper-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: pingsweeper-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.4

File hashes

Hashes for pingsweeper-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 2030b36b22a88b3b11b39923fbc83135ef6c30763891989e99c437dfba3622e0
MD5 519aa314e8c3e7d705c484b10227f017
BLAKE2b-256 71d640ad4899dc3c2fad4ba8eccc989e882fada41e79866a308002de11f773a5

See more details on using hashes here.

Supported by

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