display ptp

Function

The display ptp all command displays all PTP information.

The display ptp all config command displays the configurations of all modules related to PTP on the current device.

The display ptp all state command displays the protocol status of all modules related to PTP on the current device.

The display ptp interface command displays the number of sent and received PTP packets on a specified interface.

The display ptp all interface command displays the status of all PTP interfaces.

Format

display ptp all [ config | state | interface ]

display ptp interface { interface-name | interface-type interface-number }

Parameters

Parameter Description Value
config

Displays the configurations of all modules related to PTP on the current device.

-

state

Displays the protocol status of all modules related to PTP on the current device.

-

interface

Displays the status of all PTP interfaces.

-

interface interface-type interface-number

Displays the number of sent and received PTP packets on a specified interface.

-

interface-name

Specifies the interface name.

-

all

Displays all PTP information.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
clksync read

Usage Guidelines

Usage Scenario

The display ptp command displays PTP information.

In VS mode, this command is supported only by the admin VS.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display clock module information when the protocol type is 1588v2.
<HUAWEI> display ptp all
Device config info
  ------------------------------------------------------------------------------
  PTP state         :enabled              Domain  value      :0
  Slave only        :no                   Device type        :BC
  Set port state    :no                   Local clock ID     :0aa1c6fffe699700
  Acl               :no                   Virtual clock ID   :no
  Acr               :no                   Time lock success  :no
  Asymmetry measure :disable              Passive measure    :disable
  Send GM WTR       :no

  BMC run info
  ------------------------------------------------------------------------------
  Grand clock ID    :0a05d7fffe341500               
  Receive number    :GigabitEthernet0/1/0           
  Parent clock ID   :0a05d7fffe341500               
  Parent portnumber :35585                          
  Priority1         :128                 Priority2           :128               
  Step removed      :0                   Clock accuracy      :0x31              
  Clock class       :187                 Time Source         :0xa0              
  UTC Offset        :35                  UTC Offset Valid    :False             
  Timescale         :PTP                 Time traceable      :False          
  Leap              :None                Frequency traceable :False          
  Offset scaled     :0xffff              Sync uncertain      :False           

  Port info
  Name                        State        Delay-mech Ann-timeout Type   Domain 
  ------------------------------------------------------------------------------
  GigabitEthernet0/1/0        slave        delay      3           BC     0

  Time Performance Statistics(ns): Slot 0  Card 1  Port 5 
  ------------------------------------------------------------------------------
  Realtime(T2-T1)   :20942575                Pathdelay     :0 
  Max(T2-T1)        :95695479
  Min(T2-T1)        :20942575

  Clock source info
  Clock     Pri1 Pri2 Accuracy Class TimeSrc  Signal Switch Direction In-Status
  ------------------------------------------------------------------------------
  local     128  128  0x31     187   0xa0     -      -      -         -
  bits1/11  128  128  0x20     6     0x20     1pps   off    in/-      normal
  bits1/12  128  128  0x20     6     0x20     1pps   off    in/-      normal
# Display clock module information when the protocol type is CU-106.
<HUAWEI> display ptp all
Device config info
  ------------------------------------------------------------------------------
  PTP state         :enabled              Domain  value      :24
  Slave only        :-                    Device type        :T-BC
  Set port state    :-                    Local clock ID     :0aa1c6fffe699700
  Acl               :no                   Virtual clock ID   :no
  Acr               :-                    Time lock success  :no
  Asymmetry measure :disable              Passive measure    :disable
  PTP profile       :CU-106
  Send GM WTR       :no

  BMC run info
  ------------------------------------------------------------------------------
  Grand clock ID    :0a05d7fffe341500               
  Receive number    :GigabitEthernet0/1/0           
  Parent clock ID   :0a05d7fffe341500               
  Parent portnumber :35585                          
  Priority1         :128                 Priority2           :128               
  Step removed      :0                   Clock accuracy      :0xfe              
  Clock class       :248                 Time Source         :0xa0              
  UTC Offset        :35                  UTC Offset Valid    :False             
  Timescale         :PTP                 Time traceable      :False          
  Leap              :None                Frequency traceable :False          
  Offset scaled     :0xffff              Sync uncertain      :False          

  Port info
  Name                        State        Delay-mech Ann-timeout Type   Domain 
  ------------------------------------------------------------------------------
  GigabitEthernet0/1/0        slave        delay      3           T-BC   24

  Time Performance Statistics(ns): Slot 0  Card 1  Port 5 
  ------------------------------------------------------------------------------
  Realtime(T2-T1)   :6738                    Pathdelay     :0 
  Max(T2-T1)        :95695479
  Min(T2-T1)        :355

  Clock source info
  Clock     Pri  Pri2 Accuracy Class TimeSrc  Signal Switch Direction In-Status
  ------------------------------------------------------------------------------
  local     128  128  0xFE     248   0xa0     -      -      -         -
  bits1/11  128  128  0x20     6     0x20     1pps   off    in/-      normal
  bits1/12  128  128  0x20     6     0x20     1pps   off    in/-      normal
