omega-00 is correct - I added an ‘info, !firewall’ logging stream at one stage and left ‘info’ in place.
With regard to the suggestion from changeip, I have to say that I am struggling to work out how to quote the script when some parts of it are already quoted by necessity. An example for a scripting newbie would be greatly appreciated.
Are you able to post a copy of the script here or is it sensitive?
Alternatively you’re welcome to email me a copy of it and I’ll be happy to give it a try for you myself to see if I can replicate any problems.
Contact details are in my profile and sig /
Actually its just a script to update OpenDNS via DNSoMatic - there is a published on on the forum which did not work and which I fixed (and posted the fixed version). That version is working happily on an RB411U under RouterOS 4.9 but the same version will not run on the x86 router which is also running under 4.9.
:if ($currentIP != $previousIP) do={
:log info “DNSoMatic: Update needed”
:set previousIP $currentIP
:log info “DNSoMatic: Sending update to $currentIP”
:log info [ :put [/tool fetch host=MT user=$maticuser password=$maticpass mode=http address=“updates.dnsomatic.com” src-path=$str dst-path=$matichost]]
:log info “DNSoMatic: Host $matichost updated on DNSoMatic with IP $currentIP”
:delay 300s
} else={
:log info “DNSoMatic: Previous IP $previousIP and current IP $currentIP are equal: No update needed”
}
Obviously I have removed the username, password and host identifier - signup to OpenDNS is free and painless.
The changes I made over the published script were to put in place a check from a stored version of the last ip address as declaring that as a global variable did not have the effect that it might have done when the script was written and the previous ip address was always 0.0.0.0.