시스템 업무를 하면서 반드시 필요한 정보이다. 현재 네트웍 장비에 대한 정보와 트래픽 정보를 얻어 낼 수 있다.
모니터링시 네트웍 상황을 얻어올 때, 유용할 수 있다. rrd랑 쓰면 모니터링이 가능할 것이다.
참조자료.
http://linuxdevcenter.com/pub/a/linux/2000/11/16/LinuxAdmin.html
cat /proc/net/dev 명령어를 치면 다음과 같이 나올 것이다.
Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed lo:111787507 281326 0 0 0 0 0 0 111787507 281326 0 0 0 0 0 0 eth0:161543042 916321 0 0 0 0 0 43431 103791415 767750 0 0 0 8664 0 0
실제 필드의 내용은 다음과 같다.
bytes
The total number of bytes of data transmitted or received by the interface.
packets
The total number of packets of data transmitted or received by the interface.
errs
The total number of transmit or receive errors detected by the device driver.
drop
The total number of packets dropped by the device driver.
fifo
The number of FIFO buffer errors.
frame
The number of packet framing errors.
colls
The number of collisions detected on the interface.
compressed
The number of compressed packets transmitted or received by the device driver. (This appears to be unused in the 2.2.15 kernel.)
carrier
The number of carrier losses detected by the device driver.
multicast
The number of multicast frames transmitted or received by the device driver.
'unix and linux' 카테고리의 다른 글
리눅스 부팅 순서 (0) | 2007.08.16 |
---|---|
/proc/net/tcp 보기 (0) | 2007.08.02 |
Yum (0) | 2007.06.07 |
Virtual Box 설치하기 (0) | 2007.06.07 |
페도라 설치 (0) | 2007.06.06 |