# Display clock module information when the protocol type is SMPTE-2059-2.
<HUAWEI> display ptp all
Device config info
  ------------------------------------------------------------------------------
  PTP state         :enabled              Domain  value      :127
  Slave only        :no                   Device type        :BC
  Set port state    :no                   Local clock ID     :0aa1c6fffe699700
  Acl               :no                   Virtual clock ID   :no
  Acr               :no                   Time lock success  :no
  Asymmetry measure :disable              Passive measure    :disable
  PTP profile       :SMPTE-2059-2
  Send GM WTR       :no

  BMC run info
  ------------------------------------------------------------------------------
  Grand clock ID    :0a05d7fffe341500               
  Receive number    :GigabitEthernet0/1/0           
  Parent clock ID   :0a05d7fffe341500               
  Parent portnumber :35585                          
  Priority1         :128                 Priority2           :128               
  Step removed      :0                   Clock accuracy      :0x31              
  Clock class       :187                 Time Source         :0xa0              
  UTC Offset        :35                  UTC Offset Valid    :False             
  Timescale         :PTP                 Time traceable      :False          
  Leap              :None                Frequency traceable :False          
  Offset scaled     :0xffff              Sync uncertain      :False           
  Port info
  Name                        State        Delay-mech Ann-timeout Type   Domain 
  ------------------------------------------------------------------------------
  GigabitEthernet0/1/0           slave        delay      3           BC     127
  Time Performance Statistics(ns): Slot 0  Card 1  Port 5 
  ------------------------------------------------------------------------------
  Realtime(T2-T1)   :20942575                Pathdelay     :0 
  Max(T2-T1)        :95695479
  Min(T2-T1)        :20942575
  Clock source info
  Clock     Pri1 Pri2 Accuracy Class TimeSrc  Signal Switch Direction In-Status
  ------------------------------------------------------------------------------
  local     128  128  0x31     187   0xa0     -      -      -         -
  bits1/11  128  128  0x20     6     0x20     1pps   off    in/-      abnormal
  bits1/12  128  128  0x20     6     0x20     1pps   off    in/-      abnormal
# Display clock module information when the protocol type is G.8275.1.
<HUAWEI> display ptp all
Device config info
  ------------------------------------------------------------------------------
  PTP state         :enabled              Domain  value      :24
  Slave only        :-                    Device type        :T-BC
  Set port state    :-                    Local clock ID     :0aa1c6fffe699700
  Acl               :no                   Virtual clock ID   :no
  Acr               :-                    Time lock success  :no
  Asymmetry measure :disable              Passive measure    :disable
  PTP profile       :G.8275.1 V2.0
  Send GM WTR       :no

  BMC run info
  ------------------------------------------------------------------------------
  Grand clock ID    :0a05d7fffe341500               
  Receive number    :GigabitEthernet0/1/0           
  Parent clock ID   :0a05d7fffe341500               
  Parent portnumber :35585                          
  Priority1         :128                 Priority2           :128               
  Step removed      :0                   Clock accuracy      :0xfe              
  Clock class       :248                 Time Source         :0xa0              
  UTC Offset        :35                  UTC Offset Valid    :False             
  Timescale         :PTP                 Time traceable      :False          
  Leap              :None                Frequency traceable :False          
  Offset scaled     :0xffff              Sync uncertain      :False         

  Port info
  Name                        State        Delay-mech Ann-timeout Type   Domain 
  ------------------------------------------------------------------------------
  GigabitEthernet0/1/0        slave        delay      3           T-BC   24

  Time Performance Statistics(ns): Slot 0  Card 1  Port 5 
  ------------------------------------------------------------------------------
  Realtime(T2-T1)   :1104                    Pathdelay     :0 
  Max(T2-T1)        :95695479
  Min(T2-T1)        :355

  Clock source info
  Clock     Pri  Pri2 Accuracy Class TimeSrc  Signal Switch Direction In-Status
  ------------------------------------------------------------------------------
  local     128  128  0xFE     248   0xa0     -      -      -         -
  bits1/11  128  128  0x20     6     0x20     1pps   off    in/-      normal
  bits1/12  128  128  0x20     6     0x20     1pps   off    in/-      normal
