Results 1 to 5 of 5
-
06-24-2009, 05:28 PM #1Web Hosting Guru
- Join Date
- Jun 2005
- Posts
- 300
How to check connections to my server?
There use to be a thread on here but because of the wht hack, it didn't get saved...so now I can't go back to it.
It was a command in ssh that printed out a number of connections. Like 12,000 or something. Anyone know the command?
-
06-24-2009, 05:31 PM #2Web Hosting Guru
- Join Date
- Feb 2005
- Location
- localhost
- Posts
- 5,473
try: netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1
Respectfully,
Mr. Terrence
-
06-24-2009, 05:38 PM #3Web Hosting Guru
- Join Date
- Jun 2005
- Posts
- 300
nope that wasn't the one. It just prints out the total connections instead of individual ip's.
-
06-24-2009, 05:49 PM #4WHT Addict
- Join Date
- Feb 2006
- Location
- Melbourne, Australia
- Posts
- 141
I think you're looking for this one.
Code:netstat -anp |grep 'tcp\|udp' | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
-
06-24-2009, 06:44 PM #5PING PONG
- Join Date
- May 2009
- Location
- SLASH ROOT
- Posts
- 867
netstat -anp |grep "tcp\|udp"|wc -l ; will print the total number of TCP/UDP connections to your server.
Say, if you want to know the no: of connections to any particular service like 'http' use:
netstat -apn | grep :80 |wc -l█ WebHostRepo.com
█ Linux | Windows | VPS | Cloud
█ Outsourced Technical Support since 2009
█ sales@webhostrepo.com
Similar Threads
-
how to check ethernet connections in debian??
By Mishkin in forum Dedicated ServerReplies: 1Last Post: 12-19-2008, 05:11 PM -
How to check the max connections allowed in mysql?
By macareno in forum Dedicated ServerReplies: 1Last Post: 03-30-2005, 11:39 PM -
Hong Kong Servers! Special Deals! Super connections! 100Mbps Connections! Free DA!
By WCHost in forum Dedicated Hosting OffersReplies: 4Last Post: 07-21-2004, 10:11 AM -
Server connections?
By opanime in forum Dedicated ServerReplies: 5Last Post: 05-27-2004, 09:33 AM -
How to limit number of ftp connections per IP / max ftp connections per username
By nogi in forum Hosting Security and TechnologyReplies: 17Last Post: 07-09-2003, 02:59 AM