Community discussions

MikroTik App
 
User avatar
kssnetworks
just joined
Topic Author
Posts: 3
Joined: Sat Jun 13, 2020 9:42 am

Getting the status of the traffic-generator

Tue Mar 16, 2021 6:28 pm

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.
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Getting the status of the traffic-generator

Tue Mar 16, 2021 9:11 pm

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]
 
User avatar
kssnetworks
just joined
Topic Author
Posts: 3
Joined: Sat Jun 13, 2020 9:42 am

Re: Getting the status of the traffic-generator

Wed Mar 17, 2021 1:19 am

Ok, now I get it.

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

Reading more on this. Thank you so much Jotne.

Who is online

Users browsing this forum: No registered users and 16 guests