Hello,
Does anyone know the scripting syntax to pull “if possible” the tx-current from a particular interface directly. I have done a bit of google fu but failed. I am trying to avoid using the bandwidth tool.
Thanks in advance.
Hello,
Does anyone know the scripting syntax to pull “if possible” the tx-current from a particular interface directly. I have done a bit of google fu but failed. I am trying to avoid using the bandwidth tool.
Thanks in advance.
What do you mean bay tx-current? As far as I know such parameter does not exist in RouterOS.
you mean current tx-bits-per-second or tx-bits-per-second?
it’s under /interface monitor-traffic
wiki about that
i’m not very familiar with MT sintax, i tried to rewrite one of scripts, but fail.
so i can give only a sample of another variable- wlan frequency, but i think it should be something similar:
in terminal - all info about wlan
/interface wireless monitor wlan once do=
and script who creates variable freq
/interface wireless monitor wlan once do={:global freq [:pick $channel 0 4]}
/interface monitor-traffic wlan once do=
and extract variable tx-bits-per-second
upd:
Found example in this forum too
although there is /interface monitor, but needs /interface monitor traffic it’s working.
/interface monitor-traffic wlan once do={
:global txbps $(“tx-bits-per-second”);
:global rxbps $(“rx-bits-per-second”);
}
Thank you very much!
/interface monitor-traffic 1_WAN_1 once do={
:global rxbps $("rx-bits-per-second");
}
This is exactly what I was looking for