TORCH SCRIPTING for Transmitted rate

Hi all,

Is it possible to get the value of both tx and RX using the torch tool through scipting?

here is my test script:

#===============================

:local tx
:local rx
/tool torch ether1 src-address=10.10.10.0/24 once {
:set tx $TX
:set rx $RX
:log message=“The traffic from network 10.10.10.0/24 is :” . $TX . “/” . $RX . “(TX/RX)”

}

#===============================

What is missing, I cannot get the right value for tx and RX.? :confused:

Help appreciated,
Neil

there should be do before {…} sections. But as this is not implemented, there is no possibility to do this.

Try '/interface monitor-traffic xxx do={..}" instead.

Edgars

Isn’t it yet implemented?

I would like try to do something similar: in torch (GUI through winbox) I see the same dst-address (192.168.10.4) with two different src-address.
I would like to get TX rate of each src-address of the same dst-address.
Is it possible?
Thanks.