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
- Python - https://www.python.org
Note: the script will need to be in the PATH environment variable to work as demonstrated here
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.
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
Built Distribution
File details
Details for the file pingsweeper-0.1.3.tar.gz
.
File metadata
- Download URL: pingsweeper-0.1.3.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
Algorithm | Hash digest | |
---|---|---|
SHA256 |
06702482a2e0b3b139751cfda732c888b7a9b92f73fc1b7ec9647e1c896d053c
|
|
MD5 |
9fc1cd03805ec5207da70f8b3f6ad238
|
|
BLAKE2b-256 |
6a059a70e8825b95487d44f85041ffdbbd5a281a8d185c408352c1ab37c39e78
|
File details
Details for the file pingsweeper-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: pingsweeper-0.1.3-py3-none-any.whl
- Upload date:
- Size: 13.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 |
1a2756107032e43b3d6fb3870f7934d8097b6502ab61b512e7ae31ae22ac850c
|
|
MD5 |
fe89f4dff9dc051097c4b440dce29e89
|
|
BLAKE2b-256 |
8ffd6d6203bc35226a50ef4699872f946a469f25425ce8fcefe069a54aa58ac3
|