I need the Guest-WLAN Interface Status from the Capsman Router and tryed this without success.
I need the Information for another script to turn on/off the Guest-Wlan with the Mode-Button from the cAP.
:global GuestWifiStatus
:local remoteInterfaceStatusValue [/system ssh-exec address=192.168.0.1 command=":put ([/interface wifi print detail where name=\"cAP-guest\" as-value]->0->\"disabled\")" as-value]->"output"
:if ($remoteInterfaceStatusValue = "true") do={
:set GuestWifiStatus "disabled"
} else={
:set GuestWifiStatus "enabled"
}
This script doesnt work, Please help ![]()
br Richard
PS: SSH Works, tested with other easy comands !