当前位置:网站首页>使用paping工具进行tcp端口连通性检测
使用paping工具进行tcp端口连通性检测
2022-07-05 06:26:00 【寻花之梦~~】
工具简介
用于对TCP端口连通性测试。通常我们测试ip是否可达会使用ping命令,测试端口是否联通会使用telnet命令。现在可以使用paping来替代。
安装教程
参考:https://code.google.com/archive/p/paping/downloads
使用教程
解压后是一个二进制的paping文件,可以直接执行。查看帮助信息如下:
~]# paping -h
paping v1.5.5 - Copyright (c) 2011 Mike Lovell
Syntax: paping [options] destination
Options:
-?, --help display usage
-p, --port N set TCP port N (required)
--nocolor Disable color output
-t, --timeout timeout in milliseconds (default 1000)
-c, --count N set number of checks to N
案例演示
对baidu.com的80端口做TCP连接测试,次数为6。可以得到统计结果:失败成功次数,最小,最大,平均延迟
若需要记录时间戳的话可以参考下面这个命令:
~]# paping -p 80 -c 6 www.jd.com | awk '{print strftime("%Y-%m-%d %H:%M:%S",systime())"\t"$0}'
边栏推荐
- 代码中的英语全部
- Integer to 8-bit binary explanation (including positive and negative numbers) scope of application -127~+127
- Use ffmpeg to rotate, flip up and down, and flip horizontally
- The route of wechat applet jumps again without triggering onload
- Financial risk control practice -- feature derivation based on time series
- ADG5412FBRUZ-RL7应用 双电源模拟开关和多路复用器IC
- Stack acwing 3302 Expression evaluation
- Vscode configures the typera editor for MD
- What's wrong with this paragraph that doesn't work? (unresolved)
- Find the combination number acwing 889 01 sequence meeting conditions
猜你喜欢
1. Create Oracle database manually
5.Oracle-錶空間
Interval problem acwing 906 Interval grouping
Find the combination number acwing 889 01 sequence meeting conditions
The problem of Chinese garbled code in the vscode output box can be solved once for life
3.Oracle-控制文件的管理
[wustctf2020] plain_ WP
A brief introduction to heading/pitch/roll and omega/phi/kappa
There are three kinds of SQL connections: internal connection, external connection and cross connection
MySQL (UDF authorization)
随机推荐
Getting started with typescript
5.Oracle-錶空間
Written examination notes
PR automatically moves forward after deleting clips
Series of how MySQL works (VIII) 14 figures explain the atomicity of MySQL transactions and the principle of undo logging
博弈论 AcWing 892. 台阶-Nim游戏
如何正确在CSDN问答进行提问
6-4 search by serial number of linked list
Ffmpeg build download (including old version)
Day 2 document
将webApp或者H5页面打包成App
AE tutorial - path growth animation
Mutual transformation between two-dimensional array and sparse array (sparse matrix)
微信小程序路由再次跳转不触发onload
【高德地图POI踩坑】AMap.PlaceSearch无法使用
Application of recyclerview
LSA Type Explanation - lsa-1 [type 1 LSA - router LSA] detailed explanation
博弈论 AcWing 894. 拆分-Nim游戏
Modnet matting model reproduction
P3265 [jloi2015] equipment purchase