mtr for Mac OS X
June 14th, 2006MTR 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.
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.
June 14th, 2006 at 10:30 am
Cool stuff - perhaps worth submitting a port file for darwinports? Darwinports has wget and bacula in there already (no idea if bacula == bacula-fd is true…).
Usually my second task on getting a new mac is to run DP and install a bunch of “essentials” such as latex, gnuplot, wget, and so on. The first task is to install the dev tools of course, as DP builds from source
Of course, I should also point out that ping type tools only show the path from you to a host, and path from the host to you may not be the same (particularly if ISPs between you and the destination use hot potato routing). And then there’s the assumption ICMP traffic is routed the same as other IP traffic (though I’ve not seen a case where that’s not the case, whereas I have seen the hot potato effect).
June 14th, 2006 at 10:50 am
Hi Dougal -
Well, the changes I made were trivial and are mentioned in the README. One of the reasons I build these ‘native’ binaries is so I don’t need to install Fink, Darwinports,etc.
Great though those projects are, there’s just too much clutter for me - I usually only need a few extra things and prefer to have them independent of such infrastructures. But that’s just my taste…
Yes, the routing point is a good one.
Best,
Quentin
November 18th, 2006 at 11:50 pm
Just got my first mac, and was looking form mtr wanted to say thanks for your work.
November 27th, 2006 at 3:36 pm
Awesome stuff. One question though, how would I go about compiling mtr on my mac? (I ask b/c there are other programs that I want to use, but I can’t find them for Mac OS X… so how should I go about compiling something for my mac? Is it just:
./configure
make
make install?
Thanks!
March 28th, 2007 at 5:34 pm
Great stuff!! Just wanted to say thanks for the compiled mtr. Like you I only need a few tools that I miss from Linux, and having them without having to install a bunch of things and compiling from scratch is just great.
June 11th, 2007 at 3:04 pm
Just to let you know, mtr 0.71 compiles on the osx 10.4 if you add
#define BIND_8_COMPAT
to the top of dns.c You don’t have to do any function renaming.
steve
April 22nd, 2008 at 10:29 pm
Thanks a bunch. This saved me having to grab the source and whathave.