Monitor Traffic on a custom named interface?

I’m trying to set up this as a data source. The Interface is “ether1 - AB ROUTER”, which doesn’t work in the ros_command. I’ve also tried /interface find name=“ether1 - AB ROUTER”, but nothing seems to work. I also tried just plain old ether1, which I didn’t expect to work, as if you do a monitor traffic directly in terminal, it will complain about multiple possibilities, which I assume means ether10 existing.

Any ideas how to get this to monitor the interface correctly?

ros_command(“:put (((([/interface monitor-traffic ether1 once as-value]->"rx-bits-per-second")/1000)/100)/8);”)

put (((([/interface monitor-traffic ether1
once as-value]->"rx-bits-per-second")/1000)/100)/8)

this works for me -ROS6.49.18

You can also try this script:

:local iname
:local monitor
:local speedRX
:local speedTX
:local mbpsRX
:local mbpsTX
foreach inface in=[/interface find] do={
delay 100ms
:set $iname [/interface get $inface name]
:set $monitor [/interface monitor-traffic $iname as-value once]

:set $speedRX ($monitor->"rx-bits-per-second")

:set $speedTX ($monitor->"tx-bits-per-second")
:set $mbpsRX (($speedRX/1000)/1000)
:set $mbpsTX (($speedTX/1000)/1000)
:put "$iname RX:$mbpsRX Mbps TX:$mbpsTX Mbps"
}