ntp

Configure Network Time Protocol (NTP) settings. Use NTP to synchronize the time on the appliance with another server or reference time source. You can configure up to 10 NTP servers.

Syntax

(config)# ntp ?
disable
Stops the NTP service on the appliance. The NTP service is configured to not start when the appliance is rebooted.
(config)# ntp disable
enable
Starts the NTP service on the appliance. The NTP service is configured to start automatically when the appliance is rebooted. At least one NTP server must be defined in order to enable the NTP service.
(config)# ntp enable
server
<hostname or IP address>
Domain name or IP address of the NTP server. The default NTP servers are ntp.bluecoat.com and ntp2.bluecoat.com.
symmetric-key key-id <value 1-65534> algorithm <sha1> [encrypted-secret <value> | secret <string>]
If your NTP server supports symmetric-key authentication, enter the key with this series of commands. Only SHA1 is supported in this release. Defer to your NTP provider's instructions on whether to use an encrypted secret or unencrypted.
update-now
Forces the NTP service to update the appliance's clock.
# ntp update-now
System date and time successfully updated.

Notes

  • Type
    ntp
    to enter NTP configuration mode. The prompt will display as
    (config-ntp)#
    .
  • Use the
    no server
    command in the NTP configuration mode to remove a configured server. (See example below.)
  • Use the
    show full-configuration
    command in the NTP configuration mode to display the NTP settings. (See example below.)

Examples

(config)# ntp server ntp.bluecoat.com
(config)# ntp enabled
(config)# ntp
(config-ntp)# show full-configuration ntp enabled server ntp.bluecoat.com server ntp2.bluecoat.com
(config-ntp)# no server ntp2.bluecoat.com
To view the current configuration:
# show running-config ntp ntp enable symmetric-key 1 algorithm sha1 symmetric-key 1 encrypted-secret $AES256-CBC$4dQX+DOtMmVWdhtM4PG/+g==$gFDz7v2vfOM0A1D+qjzLPB5jqfqsEZhdoYx8EslIvkY=$kKZd4y09r3hNnlhziLwArw==$eR4tJbJSB7309qcDCQ+jmLnCXUhfz7gQAcwvHdwFyEKfZUx5QqyKptrQiGGjjRwveM5UXcmem43v65eZan/WGzBow8YjdwLZNOcoN87xhdN456EWJ8wsKsmd/60dhzVoMu5k3PQS1nQbCtmAn1BreBsrh2L/9zaJFl8C1HrdV5AYZpNokiakrMjxvw01ZAwxsagCflqqr2udV0KSQSH0FiSPJbRJr/1rAjFIP/2LBL3EVahfRr+iwXROzUKMoWO4PJj05SF3idHMz2NwecIoXby3nA2e/WY0u/8UhqJauZ/+d1vr5H/8O9VClASR4PL0Nrx2Vi0wjG25WYwuZNe+hQ== server ntp.bluecoat.com server ntp2.bluecoat.com server symmetric-key !