Network Pinger - Ping it
A simple command-line tool to ping a single IP address or a range of IP addresses to check their availability.
Features
- Ping a single IP address.
- Ping a range of IP addresses.
- Display results in a user-friendly format.
- Export data to excel.
Requirements
- Python 3.x
- Required libraries: requirements.txt
Installation
- Clone the repository:
git clone https://github.com/cuongitl/pyNetworkPinger.git
cd pyNetworkPinger
- Install the required libraries:
pip install -r requirements.txt
Usage
Quick mode
Ping a Single IP Address
To ping a single IP address, run the following command:
python pingit.py <IP_ADDRESS>
Replace <IP_ADDRESS>
with the actual IP address you want to ping.
Ping a Range of IP Addresses
To ping a range of IP addresses, use the following command:
python pingit.py <subnet>
Replace <subnet>
with the IP addresses of the range you want to ping.
Example
To ping a single IP address:
python pingit.py 192.168.1.1
To ping a range of IP addresses from 192.168.1.1/24
python pingit.py 192.168.1.0/24
Advanced mode
- Read IPs(subnet) from
data.yml
- Export the result to excel.
Please refer to the "main.py" file for more information.