Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- :global name="TimeZone" value="-04:00"
- :global name="AddrNTP1" value="a.st1.ntp.br";
- :global name="AddrNTP2" value="b.st1.ntp.br";
- :global name="ResNTP1" value=[:resolve $AddrNTP1];
- :global name="ResNTP2" value=[:resolve $AddrNTP2];
- :global name="DNS" value=[/ip dns get servers];
- :global name="ENABLE" value="yes";
- :delay 3s
- :log warning "Inserindo time zone";
- /system clock manual
- set time-zone=$TimeZone;
- :log warning "configurado time zone";
- :delay 3s
- :log warning "Criando servidor NTP";
- /system ntp client
- set enabled=$ENABLE primary-ntp=$ResNTP1 secondary-ntp=$ResNTP2 server-dns-names=$DNS;
- :log warning "Servidor NTP criado";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement