赞
踩
1.命令
sar -n DEV 1 3|grep "Average" |grep bond0 |awk -v bandin="inband" -v bandout="outband" '{printf ("\033[0;32;1m%-11s\033[0m\033[0;34;1m%-2s\033[0m\n"),bandin,bandout;printf ("%.2fMbps %.2fMbps\n", $5*=8/1000000, $6*=8/1000000)}'
2.效果如下
转载于:https://blog.51cto.com/xoyabc/1852636