월간 인기 게시물

게시물 160건
   
vnstat ::트래픽 모니터링
글쓴이 : 최고관리자 날짜 : 2014-10-30 (목) 13:22 조회 : 4856
글주소 :
                          


vnstat 
리눅스 콘솔상에서 날짜별로 트래픽을 모니터링 할수 있는 툴입니다.
설치는 yum으로 지원되며 ubutu는 apt-get으로 손쉽게 설치할수 있습니다.
또한 시간, 일, 주, 월별로 출력이 가능하며 동시에 여러개의 이더넷 인터페이스를 모니터링이 가능합니다.

OS : Fedoara18 x86
# yum install vnstat

# vnstat --help
 vnStat 1.11 by Teemu Toivola <tst at iki dot fi>

         -q,  --query          query database
         -h,  --hours          show hours    :: 시간별 출력
         -d,  --days           show days   :: 일일데이타 출력
         -m,  --months         show months  :: 월별데이타 출력
         -w,  --weeks          show weeks   :: 주간데이타 출력
         -t,  --top10          show top10   :: 트래픽 사용량 TOP 정렬
         -s,  --short          use short output
         -u,  --update         update database
         -i,  --iface          select interface (default: eth0)
         -?,  --help           short help
         -v,  --version        show version
         -tr, --traffic        calculate traffic   :: 특정시간동안 누적트래픽 출력(초단위 입력)
         -ru, --rateunit       swap configured rate unit
         -l,  --live           show transfer rate in real time   :: 실시간 트래픽 출력

See also "--longhelp" for complete options list and "man vnstat".


# vnstat
No database found, nothing to do. Use --help for help.

A new database can be created with the following command:
    vnstat -u -i eth0

Replace 'eth0' with the interface that should be monitored.

The following interfaces are currently available:
    eth0 eth1 eth2 eth3 lo 


모니터링 가능한 이더넷 디바이스 확인
# vnstat --iflist
Available interfaces: eth0 eth1 eth2 lo 

eth0 모니터링  (처음에는 데이터베이스 파일이 없어서 Error 메세지가 출력)
#  vnstat -u -i eth0 
Error: Unable to read database "/var/lib/vnstat/eth0".
Info: -> A new database has been created.


:: 아직 충분한 데이터가 누적되지 않아서 나오는 메세지로 일정데이타가 쌓이게 되면 출력됩니다.
# vnstat
 eth0: Not enough data available yet.


# vnstat
Database updated: Thu Oct 30 13:35:40 2014

   eth0 since 10/30/14

          rx:  599.48 MiB      tx:  11.28 MiB      total:  610.76 MiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Oct '14    599.48 MiB |   11.28 MiB |  610.76 MiB |    1.96 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated       628 MiB |      11 MiB |     639 MiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
         today    599.48 MiB |   11.28 MiB |  610.76 MiB |  102.23 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated      1.03 GiB |      19 MiB |    1.05 GiB |



이름 패스워드
비밀글 (체크하면 글쓴이만 내용을 확인할 수 있습니다.)
왼쪽의 글자를 입력하세요.
   

 



 
사이트명 : 모지리네 | 대표 : 이경현 | 개인커뮤니티 : 랭키닷컴 운영체제(OS) | 경기도 성남시 분당구 | 전자우편 : mojily골뱅이chonnom.com Copyright ⓒ www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.