mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
64ff7fcf65
That should make the documentation clearer if external sites link to the documentation of a specific script.
43 lines
1.1 KiB
Markdown
43 lines
1.1 KiB
Markdown
Rotate NTP servers
|
|
==================
|
|
|
|
[◀ Go back to main README](../README.md)
|
|
|
|
🛈 This script can not be used on its own but requires the base installation.
|
|
See [main README](../README.md) for details.
|
|
|
|
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)
|