Hi, could somebody help me on this?
I'm able to run successfully the below dyndns script (is a modified version from "freeloader" MKT forum user) on various platforms :
- x86
- PowerPC (RB800)
- Mipsle (RB131)
but I'm unable to run an exact copy of this on Mipsbe boards (RB450G, RB750G, etc....)
Does anybody know is there are diferences on scripting syntax between platforms???
I'm sure the problem is on the fetch command, cause script stop run at this point, but it is an exact copy of the script wich runs perfectly on the others platforms... I'm crazy with this... I tryed even diferents RouterOS versions on Mipsbe boards w/o success...
# Set needed variables
:local UN "yourusername"
:local PW "yourpassword"
:local hostname "youhostname.dnsalias.net"
:local ddnsinterface "PPPoE1"
:global previousIP
:local fullIP [/ip address get [/ip address find interface=$ddnsinterface] address];
:local endloc [:find $fullIP "/" -1];
:local currentIP [:pick $fullIP $fullIP $endloc];
# Determine if dyndns update is needed and execute
:if ($currentIP != $previousIP) do={
:set previousIP $currentIP
/tool fetch user=$UN password=$PW mode=http address="members.dyndns.org" src-path="/nic/update?hostname=$hostname&myip=$currentIP" dst-path="dyndns.txt"
:log info ("Dyndns Update: New IP=".[$currentIP])
} else={
:log info ("Dyndns Update: No update needed")
}