0
点赞
收藏
分享

微信扫一扫

9.k star,推荐一款实用ping工具

Star英 2023-12-25 阅读 54

1 简介

是ping,但是带图的,你见过吗?来看下今天推荐这款小工具,是用rust写的ping工具,可以在ping的同时看到响应的时间折线图。

2 安装

github可以访问的直接到如下链接去下载就可以,目前支持windows、mac、linux等版本

https://github.com/orf/gping

github如果无法访问的话,可以后台直接私信

  • mac安装
brew install gping
  • linux 安装
brew install gping
  • windows安装
scoop install gping
  • docker启动
docker run ghcr.io/orf/gping:gping-v1.14.0 -- --help

3 软件特性或亮点

  • 绘制多个主机的 ping 时间图表
  • 通过 --cmd 标志绘制命令的执行时间
  • 自定义颜色
  • 支持 Windows、Mac 和 Linux

4 使用方法

$ gping --help
Ping, but with a graph.

Usage: gping [OPTIONS] [HOSTS_OR_COMMANDS]...

Arguments:
  [HOSTS_OR_COMMANDS]...  Hosts or IPs to ping, or commands to run if --cmd is provided. Can use cloud shorthands like aws:eu-west-1.

Options:
      --cmd
          Graph the execution time for a list of commands rather than pinging hosts
  -n, --watch-interval <WATCH_INTERVAL>
          Watch interval seconds (provide partial seconds like '0.5'). Default for ping is 0.2, default for cmd is 0.5.
  -b, --buffer <BUFFER>
          Determines the number of seconds to display in the graph. [default: 30]
  -4
          Resolve ping targets to IPv4 address
  -6
          Resolve ping targets to IPv6 address
  -i, --interface <INTERFACE>
          Interface to use when pinging
  -s, --simple-graphics
          Uses dot characters instead of braille
      --vertical-margin <VERTICAL_MARGIN>
          Vertical margin around the graph (top and bottom) [default: 1]
      --horizontal-margin <HORIZONTAL_MARGIN>
          Horizontal margin around the graph (left and right) [default: 0]
  -c, --color <color>
          Assign color to a graph entry. This option can be defined more than once as a comma separated string, and the order which the colors are provided will be matched against the hosts or commands passed to gping. Hexadecimal RGB color codes are accepted in the form of '#RRGGBB' or the following color names: 'black', 'red', 'green', 'yellow', 'blue', 'magenta','cyan', 'gray', 'dark-gray', 'light-red', 'light-green', 'light-yellow', 'light-blue', 'light-magenta', 'light-cyan', and 'white'
  -h, --help
          Print help information
  -V, --version
          Print version information
      --clear
          Clear the graph from the terminal after closing the program
举报

相关推荐

0 条评论