mtr
ネットワーク
書き方
mtr -rwc <count> <host>traceroute と ping を一つの表にまとめて更新し続けるので、時々起きる欠落を捕らえるのに向きます。途中の跳びの損失はたいていその装置が返答を節約しているだけで、最後の跳びまで続く損失だけが本物です。
よく使うオプション
| オプション | 意味 |
|---|---|
| -r | Report mode: run, print a table and exit. Made for pasting into a ticket. |
| -c 100 | How many cycles to run before reporting. |
| -w | Wide report so long host names are not cut off. |
| -n | No reverse DNS. |
| -T -P 443 | Probe with TCP to a real port instead of ICMP. |
| -b | Show both the host name and the address. |
例
mtr -rwc 100 8.8.8.8A hundred cycles summarised, the report to attach to a complaint.
sudo mtr -T -P 443 example.comTrace with TCP when ICMP is filtered.
つながらないとき、どこまで行けたのかを絞ります — 名前が引けないのか、経路がないのか、ポートが閉じているのか。
読み方
- 角括弧 [ ] は省いてよい部分です。
- 三点 … は複数並べられるという意味です。
- オプションは大文字小文字を区別します — -r と -R が別物のコマンドもあります。
よくある質問
Q. mtr は何をしますか。
traceroute と ping を一つの表にまとめて更新し続けるので、時々起きる欠落を捕らえるのに向きます。途中の跳びの損失はたいていその装置が返答を節約しているだけで、最後の跳びまで続く損失だけが本物です。
Q. どう打ちますか。
mtr -rwc <count> <host> — 角括弧は省いてよい部分です。
Q. よく使うオプションはいくつですか。
ここにまとめたのは6個です。全部は man mtr にあります。このコマンドはネットワークの仲間です。
関連するコマンド
man ページ: man mtr