mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
rotate-ntp: warn if ntp client is disabled
This commit is contained in:
@@ -9,5 +9,9 @@
|
|||||||
:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
|
:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
|
||||||
:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
|
:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
|
||||||
|
|
||||||
|
:if ([ / system ntp client get enabled ] != true) do={
|
||||||
|
:log warning "NTP client is not enabled!";
|
||||||
|
}
|
||||||
|
|
||||||
:log info ("Updating NTP servers to " . $ntp1 . " and " . $ntp2);
|
:log info ("Updating NTP servers to " . $ntp1 . " and " . $ntp2);
|
||||||
/ system ntp client set primary-ntp=$ntp1 secondary-ntp=$ntp2;
|
/ system ntp client set primary-ntp=$ntp1 secondary-ntp=$ntp2;
|
||||||
|
Reference in New Issue
Block a user