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
4 SYN_SENT
15
37 LISTEN
44 ESTABLISHED
----------------------------------
Alejandro Rodriguez Luna
Web: http://www.alexluna.org
E-mail: el_alexluna at yahoo.com.mx
MSN: el_alexluna at yahoo.com.mx
GTalk: alexluna at gmail.com
Movil: 044-311-112-86-41
----------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20101203/dea01cba/attachment-0004.html>