The My traceroute (MTR) program combines functionality found
in the ping and
traceroute programs to provide a useful tool to determine where
packet
loss may be occurring in a network path between source and
destination systems. It runs on
Linux,
OS X/macOS,
and Microsoft Windows systems. To install it on an
OS X/macOS system, you can compile the source code into an executable
program or you can use a
package management system, such as
Homebrew, for installing the software. If you
install Homebrew, you can use the
command brew install mtr
to install MTR.
$ brew install mtr ==> Downloading https://homebrew.bintray.com/bottles/mtr-0.87.el_capitan.bott 1. ####################################### 54. ######################################################################## 100.0% ==> Pouring mtr-0.87.el_capitan.bottle.tar.gz ==> Caveats mtr requires root privileges so you will need to run `sudo mtr`. You should be certain that you trust any software you grant root privileges. ==> Summary 🍺 /usr/local/Cellar/mtr/0.87: 8 files, 137.4KB $
After installing mtr, you can run the program with the command
sudo /usr/local/sbin/mtr
. E.g.:
$ sudo /usr/local/sbin/mtr -c 5 --report google.com Password: Start: Sun May 7 15:30:47 2017 HOST: GSSLA15122293 Loss% Snt Last Avg Best Wrst StDev 1.|-- 0.0% 5 1.2 1.3 1.2 1.6 0.0 2.|-- 192.168.1.1 0.0% 5 6.9 6.8 5.4 8.5 1.2 3.|-- 192.168.0.1 0.0% 5 21.1 12.3 4.8 21.1 8.1 4.|-- 10.173.0.1 0.0% 5 22.9 17.7 14.0 22.9 3.3 5.|-- 172.23.112.145 0.0% 5 25.8 21.7 15.5 26.5 4.6 6.|-- 172.23.112.154 0.0% 5 20.1 23.4 19.3 29.7 4.7 7.|-- te0-16-0-24.ccr41.iad02.a 0.0% 5 30.8 25.4 21.7 30.8 3.8 8.|-- tata.iad02.atlas.cogentco 0.0% 5 43.5 39.4 22.0 71.4 19.5 9.|-- 72.14.198.28 0.0% 5 28.9 27.6 19.6 36.3 6.4 10.|-- 108.170.240.97 0.0% 5 24.0 24.1 18.0 32.4 5.1 11.|-- 216.239.54.15 0.0% 5 25.8 29.6 25.8 31.5 2.2 12.|-- google.com 0.0% 5 40.4 26.6 19.7 40.4 8.1 $
Related articles: