[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>