How to know the amount of data used

how to know how much data i have used since system booted

you can check under luci / network / interfaces, or use cli tool like ethtool -S for example.

...or a bit fancier (luci-app-)nlbwmon.
Look under system-software

ifconfig from cli

Install the vnstat package. It tracks this and will give you pretty graphs in Luci on the Status menu

1 Like

can you show how it looks...??
this is how i see
Screenshot from 2023-03-16 23-50-54

here is output from luci vmstat2 .
image
One thing is missing thou . There is no automatic backup (save to flash) but can be arranged

Anyone know the differences between vnstat and vnstat2?

vnstat2 is the package included in OpenWRT. I was referring to vnstat2, just dropped the 2

They're both included. vnstat has a doc page in the wiki, but vnstat2 does not. I'm wondering why there are two of them and what the differences are.

$ opkg list | grep app-vnstat
luci-app-vnstat - git-20.108.38431-8f34e10 - LuCI Support for VnStat
luci-app-vnstat2 - git-21.223.26753-57f325a - LuCI Support for vnStat 2

Some hints:

1 Like

luci-app-nlbwmon what about this one ?

Tracks traffic over time - typically your ISP billing period. Has a runtime cli interface to pull stats from current and past stats (if enabled). See: https://github.com/jow-/nlbwmon

Isp billing is not important as i have unlimited brandwidth

You asked the question.

If all you want to know is total traffic from boot time, just:

  • uptime
  • ifconfig wan

There’s your answer.

this is IP connection tracking counter . Good on router or with real IP interface . Won't work for DSL modem interface like I have . Also possibly will have similar issue with hardware accelerated routes

Hello there!

Thanks for the tip. It gives a simple solution to my problem. But I have another question.

I also have a cloud wireguard vpn on my ow router. The physical port is wan and the interface is wgcloud.

If I type ifconfig wgcloud, I get :

RX bytes:208396914984 (194.0 GiB) TX bytes:11188084868 (10.4 GiB)

When I query for wan, I get :

RX bytes:264107939526 (245.9 GiB) TX bytes:19437368553 (18.1 GiB)

Are these values mutually exclusive? Or wgcloud data is a part of wan data?

Thanks.

-Gamma

The latter. Your wan is the aggregate of your single pipeline to your ISP.

Thank you for clarifying my doubt. :slight_smile:
-Gamma