gping Ping with a graph

Version 1.15.1 · source

Start here

gping <host>
Graph ping latency
gping <a> <b>
Compare hosts
gping --cmd "<cmd>"
Graph command time
gping -n 1 <host>
Slower updates
gping -b 120 <host>
Longer history
gping -s <host>
Plain dot graph
gping -c red,blue <a> <b>
Set colors
gping aws:<region>
Ping a cloud region

Concepts

  1. Targets hosts or commands
  2. Ping / run measure time
  3. Live graph one line each

Ping

gping <host>
Graph latency to a host
gping <host1> <host2>
Compare several hosts
gping aws:<region>
Ping a cloud region, e.g. aws:eu-west-1
gping -4 <host>
Resolve to IPv4
gping -6 <host>
Resolve to IPv6
gping -i <interface> <host>
Ping through an interface
Handy to compare Wi-Fi and Ethernet paths.
gping --clear <host>
Wipe the graph on exit

Command timing

gping --cmd "<command>"
Graph how long a command takes
gping --cmd "<cmd1>" "<cmd2>"
Compare commands
gping --cmd -n 2 "<command>"
Run the command every 2 seconds
Default interval is 0.5 s for commands, 0.2 s for ping.

Timing and history

gping -n <seconds> <host>
Set update interval (0.5 allowed)
gping -b <seconds> <host>
Seconds of history shown (default 30)

Appearance

gping -s <host>
Dots instead of braille
Use when the terminal font lacks braille glyphs.
gping -c <color> <host>
Line color: name or #RRGGBB
gping -c red,blue <a> <b>
Colors match targets in order
gping --vertical-margin <n> <host>
Space above and below the graph
gping --horizontal-margin <n> <host>
Space left and right of the graph

Help

gping --help
List all options
gping --version
Show installed version

Recipes

Compare DNS resolvers
gping 1.1.1.1 8.8.8.8 9.9.9.9
Pin a network path
gping -i wlan0 1.1.1.1# swap in eth0 and compare the two runs
Watch a web request
gping --cmd "curl -so /dev/null https://example.com"
Long, readable capture
gping -n 1 -b 300 -s -c light-green,yellow <a> <b>