Difference between revisions of "Top talkers"
From Tech-Wiki
Line 11: | Line 11: | ||
fwaccel conns | awk '{print $3}' | sort | uniq -c | sort -n -r | head -n 50 | fwaccel conns | awk '{print $3}' | sort | uniq -c | sort -n -r | head -n 50 | ||
− | Display Connections From a | + | Display Connections From a specific Host: |
− | fwaccel conns | awk -v DPT=200.1.1.1 '$1==DPT{print}'| sort | sort -n -r | | + | fwaccel conns | awk -v DPT=200.1.1.1 '$1==DPT{print}'| sort | sort -n -r | head -n 50 |
− | Display Connections To a | + | Display Connections To a specific Host: |
− | fwaccel conns | awk -v DPT=200.1.1.1 '$3==DPT{print}'| sort | sort -n -r | | + | fwaccel conns | awk -v DPT=200.1.1.1 '$3==DPT{print}'| sort | sort -n -r | head -n 50 |
Revision as of 19:11, 9 January 2019
Display the top 50 Source/Destination pairs:
fwaccel conns | awk '{printf "%-16s %-15s\n", $1,$3}' | sort | uniq -c | sort -n -r | head -n 50;
Display the top 50 Sources:
fwaccel conns | awk '{print $1}' | sort | uniq -c | sort -n -r | head -n 50
Display the top 50 Destinations:
fwaccel conns | awk '{print $3}' | sort | uniq -c | sort -n -r | head -n 50
Display Connections From a specific Host:
fwaccel conns | awk -v DPT=200.1.1.1 '$1==DPT{print}'| sort | sort -n -r | head -n 50
Display Connections To a specific Host:
fwaccel conns | awk -v DPT=200.1.1.1 '$3==DPT{print}'| sort | sort -n -r | head -n 50