View TCP network connections

Source: Internet
Author: User
Command to view TCP network connection status: netstat-n | awk & amp; #39;/^ tcp/{++ S [$ NF]} END {for (ainS) printa, S [a]} & amp; #39; return result example of www.2cto.com: Cmd code LAST_ACK5SYN_RECV30ESTABLISHED15...
Command to view TCP network connection status: netstat-n | awk '/^ tcp/{++ S [$ NF]} END {for (a in S) print, S [a]} 'www.2cto.com return result example: Cmd code LAST_ACK 5 SYN_RECV 30 ESTABLISHED 15 FIN_WAIT1 51 FIN_WAIT2 5 TIME_WAIT 10 where SYN_RECV indicates the number of requests waiting for processing; ESTABLISHED indicates the normal data transmission status; TIME_WAIT indicates the number of requests that have been processed and wait for the timeout to end. Command: netstat-n | awk '/^ tcp/' Cmd code tcp 0 0 192.168.1.102: 8879 192.168.2.199: 4516 TIME_WAIT tcp 0 0 192.168.1.102: 8879 192.168.2.199: 4520 TIME_WAIT tcp 0 0 192.168.1.102: 8879 192.168.2.199: 4525 TIME_WAIT tcp 0 192.168.1.102: 56488 192.168.2.103: 1521 ESTABLISHED tcp 0 192.168.1.102: 56482 192.168.2.103: 1521 ESTABLISHED tcp 0 0 192.168.1.102: 56483 192.168.2.103: 1521 ESTABLISHED enabled status: description CLOSED: No connection is active or LISTEN is in progress: the server is waiting for the incoming call SYN_RECV: a connection request has arrived. wait to confirm that SYN_SENT: The application has started and open a connection ESTABLISHED: normal data transmission status FIN_WAIT1: The application says it has completed FIN_WAIT2: the other side has agreed to release ITMED_WAIT: wait for all groups to die CLOSING: both sides attempt to disable TIME_WAIT: the other side has initialized a release LAST_ACK: wait until all groups die
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.