# Display the status of all PTP interfaces.
<HUAWEI> display ptp all interface

  GigabitEthernet0/1/24
  -----------------------------------------------------------------------
  Port State      :slave               
  Port Clock ID   :123423fffe459622
  Port Number     :17408
  Port Precision Capability :High precision clock
  Port Precision Work Mode  :High precision clock
  PTSF state      :normal

  GigabitEthernet0/1/26
  -----------------------------------------------------------------------
  Port State      :slave               
  Port Clock ID   :123423fffe459622
  Port Number     :17410
  Port Precision Capability :High precision clock
  Port Precision Work Mode  :High precision clock
  PTSF state      :normal

  GigabitEthernet0/1/16
  -----------------------------------------------------------------------
  Port State      :slave               
  Port Clock ID   :123423fffe459622
  Port Number     :13056
  Port Precision Capability :High precision clock
  Port Precision Work Mode  :High precision clock
  PTSF state      :normal

  GigabitEthernet0/1/17
  -----------------------------------------------------------------------
  Port State      :slave               
  Port Clock ID   :123423fffe459622
  Port Number     :13057
  Port Precision Capability :High precision clock
  Port Precision Work Mode  :High precision clock
  PTSF state      :normal

  GigabitEthernet0/1/0
  -----------------------------------------------------------------------
  Port State      :slave               
  Port Clock ID   :123423fffe459622
  Port Number     :30464
  Port Precision Capability :High precision clock
  Port Precision Work Mode  :High precision clock
  PTSF state      :unusable
# Display whether the subcard interface supports ultra-high precision.
<HUAWEI> display ptp interface GigabitEthernet0/1/8
  Port State      :master
  Port Clock ID   :0addb5fffeddb104
  Port Number     :4373
  Port Precision Capability :Ultra high precision clock
  Port Precision Work Mode :Ultra high precision clock

  Recv Packet Statistics
  -----------------------------------------------------------------------
  Announce               :0          Sync                       :0
  Req                    :0          Resp                       :0
  Followup               :0          Pdelay_resp_followup       :0

  Send Packet Statistics
  -----------------------------------------------------------------------
  Announce               :48         Sync                       :96
  Req                    :0          Resp                       :0
  Followup               :0          Pdelay_resp_followup       :0

  Discard Packet Statistics
  -----------------------------------------------------------------------
  Announce               :48         Sync                       :0
  Delayreq               :0          Pdelayreq                  :0
  Resp                   :0          Pdelayresp                 :0
  Followup               :0          Pdelay_resp_followup       :0
Table 1 Description of the display ptp command output
Item Description
Device type

PTP device type.

PTP state

Whether PTP is enabled.

PTP profile

Time synchronization mode.

Domain value

PTP clock domain value.

Slave only

Whether the slave-only mode is set.

Set port state

Whether static clock source selection is enabled.

Local clock ID

ID of a local clock source.

Acl

Whether the access control list (ACL) function is enabled for the clock source.

Virtual clock ID

Whether the virtual clock ID is set.

Acr

Whether statically 1588v2 adaptive clock recovery (ACR) is enabled.

Time lock success

Time lock status.

Time Source

Time source that the grandmaster uses.

Time Traceable

Whether the grandmaster uses the currentUtcOffset value to trace the master reference clock.

Time Performance Statistics

Time attributes value.

Time Performance Statistics(ns)

Time Performance Statistics(ns).

Asymmetry measure

Whether automatic asymmetry measurement for a ring network is enabled.

Passive measure

Whether the monitoring of the passive interface is enabled.

Send GM WTR

Whether the sent GM message is in the wait-to-restore state.

BMC run info

BMC running information.

Grand clock ID

ID of the grandmaster clock.

Receive number

Type and number of the interface that receives the ebest dataset that is calculated using the BMC dataset comparison algorithm.

Parent clock ID

ID of the parent clock.

Parent portnumber

Signal output interface of the parent clock.

Priority1

Priority 1 value of a clock source.

Priority2

Priority 2 value of a clock source.

Step removed

Number of hops between a local device and a clock source.

Clock accuracy

Clock source accuracy.

Clock class

Class of a clock source.

Clock source info

Configured clock source information.

UTC Offset

UTC offset (in seconds) of the grandmaster.

UTC Offset Valid

Whether the UTC offset value of the grandmaster is correct.

Offset scaled

Grandmaster clock stability.

Timescale

Time scale of the grandmaster.

Leap

Leap value of the grandmaster.

Frequency traceable

Frequency traceable.

Sync uncertain

The unstable flag of clock synchronization.

Sync

Number of Pdelay resp Sync packets.

Port info

1588v2 interface information.

Port Number

Number of the interface on which the clock source is configured.

Port Precision Capability

Precision supported by the subcard.If Ultra high precision clock is displayed, the interface supports ultra-high precision.

Port Precision Work Mode

Port Precision Work Mode.

Port Clock ID

Port Clock ID.

Port State

Port State.

Realtime(T2-T1)

Real-time offset between the T2 timestamp and the T1 timestamp.

Pathdelay

Pathdelay.

PTSF state

PTSF state.

Announce

Number of Pdelay resp Announce packets.

Req

Number of Pdelay resp followup packets.

Resp

Number of Pdelay resp Resp packets.

Resp

Number of Pdelay resp followup packets.

Followup

Number of followup packets.

Pdelay_resp_followup

Number of Pdelay resp followup packets.

Delayreq

Number of Pdelay resp Delayreq packets.

Pdelayreq

Number of Pdelay resp Pdelayreq packets.

Pdelayresp

Number of Pdelay resp Pdelayresp packets.

Frequence Traceable

Whether the time scale frequency of the grandmaster traces the master clock reference source.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >