Daily bandwidth total report

Is it possible to get a report on total bandwidth usage on a specified interface? I am using TD 4.0beta3 connected to Mikrotik devices. I can easily see the bandwidth graphs, but I need a more accurate number if possible.

You should be able to adapt this script to give you reports based on Interface, Ip, VLAN etc. It is an excellent bit of code and full credit to Andrew Cox.

http://wiki.mikrotik.com/wiki/Automated_Usage_Script_without_usermanager

Wow, that might a little overkill for my needs! I’m just looking for some very basic daily usage on a couple wireless PTP links, not for billing purposes. I’m thinking I might just do it by hand and record Tx/Rx Bytes reported by the radios at the same time each day.
I don’t think I asked the right question, basically all I need is a count of MB for each day.

In that case how about a simple script like

/interface ethernet print stats file=stats.txt
/interface ethernet reset-counters
/tool e-mail send to=“config@mydomain.com” subject=“$[/system identity get name] usage)
body=”$[/system clock get date] Ethernet usage Stats" file=stats.txt

You can then schedule it to run once a day and export your port stats then reset the counters :slight_smile: