Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

ONELINER - Interfaces with RX-ERR, RX-DRP and RX-OVR Errors

This oneliner (see spoiler) shows you all interfaces with errors:
         - RX-ERR  >  0.0%
         - RX-OVR  >  0.1%
         - RX-DRP  >  0.1%

Spoiler
NET_RXERR=`netstat -in |grep -v Iface |awk '{ $wert=sprintf(" %s %.6f", $1,  (($5+.000001)/($4+0.000001)*100))} {print $wert}' | grep -v "100.000000" | awk '$2 >.00001 {print $1}' | awk '{L=L $1" "} END {print L}';`; echo;echo "RX-ERR (>0.0%): $NET_RXERR";NET_RXDRP=`netstat -in |grep -v Iface |awk '{ $wert=sprintf(" %s %.6f", $1,  (($6+.000001)/($4+0.000001)*100))} {print $wert}' | grep -v "100.000000" | awk '$2 >.1 {print $1}' | awk '{L=L $1" "} END {print L}';`; echo "RX-DRP (>0.1%): $NET_RXDRP";NET_RXOVR=`netstat -in |grep -v Iface |awk '{ $wert=sprintf(" %s %.6f", $1,  (($7+.000001)/($4+0.000001)*100))} {print $wert}' | grep -v "100.000000" | awk '$2 >.1 {print $1}' | awk '{L=L $1" "} END {print L}';`; echo "RX-OVR (>0.1%): $NET_RXOVR";

Output:
onliner_int.JPG

Or use this tool for much more information on all your gateways :
Easy View Tool - View System Info for All Gateways Simultaneously

 

1 Reply
Highlighted
Ivory

Re: ONELINER - Interfaces with RX-ERR, RX-DRP and RX-OVR Errors

Great work @HeikoAnkenbrand