Live CD/DVD Tips

From NST Wiki
Jump to navigationJump to search

Quick Way To Startup: Network Time Protocol (NTP) Services

The following demonstrates how to enable the NTP service at boot time and start the NTP service at a shell prompt.


Managing The: "ntpd" Service
[root@probe ~]# systemctl enable ntpd.service
ln -s '/lib/systemd/system/ntpd.service' '/etc/systemd/system/'
[root@probe ~]# systemctl start ntpd.service
[root@probe ~]# ntpq -pn
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================      3 u    5   64    1  113.915   68.354   0.002      2 u    4   64    1   73.682   38.248   0.002    2 u    3   64    1  128.611  -19.668   0.002
[root@probe ~]#

Alternatively, you can use the chronyd service for time synchronization. The following example enables and starts the chronyd service:

Managing The: "cronyd" Service
[root@probe ~]# systemctl enable chronyd.service
ln -s '/lib/systemd/system/chronyd.service' '/etc/systemd/system/'
[root@probe ~]# systemctl start chronyd.service
[root@probe ~]#

The NST Web User Interface provides many web pages with additional information and tools to manage time related services. From the main NST WUI menu bar, select: System | Time Management.