--- title: "ptp" slug: "cli-as-ptp" tags: ["Assurance Sensor CLI"] updated: 2025-07-09T19:20:06Z published: 2025-09-04T19:22:30Z canonical: "docs.crossworkassurance.cisco.com/cli-as-ptp" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.crossworkassurance.cisco.com/llms.txt > Use this file to discover all available pages before exploring further. # ptp ## ptp add Assurance Sensors LT-S and LX-S Only ptp add - Add PTP related port or grantor settings **Description:** Add PTP related port or grantor settings **Syntax:** ``` ptp add {port {{address } | {announce <-3,-2,-1,0,1,2 or 3>} | {announce-receipt-timeout <2-10>} | {delay-request-offset <0-5>} | {dly-resp-receipt-timeout <2-10>} | {domain <0-255> } | {dscp <0-63>} | {interface } | {local-priority <1-255>} | {mode } | {name } | {pcp <0-7>} | {port-mode } {sync <-4,-3,-2,-1,0,1,2 or 3>} | {sync-receipt-timeout <2-10>} | {ttl <1-255>} | {unicast-renewal-interval <60-1000>} }} | {grantor {{address } | {domain <0-255>} | {interface } | {name } | {priority <0-2>} }} ``` **Parameters:** | Parameter | Description | | --- | --- | | port | Change PTP related port settings | | address | Specifies multicast address. | | | <01:1b:19:00:00:00 \| 01:80:c2:00:00:0e> | | announce | Specifies the interval between Announce messages. Possible values: - -3 (8 messages/second) - -2 (4 messages/second) - -1 (2 messages/second) - 0 (1 message/second) - 1 (1 message/2 seconds) default - 2 (1 message/4 seconds) - 3 (1 message/8 seconds) | | announce-receipt-timeout | Specifies the number of Announce messages that can be lost before timeout occurs. Acceptable values: 2 to 10 | | delay-request-offset | Specifies delay request offset based on the sync interval. Acceptable values: 0 to 5 | | dly-resp-receipt-timeout | Specifies the number of Delay Response messages that can be lost before timeout occurs (Unicast Telecom Profile ITU-T G.8265.1 only. Default: 3) | | domain | Specifies PTP domain. Acceptable values: 0 to 255 | | dscp | When using PTP, the priority of the packets can be set in the DiffServ Code Point. Acceptable values: 0 to 63 | | interface | Interface used to communicate. | | | | | local-priority | Specifies the value of localPriority to the PTP port. Acceptable values: 1 to 255. Default: 128 | | mode | Specifies communication method. Possible values: - multicast (layer-2 multicast) - unicast (layer-3 unicast) | | name | Name assigned to the PTP port. | | | | | pcp | When using PTP, the priority of the packets can be set in the Priority code point bits if the link is through a VLAN. Acceptable values: 0 to 7 | | port-mode | Specifies whether the PTP port shall be forced to be master, slave, or auto. Possible values: - force-master (forced to be master) - force-slave (forced to be slave) - auto (determined by BMCA) | | sync | Specifies the interval between Sync messages. Possible values: - -4 (16 messages/second) - -3 (8 messages/second) - -2 (4 messages/second) - -1 (2 messages/second) - 0 (1 message/second) - 1 (1 message/2 seconds) - 2 (1 message/4 seconds) - 3 (1 message/8 seconds) | | sync-receipt-timeout | Specifies the number of Sync messages that can be lost before timeout occurs (Unicast Telecom Profile ITU-T G.8265.1 only). Acceptable values: 2 to 10. Default: 3 | | ttl | Specifies the ttl information in all packets. Acceptable values: 1 to 255 | | unicast-renewal-interval | Specifies the interval between every unicast negotiation of message intervals (for Sync, Announce and Delay Response messages). Acceptable values: 60 to 1000. Default: 300 seconds | | grantor | Change PTP related grantor settings | | | | | address | Master address (time server for the PTP client). | | | \| \| | | domain | Specifies the domain number of the PTP master. Acceptable values: 0 to 255. Default: 0 | | interface | Interface used to communicate with the PTP master. | | | | | name | Specifies a name for the PTP grantor. | | | | | priority | For Telecom-Profile only (ITU-T G.8265.1). Ignored by other profiles. Specifies the priority for the PTP master. Acceptable values: 0 (disabled), 1, 2. Default: 0 | ## ptp delete Assurance Sensors LT-S and LX-S Only ptp delete - Remove PTP related port or grantor settings. **Description:** Remove PTP related port or grantor settings. **Syntax:** ``` ptp delete {port } | {grantor } ``` **Parameters:** | Parameter | Description | | --- | --- | | port | Remove the specific PTP port setting. | | grantor | Remove the specific grantor setting. | | | | | | | ## ptp edit ptp edit - Change PTP related settings **Description:** Change PTP related settings. **Syntax:** ``` ptp edit { {state } | {pma } | {sma } | {utc } | {announce <-3,-2,-1,0,1,2 or 3>} | {sync <-4,-3,-2,-1,0 or 1>} | {pdn <0-255>} | {sdn <0-255>} | {dscp <0-63>} | {vlan-priority <0-7>} } ``` **Parameters:** | Parameter | Description | | --- | --- | | state | Enable or disable the PTP feature. | | pma | Primary master address (time server for the PTP client). | | sma | Secondary master address (time server for the PTP client). | | | | | utc | Enable or disable the use of UTC offset from the master. | | announce | Specifies the interval of Announce messages from the master. Possible values: - -3 (8 messages / second) - -2 (4 messages / second) - -1 (2 messages / second) - 0 (1 message / second) <- default value - 1 (1 message / 2 seconds) - 2 (1 message / 4 seconds) - 3 (1 message / 8 seconds) | | sync | Specifies the interval of Sync messages from the master. Possible values: - -4 (16 messages / second) - -3 (8 messages / second) - -2 (4 messages / second) - -1 (2 messages / second) - 0 (1 message / second) <- default value - 1 (1 message / 2 seconds) | | pdn | Specifies the domain number of the primary PTP master. Possible values: 0 to 255. Default value: 4. | | sdn | Specifies the domain number of the secondary PTP master. Possible values: 0 to 255. Default value: 4. | | dscp | When using PTP, the priority of the packets can be set in the DiffServ Code Point. | | vlan-priority | When using PTP, the priority of the packets can be set in the VLAN priority bits if the link is through a VLAN. | **Note:** Communication with the grandmaster clock is only supported via unicast negotiation (defined in clause 16.1 of IEEE 1588-2008). Multicast negotiation is not supported. ## ptp reset ptp reset - Reset to default PTP settings **Description:** Resets to default PTP settings. **Syntax:** ``` ptp reset ``` ## ptp show ptp show - Show the current PTP configuration and status **Description:** Shows the current configuration and status for the PTP (Precision Time Protocol) service. **Syntax:** ``` ptp show [ -d| -r ] ``` **Parameters:** | Parameter | Description | | --- | --- | | -d | Show debug information. | | -r | Reset counters. | **© 2026 Cisco and/or its affiliates. All rights reserved.** For more information about trademarks, please visit: [Cisco trademarks](https://www.cisco.com/c/en/us/about/legal/trademarks.html)[](https://www.cisco.com/c/en/us/about/legal/trademarks.html) For more information about legal terms, please visit: [Cisco legal terms](https://www.cisco.com/c/en/us/about/legal/terms-conditions.html)