/system scheduler add interval=2w1d name=SMSNET-ALERTA-DHCP on-event="#\r\ \n#\r\ \n###########################################################################\r\ \n#### Usando usuario-1,2,3,4,5 = Que seria o SMSNET-SomenteSMS ####\r\ \n#### Usando usuario-6 = Que seria o SMSNET-SomenteWhatsApp ####\r\ \n###########################################################################\r\ \n#\r\ \n#\r\ \n:local user \"USUARIO-6\"\r\ \n:local pass \"SENHA\"\r\ \n:local from \"dddTelefone\"\r\ \n#\r\ \n#\r\ \n###########################################################################\r\ \n#### 9 = PRIORIDADE ALTA ####\r\ \n#### 5 = PRIORIDADE MEDIA ####\r\ \n#### 1 = PRIORIDADE BAIXA ####\r\ \n###########################################################################\r\ \n#\r\ \n#\r\ \n:local priority 9\r\ \n#\r\ \n#\r\ \n###########################################################################\r\ \n#\r\ \n#### NAO ALTERAR ABAIXO O SCRIPT ####\r\ \n#\r\ \n###########################################################################\r\ \n\r\ \n\r\ \n/ip dhcp-server alert remove [find];\r\ \n:global identidade [/system identity get name];\r\ \n:foreach X in=[/interface pppoe-server server find where disabled=no] do={\r\ \n:global iface [/interface pppoe-server server get number=\$X interface];\r\ \n:global mac [/interface get [/interface find name=\$iface] mac-address];\r\ \n/ip dhcp-server alert add on-alert=\"/tool fetch url=\\\"https://sistema.smsnet.com.br/sms/global\\\?username=\$user&password=\$pass&to=+55\$from&msg=ATENCAO+DHCP+ALERTA+-+ROTEADOR+INVERTIDO:+\$identidade+PORTA=\\\$interface+IP=\\\$address+MAC=\ \\\$\\\"mac-address\\\"&priority=\$priority\\\" keep-result=no\" interface=\$iface valid-server=\$mac disable=no alert-timeout=02:00:00;\r\ \n/ip dhcp-client add add-default-route=no dhcp-options=hostname,clientid interface=\$iface use-peer-dns=no use-peer-ntp=no;\r\ \n}\r\ \n" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-time=startup