Change ssid script don't work

This script that i found don’t work in RouterOs 6.12
on rb2011
What is the problem?

Change ssid script


:if ([/ping altavista.com count=1] = 0) do={
:log Internet down, switching providers
:local CurrentSSID [/int wireless get [find interface=“wlan1”] ssid];
:if ($CurrentSSID=“isp1-ssid”) do={
/interface wireless set [/int wi find name=wlan1] ssid=isp2-ssid
} else {
/interface wireless set [/int wi find name=wlan1] ssid=isp1-ssid
}
} else {
:log Internet up… nothing to do
}

When the host is up execute the script like this:
/interface wireless set 0 ssid=Is-Up

When the host is down execute this:

/interface wireless set 0 ssid=Is-Down

/tool netwatch
add host=8.8.8.8 down-script=“interface wireless set 0 ssid=Is-Down” up-script="interface wireless set 0 ssid=Is-Up"you need to change the host.

Working like a charm, thanks c0d3rSh3ll

+1