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

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.
  • -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).

License

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

Feel free to customize the README.md file to better suit your project's needs. If you have any more questions or need further assistance, let me know!

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.1.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

pingsweeper-0.1.1-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pingsweeper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 27ba4d4a4bd701d0c5580039c3ba1b6c1bbd8624b1c1ec2b4bca479d383a07dc
MD5 3ab54e80b738f4f77757e1b32fa11e4b
BLAKE2b-256 ebebdc91f1668bf3cc0012f1c677d7277b1f6a94d3a5a22a2f6080822ed90f0d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pingsweeper-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0273d43f4b077b01fb06c9e9a989ce44a541b5db361b9b5aad4031d8b5c5a8e3
MD5 f280bb1286570f1f8167726cb50581ca
BLAKE2b-256 cfdee5e0a3964335bf7dc08b9f0c19c71a4a06ab02a9cbbb5a660922d2f0708e

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