mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-12-22 17:59:30 +00:00
add scripts
This commit is contained in:
parent
1d99dc38ff
commit
e1f134ead5
28 changed files with 842 additions and 0 deletions
12
rotate-ntp
Normal file
12
rotate-ntp
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
# RouterOS script: rotate-ntp
|
||||
# Copyright (c) 2013-2018 Christian Hesse <mail@eworm.de>
|
||||
#
|
||||
# rotate the ntp servers
|
||||
|
||||
:global "ntp-pool";
|
||||
|
||||
:local ntp1 [ :resolve ("0." . $"ntp-pool") ];
|
||||
:local ntp2 [ :resolve ("1." . $"ntp-pool") ];
|
||||
|
||||
:log info ("Updating NTP servers to " . $ntp1 . " and " . $ntp2);
|
||||
/ system ntp client set primary-ntp=$ntp1 secondary-ntp=$ntp2;
|
||||
Loading…
Add table
Add a link
Reference in a new issue