--- title: "ntp" slug: "cli-as-ntp" tags: ["Assurance Sensor CLI"] updated: 2025-06-30T09:09:33Z published: 2025-09-04T19:23:07Z canonical: "docs.crossworkassurance.cisco.com/cli-as-ntp" --- > ## 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. # ntp ## ntp add ntp add - Add a time server for the NTP service **Description:** Add an NTP (Network Time Protocol) to synchronize the clock with the remote server. **Syntax:** ``` ntp add {} ``` **Parameters:** | Parameter | Description | | --- | --- | | | The name or the IP address of the NTP server to add. | ## ntp delete ntp delete - Remove a remote time server **Description:** Remove an NTP (Network Time Protocol) server from the list of servers. **Syntax:** ``` ntp delete {} ``` **Parameters:** | Parameter | Description | | --- | --- | | | | ## ntp disable ntp disable - Stop using an NTP server **Description:** Stop using the NTP service. **Syntax:** ``` ntp disable ``` ## ntp disable-server ntp disable-server - Stop the NTP server **Description:** Stop the NTP server. **Syntax:** ``` ntp disable-server ``` ## ntp edit ntp edit - Change time or NTP related settings **Description:** Change time or NTP related settings. **Syntax:** ``` ntp edit {{tai-offset } {sync-mode } {dscp <0-63>} {dst } {vlan-priority <0-7>} {time-interval <10-300>} {nbr-messages <5-60>} {utc-hour <(-12)-(+14)>} {utc-min <0-59>} {dst-hour <0-23>} {dst-min <0-59>} {dst-start-month } {dst-start-week <1-5>} {dst-start-day } {dst-start-hour <0-23>} {dst-start-min <0-59>} {dst-end-month } {dst-end-week <1-5>} {dst-end-day } {dst-end-hour <0-23>} {dst-end-min <0-59>}}+ ``` **Parameters:** | Parameter | Description | | --- | --- | | tai-offset | Offset in seconds to convert UTC time to TAI (Temps Atomique International). | | sync-mode | Synchronization mode: - normal: The time is retrieved from the NTP server and the local clock is adjusted accordingly, without further processing. - high resolution: Hardware-assisted synchronization is performed to achieve better accuracy. | | dscp | When using NTP, the priority can be set in the DiffServ Code Point. | | dst | Enable Daylight Saving Time (DST) for regions implementing it. Note that syslog and other services timestamping events may experience gaps or duplicate timestamps during DST transitions. | | vlan-priority | When using NTP, the priority of the packets can be set in the VLAN priority bits if the link is through a VLAN. | | time-interval | The time interval between requests to the NTP server (in seconds). | | nbr-messages | The number of messages sent to the NTP server during a request. | | utc-hour | Hour offset from Coordinated Universal Time. Negative values for North America and positive values for Eastern Europe. | | utc-min | Minute offset from Coordinated Universal Time. | | dst-hour | Daylight Saving Time hour offset. | | dst-min | Daylight Saving Time minute offset. | | dst-start-month | Month when Daylight Saving Time starts. | | dst-start-week | Week when Daylight Saving Time starts. | | dst-start-day | Day when Daylight Saving Time starts. | | dst-start-hour | Hour when Daylight Saving Time starts. | | dst-start-min | Minute when Daylight Saving Time starts. | | dst-end-month | Month when Daylight Saving Time ends. | | dst-end-week | Week when Daylight Saving Time ends. | | dst-end-day | Day when Daylight Saving Time ends. | | dst-end-hour | Hour when Daylight Saving Time ends. | | dst-end-min | Minute when Daylight Saving Time ends. | ## ntp enable ntp enable - Choose one or two NTP servers to use **Description:** Choose the NTP (Network Time Protocol) server you want to use for the clock synchronization. You can enable up to two servers, but only one will be active at a time. This command also starts the NTP service. **Syntax:** ``` ntp enable { {} | {} } ``` **Parameters:** | Parameter | Description | | --- | --- | | | | ## ntp enable-server ntp enable-server - Start the NTP server service **Description:** Start the NTP server service. **Syntax:** ``` ntp enable-server ``` ## ntp show ntp show - Show the current NTP configuration and status **Description:** Show the current configuration and status for the NTP (Network Time Protocol) service. **Syntax:** ``` ntp show [ -d| -r ] ``` **Parameters:** | Parameter | Description | | --- | --- | | -d | Used to display additional information. | | -r | Used to 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)