commit
290949302a
@ -2646,13 +2646,8 @@ ___
|
|||||||
###### Graph # of connections for each hosts
|
###### Graph # of connections for each hosts
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
netstat -an | \
|
netstat -an | awk '/ESTABLISHED/ { split($5,ip,":"); if (ip[1] !~ /^$/) print ip[1] }' | \
|
||||||
grep ESTABLISHED | \
|
sort | uniq -c | awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
|
||||||
awk '{print $5}' | \
|
|
||||||
awk -F: '{print $1}' | \
|
|
||||||
grep -v -e '^[[:space:]]*$' | \
|
|
||||||
sort | uniq -c | \
|
|
||||||
awk '{ printf("%s\t%s\t",$2,$1) ; for (i = 0; i < $1; i++) {printf("*")}; print "" }'
|
|
||||||
```
|
```
|
||||||
|
|
||||||
###### Monitor open connections for specific port including listen, count and sort it per IP
|
###### Monitor open connections for specific port including listen, count and sort it per IP
|
||||||
|
Loading…
Reference in New Issue
Block a user