Network Pinger - Ping it

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

  1. Clone the repository:


   git clone https://github.com/cuongitl/pyNetworkPinger.git
   cd pyNetworkPinger

  1. 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.

Code? 





Viết nhận xét

Các bạn có thể viết lời nhận xét cho bài viết, nhưng cần tuân thủ một số quy tắc sau:

» Các nhận xét/bình luận phải nghiêm túc, không dung tục, không spam.
» Nội dung phải liên quan tới chủ đề bài viết.
» Viết bằng tiếng việt có dấu hoặc tiếng Anh. Nội dung viết không dấu sẽ bị xóa.
» Hãy để lại tên của bạn khi nhận xét/bình luận, để tôi có thể dễ dàng trả lời bạn khi cần.