Hi, in picture i write what i need.
please help

/interface monitor-traffic pppoe-out2
thanks,
i need to check every 1 minute with script “rx-bits-per-second” value of interface and if it 0 mbit need to reconnect interface.
how can i do it?
/interface monitor-traffic LAN once do={:put $"rx-bits-per-second" }
Hi,
How can apply this to TX RC bytes (not bits)
THanks.
/interface monitor-traffic LAN once do={:put ($"rx-bits-per-second"/8) }
How to record this value to the log and let it display like 14.5Mbps, retaining a decimal point. Trying to find the entire forum, many will not work.
The syntax of Routeros scripting is designed for easy parsing rather than readability or ease to write, but something like this works to one decimal:
/interface monitor-traffic bridge once do={:put "$"rx-bits-per-second" $($"rx-bits-per-second"/1000000).$(($"rx-bits-per-second"%1000000)/100000)Mbps" }
8591152 8.5Mbps
(with an example output) If you want to show Kbps or have more decimal figures if the value is smaller, etc. you will have to test for values and complicate it even further.