Wonderful tool traceroute monitor

There is one traceroute option which you might not have noticed so far: It is the monitor. I use this option during packet drop issues from time to time to see if there is any hop on the path which might be causing some drop or latency. It is extremely handy and you can also modify your monitoring parameters. I believe this is a very useful troubleshooting option. The column names are also intuitive but you can take a look at the documentation here for this command if you like.

root@srx2> traceroute monitor no-resolve 8.8.8.8 
                                                  My traceroute  [v0.69]
srx2 (0.0.0.0)(tos=0x0 psize=64 bitpattern=0x00)                                                 Fri Jun 12 18:42:51 2015
Keys:  Help   Display mode   Restart statistics   Order of fields   quit
                                                                                 Packets               Pings
 Host                                                                          Loss%   Snt   Last   Avg  Best  Wrst StDev
 1. 172.16.1.10                                                                 0.0%    41   10.1   9.8   8.8  10.1   0.2
 2. 192.168.8.7                                                                 0.0%    41    9.9   9.7   4.9  10.7   1.1
 3. 76.111.228.120                                                              0.0%    41    9.9  10.0   4.9  14.9   1.2
 4. 113.75.1.81                                                                 0.0%    41    9.8  11.6   4.9  19.7   3.4
 5. 113.75.1.80                                                                 0.0%    41   19.9  14.9   9.8  20.4   3.5
 6. 72.14.214.137                                                               0.0%    40    9.8  11.2   4.9  30.1   5.6
 7. 72.14.238.227                                                               0.0%    40   10.0   9.9   4.9  13.0   1.0
 8. 8.8.8.8                                                                     0.0%    40    9.6   9.7   5.0  10.6   1.1

This command helped you in any troubleshooting, then drop here a comment!

According to Matt’s comment, both Linux and FreeBSD has this tool. For more info about the tool and its history check the wiki page. Tool was originally called Matt’s traceroute due to its first writer 🙂 On an ubuntu host, “apt-get install mtr” will bring you this handy tool in a few seconds!

About: rtoodtoo

Worked for more than 10 years as a Network/Support Engineer and also interested in Python, Linux, Security and SD-WAN // JNCIE-SEC #223 / RHCE / PCNSE


4 thoughts on “Wonderful tool traceroute monitor”

  1. Great tool!! Really I love this so much, and knowing Junos is BSD based, I figured that there must be a variant of this tool for Linux. Using ubuntu as my primary desktop at the office I found mtr. I’ve uninstalled the traditional traceroute and have created, alias traceroute=”mgr”.

    I just wanted to thank you for bringing this to our attention!

      1. Thanks for the feedback Matt. I have updated the post with your feedback. I hadn’t checked that it is also available on Linux.

        Genco.

  2. does it work if we configured RI on juniper caz i cant see option instance or VPN

Leave a Reply to rtoodtooCancel reply

Discover more from RtoDto.net

Subscribe now to keep reading and get access to the full archive.

Continue reading