ntp

Prev Next

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 {<server-address>}

Parameters:

Parameter Description
<server-address> <ip-addr> <ipv6-addr> <dns-name>
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 {<server-address>}

Parameters:

Parameter Description
<server-address> <ip-addr> <ipv6-addr> <dns-name>

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 <decimal>}
            {sync-mode <normal | highres>}
            {dscp <0-63>}
            {dst <enable | disable>}
            {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 <month>}
            {dst-start-week  <1-5>}
            {dst-start-day   <day>}
            {dst-start-hour  <0-23>}
            {dst-start-min   <0-59>}
            {dst-end-month <month>}
            {dst-end-week  <1-5>}
            {dst-end-day   <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 { {<server-address>} |
           {<server-address>} }

Parameters:

Parameter Description
<server-address> <ip-addr> <ipv6-addr> <dns-name>

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.

© 2025 Cisco and/or its affiliates. All rights reserved.
 
For more information about trademarks, please visit: Cisco trademarks
For more information about legal terms, please visit: Cisco legal terms

For legal information about Accedian Skylight products, please visit: Accedian legal terms and tradmarks