From what I’m seeing on the CLI (I haven’t actually tried issuing that command…), it appears “interface” is a normal argument, not something to be specified via “where”, so you should be able to simply remove the “?”. If the ID is correct, the first should work. Even if it does, I’d recommend the second form (i.e. with name).
Do you know if it is possible to get all possible options for a parameter of a wireless card, e.g. for a band? I’d like to check if 5Ghz card is able to use 801.2n(or even ac), so I can set 5Ghz-A/N instead of 5Ghz-A.
The only way you can see possible values is from CLI (and inherently, from SSH), by typing in the argument name, and pressing the Tab key.
Even that however only tells you the possible values that RouterOS supports. It doesn’t tell you whether the hardware would support it (unless maybe RouterOS detects that, and acts accordingly? I don’t have enough experience to say for sure…). The best you can do is try to set the option, and see if you get an error when doing so. If you don’t get an error, you can assume the setting is supported.
I see, thanks. For now I do it through /interface wireless info, but the problem is that since some ROS version it has hw-info function and before this it had just print function. I don’t even know which version changed it. 6.10 has print but 6.28 has hw-info. So some between them.
I know what you mean… I even wrote a detailed proposal to MikroTik about an API command that would have this functionality, and which I’d be willing to immediately implement in my API client in at least two ways (command pre-checking and ORM generation…).
Did you ever find a way to get the info through API?
I have always been using /interface/wireless/info/print but any CPE that uses the wireless-fp package (meaning all CPEs with 6.30 +) dont work like that anymore.