Linux - Determine number of unique hosts connected to server
Normally; I would use netstat -a | grep <port number>
To see a list or to get a count of how many connections to a particular port. However, I need a bit more granular output so that I can also see the number of UNIQUE hosts connected to that port. Otherwise, the current output I am getting will show multiple connections a host may have; which doesn't give me an accurate 'count' of total UNQIUE hosts connected. Thanks |
The "sort" command
Code:
netstat -v -A inet | sed -n '1,2d;/www-http/p;' | sort -b -k5 |
I'd like to discourage members to respond to these posts.
This is the product of a SPAM bot. |
All times are GMT -5. The time now is 04:54 PM. |