Getting the status of the traffic-generator

Hi,

I am trying to retrieve the status of the traffic-generator in order to verify if it’s running (and later use it for a script). Over on the command-line, I was trying the following but does not seem to provide any output (shouldn’t it?)

[admin@MikroTik] > /tool traffic-generator get running
[admin@MikroTik] >

Or is this not the way?

Thank you.

To get the status:

/tool traffic-generator get running

You can set a varible with the status like this:

:local status [/tool traffic-generator get running]

To just get the output from command line

:put [/tool traffic-generator get running]

Ok, now I get it.

[admin@MikroTik] > :put [/tool traffic-generator get running]
true

Reading more on this. Thank you so much Jotne.