[转帖]WHAT IS MTR?

what,is,mtr · 浏览次数 : 0

小编点评

Sure, here's a summary of the content you provided: **mtr** is a network diagnostic tool that combines the functionality of the `traceroute` and `ping` programs. It investigates the network connection between the host mtr runs on and a user-specified destination host and determines the quality of the link to each machine. **Building mtr:** * From a tarball: Run `./configure && make` * From the git repository: Run `./bootstrap.sh && ./configure && make` * From a tarball with the `--without-gtk` flag: Use `./configure --without-gtk ` * Build for Windows with Cygwin: `./bootstrap.sh --package-manager --wait --packages automake,pkg-config,make,gcc-core,libncurses-devel,libjansson-devel` **Using mtr:** * Run `sudo ./mtr <host>` to launch it from the root directory. * Build for Windows: Run `make install` in the `build` directory. **Resources:** * GitHub repository: `github.com/traviscross/mtr` * Web page: `http://www.BitWizard.nl/mtr/` **Note:** * `mtr-packet` must be run with root privileges because it requires access to raw IP sockets. * Building for Windows requires Cygwin.

正文

https://github.com/traviscross/mtr

 

mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool.

As mtr starts, it investigates the network connection between the host mtr runs on and a user-specified destination host. After it determines the address of each network hop between the machines, it sends a sequence of ICMP ECHO requests to each one to determine the quality of the link to each machine. As it does this, it prints running statistics about each machine.

mtr is distributed under the GNU General Public License version 2. See the COPYING file for details.

INSTALLING

If you're building this from a tarball, compiling mtr is as simple as:

./configure && make

Please note that this refers to the tarballs from https://www.bitwizard.nl/mtr/files/ and not the tarballs that github can produce.

(in the past, there was a Makefile in the distribution that did the ./configure for you and then ran make again with the generated Makefile, but this has suffered some bitrot. It didn't work well with git.)

If you're building from the git repository, you'll need to run:

./bootstrap.sh && ./configure && make

When it looks as if the compilation was successful, you can test mtr with

sudo ./mtr <host>

(fill in a hostname or IP address where it says ) or immediately continue on to installing:

make install

Note that mtr-packet must be suid-root because it requires access to raw IP sockets. See SECURITY for security information.

Older versions used to require a non-existent path to GTK for a correct build of a non-gtk version while GTK was installed. This is no longer necessary. ./configure --without-gtk should now work. If it doesn't, try make WITHOUT_X11=YES as the make step.

On Solaris, you'll need to use GNU make to build. (Use gmake rather than make.)

On Solaris (and possibly other systems) the "gtk" library may be installed in a directory where the dynamic linker refuses to look when a binary is setuid. Roman Shterenzon reports that adding -Wl,-rpath=/usr/lib to the commandline will work if you are using gnu LD. He tells me that you're out of luck when you use the sun LD. That's not quite true, as you can move the gtk libraries to /usr/lib instead of leaving them in /usr/local/lib. (when the ld tells you that /usr/local/lib is untrusted and /usr/lib is trusted, and you trust the gtk libs enough to want them in a setuid program, then there is something to say for moving them to the "trusted" directory.)

Building on MacOS should not require any special steps.

BUILDING FOR WINDOWS

Building for Windows requires Cygwin. To obtain Cygwin, see https://cygwin.com/install.html. Next, re-run cygwin's setup-x86.exe (or setup-x86_64.exe if you're using 64bit cygwin) with the following arguments, which will install the packages required for building:

    setup-x86.exe --package-manager --wait --packages automake,pkg-config,make,gcc-core,libncurses-devel,libjansson-devel

Build as under Unix:

    ./bootstrap.sh && ./configure && make

Finally, install the built binaries:

    make install

WHERE CAN I GET THE LATEST VERSION OR MORE INFORMATION?

mtr is now hosted on github. https://github.com/traviscross/mtr

See the mtr web page at http://www.BitWizard.nl/mtr/

Bug reports and feature requests should be submitted to the Github bug tracking system.

Patches can be submitted by cloning the Github repository and issuing a pull request, or by email to me. Please use unified diffs. Usually the diff is sort of messy, so please check that the diff is clean and doesn't contain too much of your local stuff (for example, I don't want/need the "configure" script that /your/ automake made for you).

(There used to be a mailinglist, but all it got was spam. So when the server was upgraded, the mailing list died.)

REW

与[转帖]WHAT IS MTR?相似的内容:

[转帖]WHAT IS MTR?

https://github.com/traviscross/mtr mtr combines the functionality of the 'traceroute' and 'ping' programs in a single network diagnostic tool. As mtr

[转帖]What is Pstate

https://www.jianshu.com/p/342480d917e3 When someone refers to a P-state, generally only the frequency is talked about. For example, on my Intel® Core™

[转帖]什么是 istio

https://cizixs.com/2018/08/26/what-is-istio/ 如果你比较关注新兴技术的话,那么很可能在不同的地方听说过 istio,并且知道它和 service mesh 有着牵扯。这篇文章是我之前在公司内部做过的分享,可以作为了解 istio 的入门介绍,了解什么是 i

[转帖]什么是 LLVM?Swift, Rust, Clang 等语言背后的支持

https://www.oschina.net/translate/what-is-llvm-the-power-behind-swift-rust-clang-and-more?print 要了解用于以编程方式生成机器原生代码的编译器框架是如何让新语言的推出以及对现有的语言进行增强比以往更加容易了

[转帖]可观测|流量|日志|监控|链路|用户体验

https://cloud.tencent.com/developer/article/2019401?areaSource=105001.8&traceId=ySuPzDMCMO5dVSJSYsUT9 What is observability? In IT and cloud computing

[转帖]gooyfs 的编译 github

https://github.com/kahing/goofys/issues/527 @maobaolong @PengleiShi I had the same issue as you guys, new to git and had to work it out. Here is what

[转帖]Unix is dead. Long live Unix!

https://www.theregister.com/2023/01/17/unix_is_dead/ Don't expect to see any more big AIX news. What does that leave us with? Liam Proven Tue 17 Jan 2

【转帖】What are segfault rip/rsp numbers and how to use them

https://stackoverflow.com/questions/1456899/what-are-segfault-rip-rsp-numbers-and-how-to-use-them 11 When my linux application crashes, it produces a

[转帖]每个程序员都应该了解的内存知识【第一部分】

https://www.oschina.net/translate/what-every-programmer-should-know-about-memory-part1?print [编辑的话: Ulrich Drepper最近问我们,是不是有兴趣发表一篇他写的内存方面的长文。我们不用看太多就已

[转帖]Diagnosing latency issues

Finding the causes of slow responses This document will help you understand what the problem could be if you are experiencing latency problems with Re