aboutsummaryrefslogtreecommitdiffstats
path: root/doc/rotate-ntp.md
blob: eb04f5ca2720fb251fd0c7d10f7ad09d16e7f859 (about) (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
Rotate NTP servers
==================

[◀ Go back to main README](../README.md)

Description
-----------

RouterOS requires NTP servers to be configured by IP address. Servers from a
pool may appear and disappear, leaving broken NTP configuration.

This script allows to rotate IP addresses from a given pool.

Requirements and installation
-----------------------------

Just install the script:

    $ScriptInstallUpdate rotate-ntp;

Configuration
-------------

The configuration goes to `global-config-overlay`, this is the parameter:

* `NtpPool`: dns name of ntp server pool

Usage and invocation
--------------------

Just run the script to update the NTP configuration with actual IP
addresses from pool if required.

Alternatively a scheduler can be created:

    / system scheduler add interval=5d name=rotate-ntp on-event="/ system script run rotate-ntp;" start-time=startup;

---
[◀ Go back to main README](../README.md)  
[▲ Go back to top](#top)