<< Click to Display Table of Contents >> Navigation: Monitoring Tools > checktcp > Usage |
Command Line Parameters
checktcp /s /t:timeout <hostname|ipaddress> <port>
hostname / ipaddress |
Hostname or IP address to connect to |
port |
TCP port on host to connect to. Specify a single port or a range of ports (e.g. 100-1000) |
/s |
Displays any data sent by the remote host through the TCP connection. Only supported when checking a single TCP port. |
/t:timeout |
Max amount of seconds to wait before interrupting a TCP port check (applies to TCP port checks only, default is 2 seconds) |
Examples
Example 1: Check whether port 25 on host smtp.aol.com is open
checktcp smtp.aol.com 25
Example 2: Check whether port 25 on host mail.hotmail.com is open and display data
checktcp /s mail.hotmail.com 25
Example 3: List all ports in range 1000-5000 on server01
checktcp server01 1000-5000
Sample Output
c:\>checktcp /s mail.hotmail.com 25
Status: mail.hotmail.com:25 is open
Data: 220 mc9-f37.hotmail.com Microsoft ESMTP MAIL Service, Version: 5.0.2195.6824 ready at Sun, 9 May 2004 19:11:01 -0700