Ping Status Tool is a simple but effective Python script that allows you to quickly check the status of multiple IP addresses from a file. It displays the "UP" and "DOWN" hosts in a colorful, well-structured table, with a progress bar showing the ping advancement.
- 🟢 Displays accessible hosts (UP) in green.
- 🔴 Displays inaccessible hosts (DOWN) in red.
- 🔄 Progress bar showing the status of IP pings.
- 📄 Takes as input a file containing a list of IP addresses to ping.
Start by cloning the GitHub repository to your local machine.
git clone https://github.com/clab60917/ping_status.git
cd ping_status
Before using the tool, you need to make the script executable:
chmod +x ping_status.py
To run the script from anywhere, you can add it to your PATH
or move it to /usr/local/bin/
:
sudo mv ping_status.py /usr/local/bin/
The tool is easy to use. It takes a text file as an argument containing the list of IP addresses to ping.
./ping_status.py /path/to/target.txt
If your target.txt
file contains the following IP addresses:
192.168.1.1
8.8.8.8
1.1.1.1
Run the following command:
./ping_status.py target.txt
The output will look like this:
Pinging IPs: 100%|██████████████████████████| 3/3 [00:03<00:00, 1.00ip/s]
UP | DOWN
----------------------------------------
8.8.8.8 | 192.168.1.1
1.1.1.1 |
----------------------------------------
This project uses a few external Python libraries. Install them using pip
if they are not already available on your system:
pip install termcolor tqdm
subprocess
: to execute theping
command.termcolor
: to colorize the IP addresses in the terminal.tqdm
: to display the progress bar.
This project is licensed under the MIT License - see the LICENSE file for details.
Developed with ❤️ by clab60917