続vnstat

表題の通り、先日の`vnstat`の続きである。

■ 環境

  • Ubuntu 14.04

■ vnstat

昨日は見ても何も面白い結果が無かったので、一日経過して再度見てみる。

$ vnstat
Database updated: Thu Jan 26 19:11:25 2017

   eth0 since 01/25/17

          rx:  36.83 MiB      tx:  28.28 MiB      total:  65.11 MiB

   monthly
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
       Jan '17     36.83 MiB |   28.28 MiB |   65.11 MiB |    0.24 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        43 MiB |      33 MiB |      76 MiB |

   daily
                     rx      |     tx      |    total    |   avg. rate
     ------------------------+-------------+-------------+---------------
     yesterday     10.02 MiB |    9.87 MiB |   19.89 MiB |    1.89 kbit/s
         today     26.81 MiB |   18.41 MiB |   45.22 MiB |    6.70 kbit/s
     ------------------------+-------------+-------------+---------------
     estimated        40 MiB |      28 MiB |      68 MiB |
$

少しだけ見た目が面白くなった。”help“を見てみる。

$ vnstat -h
vnStat 1.11 by Teemu Toivola 

         -q,  --query          query database
         -h,  --hours          show hours
         -d,  --days           show days
         -m,  --months         show months
         -w,  --weeks          show weeks
         -t,  --top10          show top10
         -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".
$

デフォルトでは”monthly“と”daily“だけが見られるようなので他のも見てみる。

$ vnstat -w

eth0  /  weekly

                      rx      |     tx      |    total    |   avg. rate
   ---------------------------+-------------+-------------+---------------
    last 7 days     36.94 MiB |   28.40 MiB |   65.34 MiB |    0.93 kbit/s
   current week     36.94 MiB |   28.40 MiB |   65.34 MiB |    1.70 kbit/s
   ---------------------------+-------------+-------------+---------------
      estimated        69 MiB |      54 MiB |     123 MiB |
$
$ vnstat -m

eth0  /  monthly

       month        rx      |     tx      |    total    |   avg. rate
    ------------------------+-------------+-------------+---------------
      Jan '17     36.94 MiB |   28.40 MiB |   65.34 MiB |    0.24 kbit/s
    ------------------------+-------------+-------------+---------------
    estimated        43 MiB |      33 MiB |      76 MiB |
$
$ vnstat -m -w

eth0  /  weekly

                      rx      |     tx      |    total    |   avg. rate
   ---------------------------+-------------+-------------+---------------
    last 7 days     36.94 MiB |   28.40 MiB |   65.34 MiB |    0.93 kbit/s
   current week     36.94 MiB |   28.40 MiB |   65.34 MiB |    1.70 kbit/s
   ---------------------------+-------------+-------------+---------------
      estimated        69 MiB |      54 MiB |     123 MiB |
$

最後は”-m“と”-w“を両方指定して実行してみたのだが、”-w“の結果しか得られなかった。”-l“でリアルタイムの状態も見られるようである。

以上。

■ 関連

コメントを残す

メールアドレスが公開されることはありません。

CAPTCHA


このサイトはスパムを低減するために Akismet を使っています。コメントデータの処理方法の詳細はこちらをご覧ください