User Tools

Site Tools


awk:find_number_of_open_connections_per_ip

AWK - Find Number of open connections per IP

ss -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

returns:

      1 Local
      2 [fe80
      4 127.0.0.1
     23 192.168.1.69

NOTE: ss is the newer replacement for the netstat command.

awk/find_number_of_open_connections_per_ip.txt · Last modified: 2021/01/06 17:15 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki