NTP
Network Time Protocol( NTP) is a well-known widely used protocol to synchronize the time of device over the internet. Using systemd-timesyncd, SoodarOS can be a NTP client.
Setting up NTP
Setting up NTP client is just as simple as providing one( or more) NTP server
- ntp server SERVER
Add a new NTP server. SERVER is its address.
- no ntp server SERVER
Remove an existing NTP server from list.
Showing NTP status
You can see current NTP server status by issuing show ntp server status command
- show ntp server status
Print current server information.
Example:
soodar(config)# do show ntp server status Server: 37.156.28.13 (ir.pool.ntp.org) Poll interval: 1min 4s (min: 32s; max 34min 8s) Leap: normal Version: 4 Stratum: 2 Reference: C21BDE05 Precision: 1us (-24) Root distance: 83.274ms (max: 5s) Offset: +17.876ms Delay: 37.284ms Jitter: 0 Packet count: 1 Frequency: +69.827ppm
Manual clock
If you have no/restricted internet connection, you can disable NTP and set date manually.
- no ntp
Disable NTP service and remove all its configurations( servers)
Note
NTP service is enabled by default. You should explicitly disable it. To reenable it, just set up NTP and add a server
- clock set TIME (1-12) (1-31) (2000-4192)
Set clock. TIME is current time in hh:mm:ss format.