Assume ntpd reads the following configuration when started:
keys /etc/ntp.keys
trustedkey 1 2 3
requestkey 2
server <server1_IP> key 1
server <server2_IP>
As describd in the ntpq documentation, its possible to send configuration commands to the server as run-time configuration commands in the same format as the configuration file, using :config [...]
.
The sent commands will be added to the run-time configuration, therefore if I want to add a new server, I run ntpq -c ":config server <server3_IP>"
. If I want to remove an association, ntpq -c ":config unpeer <server2_IP>"
.
How can I
- change configurations? E.g. Key identified by keyID 3 is not trusted anymore and have to be removed from
trustedkey
s - remove existing configurations? E.g. how do I remove the
requestkey
?
I need those functionalities because I have to be able to reconfigure ntpd at runtime without restarting it.