The pingall
script is a versatile tool designed to enhance the efficiency and comprehensiveness of pinging hosts. It extends the functionality of traditional ping
commands by supporting both IPv4 and IPv6 addresses and allows users to ping hosts specified by URLs, including those with HTTP/HTTPS protocols and paths.
- Supports both IPv4 and IPv6: Capable of pinging both IPv4 and IPv6 addresses.
- URL Pinging: Directly pings URLs with HTTP or HTTPS protocols, including URLs with paths (e.g.,
https://example.com/abc/def
). - Automatic Address Type Recognition: Discerns between IPv4 addresses, IPv6 addresses, and domain names.
- Flexible Parameter Passing: Passes additional ping parameters to both
ping
andping6
commands.
Download the pingall.sh
script from this repository.
Grant execution permissions to the script using the command:
chmod +x pingall.sh
Link the script to a system path (such as /usr/local/bin) to make it globally accessible:
ln -s pingall.sh /usr/local/bin/pingall
Verify the script's availability by executing:
pingall -h
The script follows the standard ping command structure, with some extensions:
pingall [OPTIONS]... [HOST]...
-h
,--help
: Display the help information.-c
count: Set the number of ping attempts.
And, ALL standard ping and ping6 options are also SUPPORTED.
- Pinging a single host:
pingall google.com
- Pinging a URL with HTTP/HTTPS protocol:
pingall http://cloudflare.com/test
- Specifying the ping count:
pingall -c 4 google.com