Community discussions

MikroTik App
 
fragtion
Member Candidate
Member Candidate
Topic Author
Posts: 260
Joined: Fri Nov 13, 2009 10:08 pm
Location: Johannesburg, South Africa

Getting status values for wifiwave interface using script?

Fri Jun 09, 2023 4:27 pm

There does not yet seem to be any way, using a script, to obtain the values for a wifiwave interface which Winbox shows under the "Status" tab. For example, "State", "Channel", "Tx Power"

This makes it difficult to, for instance, know if the interface is broadcasting SSID (running mode) or searching DFS radar (cac), etc. Anyone know a workaround for this?

Edit: Okay looks like I can get what I need from /interface/wifiwave2/monitor wifi1 as-value once. It would be nice to get these values using get instead of monitor, however?
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12003
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Getting status values for wifiwave interface using script?

Fri Jun 09, 2023 5:33 pm

not, because only monitoring that interface you can get that info... is not like read how one parameter is set....
 
holvoetn
Forum Guru
Forum Guru
Posts: 5490
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Getting status values for wifiwave interface using script?

Fri Jun 09, 2023 5:37 pm

Also seems to be version dependent.

When I use "as-value", I get zip nada nothing.
Leaving out "as-value" I get output.

AX3, 7.10rc1
[xyz@AX3-Office] /interface/wifiwave2> monitor wifi1 once as-value
[xyz@AX3-Office] /interface/wifiwave2> monitor wifi1 once
state: running
channel: 5260/ax/Ceee
registered-peers: 0
authorized-peers: 0
tx-power: 17
available-channels: 5260/ax/Ceee
[xyz@AX3-Office] /interface/wifiwave2>
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12003
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: Getting status values for wifiwave interface using script?

Fri Jun 09, 2023 5:40 pm

Try to print the array....

:put [monitor wifi1 once as-value]
 
holvoetn
Forum Guru
Forum Guru
Posts: 5490
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: Getting status values for wifiwave interface using script?

Fri Jun 09, 2023 5:44 pm

Gotcha ! 8)
[xyz@AX3-Office] /interface/wifiwave2> :put [monitor wifi2 once as-value]
.id=*7;authorized-peers=2;available-channels=2462/ax/eC;channel=2462/ax/eC;comment=;registered-peers=2;state=running;tx-power=15

Who is online

Users browsing this forum: No registered users and 39 guests