mtr网络诊断_Linux Mtr命令教程以及网络诊断示例

mtr网络诊断

mtr网络诊断

Linux mtr command provides both functionality of traceroute and ping commands. mtr can provide reports and xml, json, csv output. There is also Gtk interface provided for mtr .

Linux mtr命令同时提供了tracerouteping命令的功能。 mtr可以提供报告以及xml,json,csv输出。 还为mtr提供了Gtk接口。

交互式Traceroute (Interactive Traceroute)

One of the simple use case for mtr is providing the remote hostname or IP address we want to traceroute. This will open a new interactive window which shows each intermediate hop. This will also send continuous ICMP packets to get new time and related metrics and show in the screen.

mtr的简单用例之一就是提供我们要跟踪路由的远程主机名或IP地址。 这将打开一个新的交互式窗口,其中显示每个中间跃点。 这还将发送连续的ICMP数据包以获取新的时间和相关指标并显示在屏幕中。

$ mtr google.com

We can exit from this screen with CTRL+C

我们可以使用CTRL + C从此屏幕退出

显示Gtk界面(Show Gtk Interface)

mtr command can be used with GUI interface. We will provide –g in order to start with Gtk interface.

mtr命令可与GUI界面一起使用。 我们将提供– g ,以便从Gtk界面开始。

$ mtr -g google.com

CSV输出 (CSV Output)

We can create CSV type output. CSV type output will delimit the columns with , . We will provide --csv option with the remote hostname.

我们可以创建CSV类型的输出。 CSV类型的输出将与分隔列, 。 我们将为--csv选项提供远程主机名。

$ mtr --csv google.com
CSV Output
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值