I used to be able to get interface stats from the terminal, but am still unable to do this in ros 7.
interface/ethernet/get value-name=tx-bytes ether1
Returns nothing with no error. Is there a syntax change I’m missing?
Thanks.
I used to be able to get interface stats from the terminal, but am still unable to do this in ros 7.
interface/ethernet/get value-name=tx-bytes ether1
Returns nothing with no error. Is there a syntax change I’m missing?
Thanks.
Is like you do not remember well… also on v6 that syntax do not return nothing…
Try the correct syntax and probably work on both versions…
:put [/interface ethernet get ether1 tx-bytes]
[admin@MikroTik] > /interface ethernet get ether1 tx-bytes
[admin@MikroTik] >
Thanks for the quick reply but please refrain from the attitude.
The command you offered is exactly what I used in scripts that worked in ros 6 but not since 7.
Thanks for the “axxhoxe” in report,
but instead I have provided to you the soluction, and you have ignored that.
RouterOS 7.2.3 (on example I use ether2 because I do not have any on ether1)
[xxx@ROUTER-xxx] > :put [/interface ethernet get ether2 tx-bytes]
63 181 327 519