Wireless network monitor internet usage.

Is there any way to monitor the internet usage of a wireless phone or laptop and see how many MB does 1 device consume?

If it is possible every 5 mins or something, it can be time, and can someone give a brief description what can a script do? can i create a script and it will be added in my webfig?

I tried this link: http://wiki.mikrotik.com/wiki/API_PHP_class, i got the result below, i am not sure as where can i get the download and upload rate, rx-rate (Receive) while tx-rate (Transmit), are this what i am looking for? (If yes, is it really on MB?) In addition some of the mac address are not in the list WebFig v6.11 listed in wireless.

Some of the listed below are beyond my reach i am not sure what are there meaning i am not really a networking guy i’m more on a programming side can you give me if possible explanation of each array data like in [frames], [hw-frames] and the likes.

RESULT:

[.id] => *2AD
[interface] => wlan1
[mac-address] => AA:AA:AA:AA:AA:13
[ap] => false
[wds] => false
[bridge] => false
[rx-rate] => 1.0Mbps
[tx-rate] => 65.0Mbps
[packets] => 2317,2657
[bytes] => 1378504,528121
[frames] => 2135,2668
[frame-bytes] => 1386815,513378
[hw-frames] => 3271,2808
[hw-frame-bytes] => 1897325,626870
[tx-frames-timed-out] => 0
[uptime] => 00:45:04
[last-activity] => 00:00:01.320
[signal-strength] => -68dBm@1Mbps
[signal-to-noise] => 44
[signal-strength-ch0] => -70
[signal-strength-ch1] => -72
[strength-at-rates] => -68dBm@1Mbps 1s320ms,-68dBm@2Mbps 2m46s740ms,-76dBm@5.5Mbps 33m35s610ms,-77dBm@11Mbps 2s640ms,-60dBm@HT20-1 12m7s810ms,-55dBm@HT20-5 4s410ms,-56dBm@HT20-6 12m9s630ms,-58dBm@HT20-7 44m44s480ms
[tx-ccq] => 67
[p-throughput] => 56640
[last-ip] => 111.111.111.15
[802.1x-port-enabled] => true
[authentication-type] => wpa2-psk
[encryption] => aes-ccm
[group-encryption] => aes-ccm
[management-protection] => false
[wmm-enabled] => true

This works for me

http://forum.mikrotik.com/viewtopic.php?f=2&t=77193&hilit=sniffer&start=0#p388389

This link is helpfull, but unfortunately not for me, i am in ubuntu.

I am planning to make the report personalize so it will be helpful if it is scripts or in direct contact with RouterOS but working sniffer for ubuntu will much appreciated.