cPanel Tutorials | Security Guides | News Feeds | Search
Navigation
Home
Guides
Password Generator
Files
News Feeds
Hosting News
Contact Us
Documentation
Site Search
 
Latest Guides
Largest number of established connections
Kill all processes matching certain strings.
Install FFmpeg-PHP
Install FFmpeg
Configure Squid
Install Squid
Password Security
Install Teamspeak
Disable SELinux
Install RoundCube on cPanel

Viewing Guide 

Largest number of established connections
Written by: HostGeekZ



This guide is wraped for easy viewing, to see the non wraped version Click Here



To find out the largest number of established connections you can simply use something like

netstat -an | grep 'ESTABLISHED' | awk '{print $4}' | cut -d: -f1 | uniq -c | sort -rn | head -n 1



To see the list of the top 10

netstat -an | grep 'ESTABLISHED' | awk '{print $4}' | cut -d: -f1 | uniq -c | sort -rn | head -n 10



To view all

netstat -an | grep 'ESTABLISHED' | awk '{print $4}' | cut -d: -f1 | uniq -c | sort -rn



You can also view all but have pages so you can view each in detail

netstat -an | grep 'ESTABLISHED' | awk '{print $4}' | cut -d: -f1 | uniq -c | sort -rn | more



You can show the port with

netstat -an | grep 'ESTABLISHED' | awk '{print $4}' | uniq -c | sort -rn

User Comments 
     
Name:
Email: If you provide your email address you will receive updates for this guide to it.
Comment:
Verification We require you to add the following 2 values together for anti-spam purposes.
5 + 33
   

©Copyright HostGeekZ 2004-2007. All Rights Reserved.
Resources