°Ô½Ã¹° 1,369°Ç
   
bwbar BandWidth
±Û¾´ÀÌ : ÃÖ°í°ü¸®ÀÚ ³¯Â¥ : 2012-01-18 (¼ö) 13:18 Á¶È¸ : 6049
±ÛÁÖ¼Ò :
                                
Çö½Ã½ºÅÛ¿¡ Bandwidth ¸¦ ºñÁê¾óÇÏ°Ô º¸´Âµ¥ »ç¿ë


# wget    ftp://ftp.kernel.org/pub/software/web/bwbar/bwbar-1.2.tar.bz2
# wget http://mirror.linux.org.au/software/web/bwbar/bwbar-1.2.3.tar.bz2
tar xvf bwbar-1.2.3.tar.bz2
cd bwbar-1.2.3
# make
# ./bwbar --width 130 --height 6 eth0 100  -t 3 &

¾Æ·¡ µÎ°³ÀÇ ÆÄÀÏÀÌ »ý¼ºµÈ´Ù.
ubar.txt  

ubar.png


[root@localhost bwbar-1.2]# ./bwbar --help
Usage: ./bwbar [options] interface max_mbps
Options: (defaults in parenthesis)
   --input               -i   Measure input bandwidth
   --output              -o   Measure output bandwidth (default)
   --text-file <file>    -f   The name of the text output file (ubar.txt)
   --png-file <file>     -p   The name of the graphical bar file (ubar.png)
   --interval <seconds>  -t   The poll interval in seconds (15)
   --width <pixels>      -x   Width of the graphical bar (600)
   --height <pixels>     -y   Height of the graphical bar (4)
   --border <pixels>     -b   Border width of the graphical bar (1)
   --kbps                -k   Bandwidth is measured in kbit/s
   --Mbps                -M   Bandwidth is measured in Mbit/s (default)
   --Gbps                -G   Bandwidth is measured in Gbit/s
   --help                -h   Display this text


À̹ÌÁö »çÀÌÁ°æ
# bwbar --output --width 300 --height 20 eth0 100 -t 3 --png-file outbound.png --text-file outbound.txt &
# bwbar --input  --width 300 --height 20 eth0 100 -t 3 --png-file inbound.png --text-file inbound.txt &


PHP Äڵ忡 »ðÀÔ¹æ¹ý
<CENTER>
<FONT SIZE="-1">
</FONT>
<BR>
OutBound<br>
<?php require('./outbound.txt'); ?><br>
<IMG SRC="./outbound.png" ALT="Bandwidth utilization bar" WIDTH=600 HEIGHT=10 BORDER=0><p>
InBound<BR>
<?php require('./inbound.txt'); ?><br>
<IMG SRC="./inbound.png" ALT="Bandwidth utilization bar" WIDTH=600 HEIGHT=10 BORDER=0>
</CENTER>


À̸§ Æнº¿öµå
ºñ¹Ð±Û (üũÇÏ¸é ±Û¾´À̸¸ ³»¿ëÀ» È®ÀÎÇÒ ¼ö ÀÖ½À´Ï´Ù.)
¿ÞÂÊÀÇ ±ÛÀÚ¸¦ ÀÔ·ÂÇϼ¼¿ä.
   

 



 
»çÀÌÆ®¸í : ¸ðÁö¸®³× | ´ëÇ¥ : ÀÌ°æÇö | °³ÀÎÄ¿¹Â´ÏƼ : ·©Å°´åÄÄ ¿î¿µÃ¼Á¦(OS) | °æ±âµµ ¼º³²½Ã ºÐ´ç±¸ | ÀüÀÚ¿ìÆí : mojily°ñ¹ðÀÌchonnom.com Copyright ¨Ï www.chonnom.com www.kyunghyun.net www.mojily.net. All rights reserved.