Getting status values for wifiwave interface using script?

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?

not, because only monitoring that interface you can get that info… is not like read how one parameter is set…

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>

Try to print the array…

:put [monitor wifi1 once as-value]

Gotcha ! :sunglasses:

[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