Community discussions

MikroTik App
 
chuq
newbie
Topic Author
Posts: 41
Joined: Sun Nov 27, 2022 2:18 pm

Traffic monitor

Thu Oct 12, 2023 10:59 pm

How do I access values from /interface/monitor-traffic ?
 
nediis
Frequent Visitor
Frequent Visitor
Posts: 63
Joined: Wed Jul 11, 2018 10:32 am

Re: Traffic monitor

Mon Oct 16, 2023 2:11 pm

/interface monitor-traffic <iface> once do={ :put $"rx-bits-per-second" }
 
DyadyaGenya
Member Candidate
Member Candidate
Posts: 220
Joined: Mon May 08, 2023 10:34 pm

Re: Traffic monitor

Sun Nov 12, 2023 11:05 pm

/interface monitor-traffic <iface> once do={ :put $"rx-bits-per-second" }
Thus, a lot of unnecessary information is displayed. In my opinion it's easier like this:
:put ( [ /interface monitor-traffic lte1 as-value once ] -> "tx-bits-per-second" )
How do I access values from /interface/monitor-traffic ?
If you are still interested, then in this version, like mine, you can assign a value to a variable and iterate through any values ​​from the data array that the command outputs from the first message from nediis

Who is online

Users browsing this forum: No registered users and 5 guests