<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">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.<br>any ideas?<br><br>netstat -an | grep -E 'tcp|udp' | awk '{print $6}' | sort | uniq -c | sort -n<br><br>   1 CLOSE_WAIT<br>   1 FIN_WAIT_2<br>   1 LAST_ACK<br>   1 TIME_WAIT<br>   4 SYN_SENT<br>  15<br>  37 LISTEN<br>  44 ESTABLISHED<br><br><br><br>----------------------------------<br>
Alejandro Rodriguez Luna<br>
Web: http://www.alexluna.org<br>
E-mail: el_alexluna@yahoo.com.mx<br>
MSN: el_alexluna@yahoo.com.mx<br>
GTalk: alexluna@gmail.com<br>
Movil: 044-311-112-86-41<br>
----------------------------------</td></tr></table><br>