Netstat-n | awk '/^tcp/{++s[$NF]} END {for (a in S) print A, s[a]} ' Time_wait 8947 Fin_wait1 15 Fin_wait2 1 Established 55 Syn_recv 21 CLOSING 2 Last_ack 4 |
TCP Connection Status detailed LISTEN: Listening for connection requests from a remote TCP port Syn-sent: Wait for a matching connection request after sending the connection request Syn-received: Wait for confirmation of connection request after receiving and sending a connection request Established: Represents an open connection Fin-wait-1: Waiting for a remote TCP connection interrupt request, or confirmation of a previous connection interrupt request Fin-wait-2: Waiting for connection interrupt request from remote TCP Close-wait: Waiting for a connection interrupt request from a local user CLOSING: Waiting for remote TCP to confirm connection interruption Last-ack: Waiting for acknowledgement of the original connection interrupt request to the remote TCP Time-wait: Wait enough time to ensure that the remote TCP receives a connection interrupt request acknowledgement CLOSED: No connection status |
View TCP connections and status under Linux