当前位置:网站首页>Use the Paping tool to detect TCP port connectivity

Use the Paping tool to detect TCP port connectivity

2022-07-05 06:44:00 Dream of finding flowers~~

Tool introduction

Used to deal with TCP Port connectivity test . Usually we test ip Whether it can be used ping command , Test whether the port will be used telnet command . Now you can use paping To replace .

Installation tutorial

Reference resources :https://code.google.com/archive/p/paping/downloads

Use the tutorial

After decompression, it is a binary paping file , Can be executed directly . The help information is as follows :

~]# 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

Case presentation

Yes baidu.com Of 80 Port to do TCP Connect the test , Times: 6. Statistical results can be obtained : Failure success times , Minimum , Maximum , Average delay
 Insert picture description here
If you need to record the timestamp, you can refer to the following command :

~]# paping -p 80 -c 6 www.jd.com | awk '{print strftime("%Y-%m-%d %H:%M:%S",systime())"\t"$0}'

 Insert picture description here
Link reference :https://developer.jdcloud.com/article/1466

原网站

版权声明
本文为[Dream of finding flowers~~]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050625544360.html