Community discussions

MikroTik App
 
joshuadh

TORCH SCRIPTING for Transmitted rate

Tue May 24, 2005 3:25 am

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.? :?

Help appreciated,
Neil
 
edzix
Member
Member
Posts: 333
Joined: Thu Jul 01, 2004 3:01 pm
Location: Latvia

  [SOLVED]

Thu Jun 02, 2005 3:35 pm

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
 
tincboy
just joined
Posts: 18
Joined: Wed Mar 10, 2010 8:57 am

Re: TORCH SCRIPTING for Transmitted rate

Sun Jul 28, 2013 1:05 pm

Isn't it yet implemented?
 
el berto
Member Candidate
Member Candidate
Posts: 223
Joined: Wed Sep 26, 2007 10:53 am

Re: TORCH SCRIPTING for Transmitted rate

Fri Mar 07, 2014 12:53 pm

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.

Who is online

Users browsing this forum: No registered users and 28 guests