You can check the time on the PTP and NTP clocks to ensure that they are synchronized.
PTP-NTP synchronization
Use the show ptp lan clock | inc time command to check the time on the PTP and NTP clocks to ensure that they are synchronized.
Switch# show ptp lan clock | inc time
Local clock time: 2022-4-29 8:48:39 UTC
Switch# show clock detail
08:48:39.278 UTC Fri Apr 29 2022
Time source is NTP
Troubleshooting commands
Table 1. Troubleshooting commands
|
Command
|
Description
|
ntp logging
|
Enables syslogs from NTP.
|
debug ntp all
|
Provides the complete debugging logs for NTP processes.
|
debug platform software pd-ptp all
|
Provides debugging logs on the switch relating to PTP as a reference clock.
|
show ntp status
|
Shows detailed NTP status, including whether NTP is using PTP as its reference clock.
|
show ntp association detail
|
Shows detailed information about NTP peering.
|
show ptp clock running
|
Check that PTP is in slave mode; that is PTP is in phase aligned state, which means it is locked to a master clock.
|
View NTP peer details
Use the show ntp assoc deta command to view the detailed information about NTP peer. You can check the amount of time the platform takes to switch to
the next available timing source after the initial timing source goes down. In this example, NTP waits 8x256 seconds to switch
over to the next source .
Switch# show ntp assoc deta
127.127.6.1 configured, ipv4, our_master, sane, valid, stratum 0
ref ID .PTP., time E61622E9.00000000 (08:40:09.000 UTC Fri Apr 29 2022)
our mode active, peer mode passive, our poll intvl 256, peer poll intvl 1024
root delay 0.00 msec, root disp 0.00, reach 377, sync dist 4.62
delay 0.00 msec, offset 0.9998 msec, dispersion 2.81, jitter 0.97 msec
precision 2**10, version 4
assoc id 63756, assoc name 127.127.6.1
assoc in packets 11, assoc out packets 17652, assoc error packets 0
org time E61622E8.FFBE7988 (08:40:08.999 UTC Fri Apr 29 2022)
rec time 00000000.00000000 (00:00:00.000 UTC Mon Jan 1 1900)
xmt time E61622E8.FFBE7988 (08:40:08.999 UTC Fri Apr 29 2022)
filtdelay = 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
filtoffset = 0.99 1.99 0.99 0.99 0.99 0.99 1.99 0.99
filterror = 0.97 2.89 4.81 6.73 8.65 10.57 11.53 12.49
minpoll = 4, maxpoll = 10