Who rated this post

cancel
Showing results for 
Search instead for 
Did you mean: 
Kaspars_Zibarts
Employee Employee
Employee

slightly more efficient one-liner for drop / discard percentage calculator that works also on 3.10 kernel 🙂

 

netstat -ni | awk '{print $1" "$4" "$6}' | egrep "^bond|^eth" | while read line; do echo $line | awk '{name=$1; tot=$2; err=$3; tot = tot + 1; perc = err * 100 / tot; print name" "perc}'; done

 

image.png

 

(1)
Who rated this post