Difference between revisions of "Check TCP connectivity"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
(revert)
Line 1: Line 1:
  
Seeking a trusted CPA for financial assurance and precise reporting? Explore our top-notch services, including expert financial statement audits, streamlined reviews, and comprehensive tax solutions. Elevate your financial game with San Diego CPA - where expertise meets tailored excellence. For a free consultation today, contact me directly or visit my site below.
 
  
 +
== Using: [[nping]] ==
 +
Install [[nmap]]<ref>https://nmap.org/</ref> tool, available at least for Windows, Mac and Linux and execute<code>nping --tcp -p 3306 172.16.22.218</code> to test tcp connectivity for port 3306 in host 172.16.22.218:
  
Best regards,
+
<pre>
 +
nping --tcp -p 3306 172.16.22.218 -c 0
  
 +
Starting Nping 0.6.47 ( http://nmap.org/nping ) at 2019-03-12 09:47 UTC
 +
SENT (0.0125s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480
 +
SENT (1.0127s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480
 +
RCVD (1.0129s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1638376953 win=29200 <mss 1460>
 +
SENT (2.0141s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480
 +
RCVD (2.0143s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1654006808 win=29200 <mss 1460>
 +
SENT (3.0155s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480
 +
RCVD (3.0157s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1669652324 win=29200 <mss 1460>
 +
</pre>
  
Michelle Encines, Manager
+
== Using [[nagios]]: check_tcp ==
San Diego, CPA A Professional Tax and Accountancy Corporation
+
<code>/usr/lib/nagios/plugins/check_tcp -H 127.0.0.1 -p 80</code>
Professional Advice. Sharper Results.
+
 
5703 Oberlin Drive Suite 107
+
== See also ==
San Diego, CA 92121
+
* {{TCP}}
(858)246-6519 Office
+
* {{ping}}
(866)272-8296 Toll free
+
* {{ethernet}}
(858)800-3888 fax
+
 
www.sandiegocpas.com
+
 
 +
[[Category:Networking]]
 +
[[Category:Ping]]
 +
[[Category:Activities]]
 +
[[Category:Internet Protocol Analysis]]

Revision as of 08:53, 17 January 2024


Using: nping

Install nmap[1] tool, available at least for Windows, Mac and Linux and executenping --tcp -p 3306 172.16.22.218 to test tcp connectivity for port 3306 in host 172.16.22.218:

nping --tcp -p 3306 172.16.22.218 -c 0

Starting Nping 0.6.47 ( http://nmap.org/nping ) at 2019-03-12 09:47 UTC
SENT (0.0125s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480 
SENT (1.0127s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480 
RCVD (1.0129s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1638376953 win=29200 <mss 1460>
SENT (2.0141s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480 
RCVD (2.0143s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1654006808 win=29200 <mss 1460>
SENT (3.0155s) TCP 172.16.22.18:2734 > 172.16.22.218:3306 S ttl=64 id=56345 iplen=40  seq=1546620167 win=1480 
RCVD (3.0157s) TCP 172.16.22.218:3306 > 172.16.22.18:2734 SA ttl=64 id=0 iplen=44  seq=1669652324 win=29200 <mss 1460>

Using nagios: check_tcp

/usr/lib/nagios/plugins/check_tcp -H 127.0.0.1 -p 80

See also

  • https://nmap.org/
  • Advertising: