RX-DRP 감시하기

RX-DRP 감시하기
RX-DRP 모니터링

1 실시간 모니터링[ | ]

명령어
watch -n1 -d "netstat -i | grep bond1 | grep -v bond1: | awk '{print $6}'"
예시
Every 1.0s: netstat -i | grep bond1 | grep -v bond1: | awk '{print }'                  Wed Feb  8 15:46:52 2012

bond1      1500   0 3667199824      0 3427416      0 3083006741      0      0      0 BMmRU

2 합계 확인[ | ]

명령어
netstat -i | awk '{sum+=$5}END{print sum}'
실행예시
[root@zetawiki ~]# netstat -i
Kernel Interface table
Iface       MTU Met    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
eth0       1500   0  2940094     10      0      0  1244465      0      0      0 BMRU
lo        16436   0   133015      0      0      0   133015      0      0      0 LRU
[root@zetawiki ~]# netstat -i | awk '{sum+=$5}END{print sum}' 
10
RX_ERR, TX_ERR 변수에 담기
RX_ERR=`netstat -i | awk '{sum+=$5}END{print sum}'`
TX_ERR=`netstat -i | awk '{sum+=$9}END{print sum}'`

3 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}