NTP Service Control and Status¶
Enable the NTP Service¶
Enable the NTP server:
tnsr(config)# ntp enable
tnsr(config)#
Disable the NTP Service¶
Similar to the NTP enable command, disable the NTP service from
configuration mode:
tnsr(config)# ntp disable
tnsr(config)#
Check the NTP Service Status¶
Check the status of the NTP services from configuration mode using service ntp
<namespace> status, where <namespace> is the namespace where NTP is
running (host or dataplane):
tnsr# service ntp host status
* chrony.service - chrony, an NTP client/server
Loaded: loaded (/usr/lib/systemd/system/chrony.service; enabled; preset: enabled)
Active: active (running) since Thu 2025-10-16 13:37:13 UTC; 1 day 3h ago
Docs: man:chronyd(8)
man:chronyc(1)
man:chrony.conf(5)
Process: 962 ExecStart=/usr/lib/systemd/scripts/chronyd-starter.sh $DAEMON_OPTS (code=exited, status=0/SUCCESS)
Main PID: 1001 (chronyd)
Tasks: 2 (limit: 18999)
Memory: 5.1M (peak: 6.3M)
CPU: 198ms
CGroup: /system.slice/chrony.service
├─1001 /usr/sbin/chronyd -F 1
└─1002 /usr/sbin/chronyd -F 1
Oct 16 13:37:12 tnsr systemd[1]: Starting chrony.service - chrony, an NTP client/server...
Oct 16 13:37:13 tnsr chronyd[1001]: chronyd version 4.5 starting (+CMDMON +NTP +REFCLOCK +RTC +PRIVDROP +SCFILTER +SIGND +ASYNCDNS +NTS +SECHASH +IPV6 -DEBUG)
Oct 16 13:37:13 tnsr chronyd[1001]: Frequency -23.565 +/- 0.049 ppm read from /var/lib/chrony/chrony.drift
Oct 16 13:37:13 tnsr chronyd[1001]: Using right/UTC timezone to obtain leap second data
Oct 16 13:37:13 tnsr chronyd[1001]: Loaded seccomp filter (level 1)
Oct 16 13:37:13 tnsr systemd[1]: Started chrony.service - chrony, an NTP client/server.
Oct 16 13:37:45 tnsr chronyd[1001]: Selected source 162.159.200.123 (2.pool.ntp.org)
Oct 16 13:37:45 tnsr chronyd[1001]: System clock wrong by 1.402125 seconds
Oct 16 13:37:47 tnsr chronyd[1001]: System clock was stepped by 1.402125 seconds
Oct 16 13:37:47 tnsr chronyd[1001]: System clock TAI offset set to 37 seconds
View NTP Peers¶
The NTP peer list shows the peers known to the NTP daemon, along with information about their network availability and quality. For more information on peer associations, see View NTP Associations.
tnsr# show ntp peers
Id Host Ref ID Stratum Reach Poll Delay Offset Jitter
-- --------------- -------- ------- ----- ---- ----- ------ ------
0 65.182.224.60 17FC3F52 2 0x0f 64 0.053 -0.001 0.000
1 108.61.56.35 C0052928 2 0x0f 64 0.027 -0.001 0.000
2 108.61.215.221 60E73628 2 0x0f 64 0.023 0.002 0.000
3 162.159.200.123 0A920804 3 0x0f 64 0.010 -0.001 0.000
View NTP Associations¶
The NTP peer associations list shows how the NTP daemon is using each peer, along with its status. These peers are listed by ID. For more information on each peer, see View NTP Peers.
tnsr(config)# show ntp associations
Id Status Auth En Authentic Reachable Selection
-- ------ ------- --------- --------- ---------
0 "0x4" false false true unselected
1 "0x4" false false true unselected
2 "0x0" false false true selected
3 "0x4" false false true unselected
View NTP Daemon Configuration File¶
View the current NTP Daemon configuration file, generated by the settings in TNSR:
tnsr# show ntp config-file
#
# Chrony config autogenerated
#
cmdport 0
sourcedir /run/chrony-dhcp
driftfile /var/lib/chrony/chrony.drift
maxupdateskew 100.00
leapsectz right/UTC
bindcmdaddress /var/run/chrony/chronyd.sock
maxchange 1000.00 1 2
makestep 1.00 3
logdir /var/log/chrony
pool 2.pool.ntp.org iburst maxsources 4