Disable WLan Interface with button on CAP AC with CAPsMAN

Hi
I want to use the buttons on the Cap AC to enabled/disable WLan. The ACs are managed by CAPsMAN from a HEX router.
Because of that If I want to disable wlan1 or 2 by script on the device it says “failure: interface managed by CAPsMAN”

How must the script look like? Do I need one per AC to access CAPsMAN and enable/disable it from there?
Can I access the routerboard of the managed ACs via CAPsMAN to programm scripts centrally?

Thanks for your help in advnce!

any idea? is it not possible?

Hi,

I wrote the following script for the same purpose. It’s working fine for some time now. Still working on 6.48.


:log info message=("mode button was pressed");
:local i

:if ([/int wir cap get enabled] = true) do={
  /interface wireless cap set enabled=no;
  :if ( [/int wir get 0 disabled ] = false ) do={
    :foreach i in= [ /int wir find ] do={ :int wir disable $i };
  }
} else={
  /interface wireless cap set enabled=yes
}

You can also find it on my github gists: https://gist.github.com/sebastian13/5655efab2b51f0f3572352acbb640c48