Re: [CentOS] Total Number of conecctions

2010-12-03 Thread Les Mikesell
On 12/3/2010 2:57 PM, Alejandro Rodriguez Luna wrote: > I have the need to know how many connection the server has, i run this > command but i don't know how to sum all the results and get a final number. > any ideas? > > netstat -an | grep -E 'tcp|udp' | awk '{print $6}' | sort | uniq -c | > sort

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread m . roth
Alexander Dalloz wrote: > Am 03.12.2010 22:27, schrieb m.r...@5-cent.us: >> Robert Heller wrote: >>> At Fri, 3 Dec 2010 12:57:59 -0800 (PST) CentOS mailing list >>> wrote: I have the need to know how many connection the server has, i run this command but i don't know how to sum all

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread Alexander Dalloz
Am 03.12.2010 22:27, schrieb m.r...@5-cent.us: > Robert Heller wrote: >> At Fri, 3 Dec 2010 12:57:59 -0800 (PST) CentOS mailing list >> wrote: >>> >>> I have the need to know how many connection the server has, i run this >>> command but i don't know how to sum all the results and get a final >>>

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread m . roth
Sorry, missed a close brace: m.r...@5-cent.us wrote: > Robert Heller wrote: >> At Fri, 3 Dec 2010 12:57:59 -0800 (PST) CentOS mailing list >> wrote: >>> >>> I have the need to know how many connection the server has, i run this >>> command but i don't know how to sum all the results and get a fin

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread m . roth
Robert Heller wrote: > At Fri, 3 Dec 2010 12:57:59 -0800 (PST) CentOS mailing list > wrote: >> >> I have the need to know how many connection the server has, i run this >> command but i don't know how to sum all the results and get a final >> number. any ideas? >> >> netstat -an | grep -E 'tcp|udp

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread Robert Heller
At Fri, 3 Dec 2010 12:57:59 -0800 (PST) CentOS mailing list wrote: > > > > I have the need to know how many connection the server has, i run this > command but i don't know how to sum all the results and get a final number. > any ideas? > > netstat -an | grep -E 'tcp|udp' | awk '{print $6}'

Re: [CentOS] Total Number of conecctions

2010-12-03 Thread Ned Slider
On 03/12/10 20:57, Alejandro Rodriguez Luna wrote: > I have the need to know how many connection the server has, i run this > command but i don't know how to sum all the results and get a final number. > any ideas? > > netstat -an | grep -E 'tcp|udp' | awk '{print $6}' | sort | uniq -c | sort -n >

[CentOS] Total Number of conecctions

2010-12-03 Thread Alejandro Rodriguez Luna
I have the need to know how many connection the server has, i run this command but i don't know how to sum all the results and get a final number. any ideas? netstat -an | grep -E 'tcp|udp' | awk '{print $6}' | sort | uniq -c | sort -n    1 CLOSE_WAIT    1 FIN_WAIT_2    1 LAST_ACK    1 TIME_WAIT