This section describes how to use the display ptp command to monitor the 1588v2 operating status. The command output includes the current operating mode, clock synchronization status, clock source ID, and names of interfaces that receive clock information.
You can run the following command in any view to check the 1588v2 operating status during routine maintenance.
# Display 1588v2 module information and statistics.
<HUAWEI> display ptp all Device config info ------------------------------------------------------------------ PTP state :enabled Domain value :1 Slave only :no Device type :BC Set port state :no Local clock ID :000a0bfffe0c0d42 Acl :no Virtual clock ID :no Acr :no Time lock success :no BMC run info ------------------------------------------------------------------ Grand clock ID :000a0bfffe0c0dd4 Receive number :GigabitEthernet0/1/0 Parent clock ID :000a0bfffe0c0dd4 Parent portnumber :7426 Priority1 :28 Priority2 :28 Step removed :0 Clock accuracy :0x2f Clock class :55 Time Source :0xa0 UTC Offset :9 UTC Offset Valid :True Time Scale :PTP Time Traceable :False Leap :None Frequence Traceable:False Port info Name State Delay-mech Ann-timeout Type Domain ------------------------------------------------------------------------ GigabitEthernet0/1/0 slave delay 10 BC 1 Time Performance Statistics(ns): Slot 1 Card 0 Port 0 ------------------------------------------------------------------------ Realtime(T2-T1) :534 Pathdelay :0 Max(T2-T1) :887704804 Min(T2-T1) :512 Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits1 128 128 0x20 6 0x20 1pps off in/- normal
<HUAWEI> display ptp all Device config info ------------------------------------------------------------------ PTP state :enabled Domain value :1 Slave only :no Device type :BC Set port state :no Local clock ID :000a0bfffe0c0dd4 Acl :no Virtual clock ID :no Acr :no Time lock success :no BMC run info ------------------------------------------------------------------ Source port :bits1/6 Leap :None UTC Offset :0 UTC Offset Valid :False Clock source info Clock Pri1 Pri2 Accuracy Class TimeSrc Signal Switch Direction In-Status ------------------------------------------------------------------------ local 128 128 0x31 187 0xa0 - - - - bits1 128 128 0x20 6 0x20 1pps off in/- normal
# Display 1588v2 information on GE 0/1/1.
<HUAWEI> display ptp interface Gigabitethernet 0/1/1 Port State :slave Port Number :3334 Announce-interval :10 Grand clock ID :001882fffe771111 Receive number :GigabitEthernet0/1/1 Parent clock ID :000a0bfffe0c0dd4 Parent portnumber :1 Priority1 :128 Priority2 :128 Step removed :0 Clock accuracy :34 Clock class :6 Time Source :16 UTC Offset :0 UTC Offset Valid :False Time Scale :PTP Time Traceable :False Leap :59 Frequence Traceable:False Recv Packet Statistics ----------------------------------------------------------------------- Announce :2288 Sync :14933 Req :0 Resp :2288 Followup :0 Pdelay_resp_followup :0 Send Packet Statistics ----------------------------------------------------------------------- Announce :0 Sync :1 Req :2288 Resp :0 Followup :0 Pdelay_resp_followup :0 Discard Packet Statistics ----------------------------------------------------------------------- Announce :0 Sync :0 Delayreq :0 Pdelayreq :0 Resp :0 Pdelayresp :0 Followup :0 Pdelay_resp_followup :0