0% found this document useful (0 votes)
86 views1 page

Count Established Connections on Port 143

This command uses netstat to view active network connections, greps for port 143 (IMAP) connections that are in the ESTABLISHED state, and pipes the output to wc to count the number of matching lines.

Uploaded by

Roberto Gonzalez
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
86 views1 page

Count Established Connections on Port 143

This command uses netstat to view active network connections, greps for port 143 (IMAP) connections that are in the ESTABLISHED state, and pipes the output to wc to count the number of matching lines.

Uploaded by

Roberto Gonzalez
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

netstat -an | grep -w 143 | grep ESTABLISHED | wc -l

You might also like