time server resolving script, help please!
Posted: Thu Oct 11, 2012 12:58 pm
I made the following script:
The script shows as being valid and can be executed manually.
And although a ping command does resolve the url into an ip address, this script won't do it.
I made an address list listing with IP address=1.2.3.4 for the given time server listing but nothing happens......
Anybody that can shine his light on this?
Code: Select all
/system script add name=resolve_time.windows.com policy=ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api source=":local resolvedIP [:resolve time.windows.com]; :local currentIP [/ip firewall address-list get [find comment=time.windows.com] address]; :if (resolvedIP != currentIP) do={/ip firewall address-list set [find comment=time.windows.com] address=resolvedIP; /log info ip time.windows.com updated;}"
And although a ping command does resolve the url into an ip address, this script won't do it.
I made an address list listing with IP address=1.2.3.4 for the given time server listing but nothing happens......
Anybody that can shine his light on this?