简介

Nping 是一个基于 Rust 开发的终端可视化 Ping 工具, 支持多地址并发 Ping, 可视化图表展示, 数据实时更新等特性。

https://hellogithub.com/repository/21f5600774554866a3d686308df2dbf0

图表视图

表格视图

点视图

Installation

MacOS Homebrew

brew tap hanshuaikang/nping
brew install nping

nping --help

Feature:

  • 支持多地址并发同时 Ping

  • 支持可视化延迟展示

  • 实时最大最小平均延迟丢包率等指标展示

  • 支持 IpV4 和 IpV6

  • 支持一个地址下并发 Ping n 个 ip

后续的计划:

  • 展示 IP 所属的国家和城市

  • 新增 host 子命令, 支持展示该域名所对应的 ip 地址的详细信息。

  • UI 界面优化, 增加更多的动态效果

  • 当存在多个地址时, 结束时根据平均延迟展示排序

Usage

nping www.baidu.com www.google.com www.apple.com www.sina.com -c 20 -i 2

nping --help

🏎 Nping mean NB Ping, A Ping Tool in Rust with Real-Time Data and Visualizations

Usage: nping [OPTIONS] <TARGET>...

Arguments:
  <TARGET>...  target IP address or hostname to ping

Options:
  -c, --count <COUNT>        Number of pings to send [default: 65535]
  -i, --interval <INTERVAL>  Interval in seconds between pings [default: 0]
  -6, --force_ipv6           Force using IPv6
  -m, --multiple <MULTIPLE>  Specify the maximum number of target addresses, Only works on one target address [default: 0]
  -v, --view-type <VIEW_TYPE>  view mode graph/table/point [default: graph]
  -h, --help                 Print help
  -V, --version              Print version