Community discussions

MikroTik App
 
PteraWireless
newbie
Topic Author
Posts: 34
Joined: Tue Apr 07, 2009 6:37 pm

monitor traffic

Fri Aug 21, 2009 3:12 am

I need to be able to monitor traffic when I want to and not when TrafficMonitor does. It only executes scripts when the threshold is past.
I need to be able to pull a monitor-traffic ether1 once then take the usage on the tx or rx and record that to a variable that I manipulate and compare.
rx-bits-per-second: 29.3kbps
or
tx-bits-per-second: 54.4kbps
I need these as
29300
and
54400

I have tried a few things but none seem to work.

example
[admin@PteraOffice] /interface> :set monitors {/monitor-traffic Office once}
[admin@PteraOffice] /interface> :put $monitors

[admin@PteraOffice]

Any one already done this or know how?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8712
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: monitor traffic

Fri Aug 21, 2009 5:50 pm

/interface monitor-traffic ether1 once do={:put $"rx-bits-per-second"}