栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 系统运维 > 运维 > Linux

禁ping的服务器测网速的方法

Linux 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

禁ping的服务器测网速的方法

很多服务器会设置禁用ping,此时测网速就没有使用简单的ping看time值了。

此时可以使用第三方的工具tcping.exe

下载地址   

https://www.elifulkerson.com/projects/tcping.php
PS C:UserstenglDownloads> .tcping.exe
--------------------------------------------------------------
tcping.exe by Eli Fulkerson
Please see http://www.elifulkerson.com/projects/ for updates.
--------------------------------------------------------------

Usage: C:UserstenglDownloadstcping.exe [-flags] server-address [server-port]

Usage (full): C:UserstenglDownloadstcping.exe [-t] [-d] [-i interval] [-n times] [-w ms] [-b n] [-r times] [-s] [-v] [-j] [-js size] [-4] [-6] [-c] [-g count] [-S source_address] [--file] [--tee filename] [-h] [-u] [--post] [--head] [--proxy-port port] [--proxy-server server] [--proxy-credentials username:password] [-f] server-address [server-port]

 -t     : ping continuously until stopped via control-c
 -n 5   : for instance, send 5 pings
 -i 5   : for instance, ping every 5 seconds
 -w 0.5 : for instance, wait 0.5 seconds for a response
 -d     : include date and time on each line
 -b 1   : enable beeps (1 for on-down, 2 for on-up,
                        3 for on-change, 4 for always)
 -r 5   : for instance, relookup the hostname every 5 pings
 -s     : automatically exit on a successful ping
 -v     : print version and exit
 -j     : include jitter, using default rolling average
 -js 5  : include jitter, with a rolling average size of (for instance) 5.
 --tee  : mirror output to a filename specified after '--tee'
 --append : Append to the --tee filename rather than overwriting it
 -4     : prefer ipv4
 -6     : prefer ipv6
 -c     : only show an output line on changed state
 --file : treat the "server-address" as a filename instead, loop through file line by line
          Note: --file is incompatible with options such as -j and -c as it is looping through different targets
          Optionally accepts server-port.  For example, "example.org 443" is valid.
          Alternately, use -p to force a port at command line for everything in the file.
 -g 5   : for instance, give up if we fail 5 times in a row
 -S _X_ : Specify source address _X_.  Source must be a valid IP for the client computer.
 -p _X_ : Alternate method to specify port
 --fqdn : Print domain name on each line if available
 --ansi : Use ANSI color sequences (cygwin)
 --color: Use Windows color sequences

HTTP Options:
 -h     : HTTP mode (use url without http:// for server-address)
 -u     : include target URL on each line
 --post : use POST rather than GET (may avoid caching)
 --head : use HEAD rather than GET
 --proxy-server : specify a proxy server
 --proxy-port   : specify a proxy port
 --proxy-credentials : specify 'Proxy-Authorization: Basic' header in format username:password

Debug Options:
 -f     : force tcping to send at least one byte
 --header : include a header with original args and date.  Implied if using --tee.
 --block  : use a 'blocking' socket to connect.  This prevents -w from working and uses the
            default timeout (as long as 20 seconds in my case).  However it can detect an actively
            refused connection vs a timeout.

        If you don't pass server-port, it defaults to 80.
PS C:UserstenglDownloads>

下载windows版本,执行如下命令即可进行测试

 .tcping.exe -t  13.52.249.220  22
PS C:UserstenglDownloads> .tcping.exe -t  13.52.249.220  22

** Pinging continuously.  Press control-c to stop **

Probing 13.52.249.220:22/tcp - Port is open - time=245.112ms
Probing 13.52.249.220:22/tcp - Port is open - time=187.086ms
Probing 13.52.249.220:22/tcp - Port is open - time=193.032ms
Probing 13.52.249.220:22/tcp - Port is open - time=218.626ms
Probing 13.52.249.220:22/tcp - Port is open - time=254.679ms
Probing 13.52.249.220:22/tcp - Port is open - time=272.881ms
Probing 13.52.249.220:22/tcp - Port is open - time=236.380ms
Probing 13.52.249.220:22/tcp - Port is open - time=282.814ms
Probing 13.52.249.220:22/tcp - Port is open - time=251.038ms
Probing 13.52.249.220:22/tcp - Port is open - time=279.653ms
Control-C

Ping statistics for 13.52.249.220:22
     10 probes sent.
     10 successful, 0 failed.  (0.00% fail)
Approximate trip times in milli-seconds:
     Minimum = 187.086ms, Maximum = 282.814ms, Average = 242.130ms
PS C:UserstenglDownloads>

转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/320091.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号