:global IPCONTROLLR "IPLOCALDOCONTROLLR"; :global KEY ""SUACHAVE?"; :global DEVICE "0"; :global PPPOE "1"; :global HOTSPOT "0"; :global LOCALADDRESS "192.168.1.1"; :global REMOTEADDRESS "pool-pppoe"; :global DNSSERVER1 "8.8.8.8"; :global DNSSERVER2 "8.8.4.4"; :global done ""; :log warning "Importando PPPoE"; /tool fetch mode=http url="http://$IPCONTROLLR:8083/service/mikrotik/index?key=$KEY&device=$DEVICE&local_address=$LOCALADDRESS&remote_address=$REMOTEADDRESS&pppoe=$PPPOE&hotspot=$HOTSPOT&dns_server1=$DNSSERVER1&dns_server2=$DNSSERVER2" src-path=mikrotik.php dst-path=clientsctrl.rsc; :set done "true"; :if ( [/file find name=clientsctrl.rsc] != "" ) do={ :log warning "Importando PPPoE2"; /import clientsctrl.rsc; /file remove clientsctrl.rs }