gpin
带图形化界面的 ping

作用
- 可以同时ping多个域名或ip
- 支持Windows, Mac 和 Linux 系统
安装
docker pull ghcr.io/orf/gping:gping-v1.15.1
使用
[root@gentlewok ~]# docker run --rm -ti --network host ghcr.io/orf/gping:gping-v1.15.1--helpPing, but with a graph.Usage: gping [OPTIONS][HOSTS_OR_COMMANDS]...Arguments:-
[HOSTS_OR_COMMANDS]...HostsorIPs to ping,or commands to run if--cmd is provided.Canuse cloud shorthands like aws:eu-west-1. Options:-
--cmd -
Graph the execution time for a list of commands rather than pinging hosts -
-n,--watch-interval <WATCH_INTERVAL> -
Watch interval seconds (provide partial seconds like '0.5').Defaultfor ping is0.2,defaultfor cmd is0.5. -
-b,--buffer <BUFFER> -
Determines the number of seconds to display in the graph.[default:30] -
-4 -
Resolve ping targets to IPv4 address -
-6 -
Resolve ping targets to IPv6 address -
-i,--interface<INTERFACE> -
Interface to usewhen pinging -
-s,--simple-graphics -
Uses dot characters instead of braille -
--vertical-margin <VERTICAL_MARGIN> -
Vertical margin around the graph (top and bottom)[default:1] -
--horizontal-margin <HORIZONTAL_MARGIN> -
Horizontal margin around the graph (left and right)[default:0] -
-c,--color <color> -
Assign color to a graph entry. -
This option can be defined more than once as a comma separated string,and the order which the colors are provided will be matched against the hosts orcommands passed to gping.-
Hexadecimal RGB color codes are accepted in the form of '#RRGGBB'or the following color names:'black','red','green','yellow','blue','magenta',-
'cyan','gray','dark-gray','light-red','light-green','light-yellow', -
'light-blue','light-magenta','light-cyan',and'white' -
--clear -
Clear the graph from the terminal after closing the program -
-h,--help -
Print help -
-V,--version -
Print version
主要参数
-4解析ipv4-i 指定某网卡
样例
指定ens33网卡下同时ping 3个域名并解析ip:
代码语言:javascript复制 docker run --rm -ti --network host ghcr.io/orf/gping:gping-v1.15.1 www.jd.com www.pinduoduo.com www.bytedance.com -4 -i ens33


