ntp

Required Command-Line Mode = Configure

Required User Level = Admin

Use the ntp command to configure persistent synchronization of the GigaVUE H Series node’s system clock with an NTP server. Separate arguments let you add servers and enable the use of NTP generally. You can also use the ntpdate command to perform one-time synchronization of the system clock. Refer to ntpdate for more information.

The ntp command has the following syntax:

ntp
   authentication enable
   authentication-key <key number>
   disable
   enable
   server <hostname, IPv4 or IPv6 address> [disable | key <key number> | keys enable | version <version
      number>]

The following table describes the arguments for the ntp command:

Argument

Description

authentication enable

Enables NTP authentication. For example:

(config) # ntp authentication enable

authentication-key <key number>

Specifies an NTP authentication key.

disable

Disables the use of NTP for synchronization of the system’s clock. For example:

(config) # ntp disable

enable

Enables the use of NTP for synchronization of the system’s clock. For example:

(config) # ntp enable

server <hostname, IPv4 or IPv6 address> [disable | key <key number> | keys enable | version <version number>]

Adds an NTP server to the GigaVUE H Series node’s list. The arguments are as follows:

hostname—Specifies a DNS name of the server, such as: time.windows.com
IPv4 or IPv6—Specifies the IP address of the server.
disable—Temporarily disables the specified server.
key—Specifies the NTP key number of this server
keys—Enables the NTP key for this server
version—Specifies the NTP version in use by the specified server (3 or 4).

For example, the following command adds an NTP server on an IPv4 address:

(config) # ntp server 192.168.1.10

Related Commands

The following table summarizes other commands related to the ntp command:

Task

Command

Displays detailed information on current NTP settings.

# show ntp

Displays NTP configuration.

# show ntp configured

Disables NTP authentication.

(config) # no ntp authentication enable

Deletes a specified NTP authentication key.

(config) # no ntp authentication-key <key number>

Deletes a specified trusted NTP authentication key.

(config) # no ntp authentication-key <key number> trusted

Enables NTP.

(config) # no ntp disable

Disables NTP.

(config) # no ntp enable

Deletes the specified NTP server by IPv4 address.

(config) # no ntp server 1.1.1.1

Deletes the specified NTP server by hostname.

(config) # no ntp server time.windows.com

Re-enables a specified NTP server.

(config) # no ntp server 1.1.1.1 disable

Disables the key for the specified NTP server.

(config) # no ntp server 1.1.1.1 keys enable