Quantcast
Channel: MikroTik
Viewing all articles
Browse latest Browse all 15133

Scripting • Please suggest how to get wifi interface name from band value ?

$
0
0
I would like to get Wifi Interface name from radio bands ?
I have try to get id from below command
Code:
:put [/interface/wifi/radio find where bands ~".*5.*";];
and it return id *2
when I use this Id to get interface name by
Code:
:put ([/interface/wifi get number=*2;]->"name");
it return ether1 instead of wifi2

from my understanding id return in 1st step is for radio only and on 2nd step is from all existing interface.

Would you please help to suggest how can I get interface name for specify radio band ?
Thank you very much

Statistics: Posted by nongkode — Sat Mar 09, 2024 3:09 pm



Viewing all articles
Browse latest Browse all 15133

Trending Articles