OSX MTR – Combine ping and traceroute with MTR

mtr for Mac OS X

June 14th, 2006

MTR is a useful command-line utility which combines ping and traceroute to display the path packets are taking between two machines.

I’ve compiled mtr-0.71 it for Mac OS X, and you can get it here: mtr.zip. or mtr

The zip file contains a universal binary, a man page, and a README file telling you what to do with them.

If you like this, you might also like my ports of wget and bacula-fd.

 

This is mtr (Matt’s Traceroute) for Mac OS X 10.4,10.5, 10.6, 10.7
=================================================

It combines the functionality of the ‘traceroute’ and ‘ping’ programs in a single network diagnostic tool. It’s a universal binary (Intel and PPC).

Copy:

mtr into /usr/local/sbin (or somewhere on your PATH)
mtr.8 into /usr/local/man/man8 (or somewhere on your MANPATH)

mtr needs to run as root. You can either prefix it with sudo, eg.:

sudo mtr www.apple.com

or install it owned by root and do

sudo chmod u+s /usr/local/sbin/mtr

You then won’t need the ‘sudo’.
If you like ‘mtr’, you might also like my Mac binary of ‘wget’, which can be found by going to www.statusq.org and using the search box.

The mtr home page is at http://www.bitwizard.nl/mtr/
I built it on the Mac by:
* Renaming occurrences of dns_open and dns_locate to mtr_dns_open and mtr_dns_locate to avoid clashes with existing declarations in libresolv.

* Using
make CC=’gcc -arch ppc -arch i386′ LD=’gcc -arch ppc -arch ppc64 -arch i386′
to build a universal binary.

Many thanks to Matt Kimball, Roger Wolff and everyone else for a useful tool!

Quentin Stafford-Fraser
web: http://www.qandr.org/quentin
blog: http://www.statusq.org
14 June 2006

Thank you: http://www.statusq.org/archives/2006/06/14/1021/

Comments are closed.