How can I find out with API wich items are disabled in wireless access-list?
send("/interface/wireless/access-list/print",false);
send("?disabled=yes",true);
false = do not send zero byte
true= send zero byte.
Connected…
<<< [37] /interface/wireless/access-list/print
<<< [13] ?disabled=yes
[5/5 bytes read.
[5, 1] !done
I have a few disabled MAC entries but it gives me no results.
If you don’t send the “?disabled=yes”, does it return what you expect? I don’t have my API code available right now, so I will have to check it later to insure it works here.
Yes, if I ommit “disabled” line, then I get whole access-list.
I’m also curious why there is no “disabled” in proplist. ![]()
eg.
[0] => Array
(
[.id] => *6
[comment] => xxx
[mac-address] => XX:XX:XX:XX:XX:XX
[interface] => all
[signal-range] => -120..120
[authentication] => true
[forwarding] => true
[ap-tx-limit] => 0
[client-tx-limit] => 0
[private-algo] => none
[private-key] =>
[private-pre-shared-key] =>
)
I checked with V4.14 using my Blackberry phone API. The code I posted above works.
Tnx for the info, I must upgrade to v4 as earlier versions don’t support “disabled” atribute. ![]()
Actually, a lot of earlier versions don’t support the “?” feature. That search parameter feature is rather new.