Hi, in picture i write what i need.
please help
/interface monitor-traffic pppoe-out2
/interface monitor-traffic LAN once do={:put $"rx-bits-per-second" }
/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.Code: Select all/interface monitor-traffic LAN once do={:put $"rx-bits-per-second" }
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: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.Code: Select all/interface monitor-traffic LAN once do={:put $"rx-bits-per-second" }
/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