ntp

Profile Config Commands

Configures the NTP (Network Time Protocol) server settings

NTP manages time and/or network clock synchronization within the network. NTP is a client/server implementation. Controllers, service platforms, and access points (NTP clients) periodically synchronize their clock with a master clock (an NTP server). For example, a controller resets its clock to 07:04:59 upon reading a time of 07:04:59 from its designated NTP server.

Supported in the following platforms:

  • Access Points — AP505i, AP510i/e, AP560i/h
  • Service Platforms — NX5500, NX7500, NX9500, NX9600, VX9000

Syntax

ntp server <PEER-IP/HOSTNAME> {autokey|key|maxpoll|minpoll|prefer|version}
ntp server <PEER-IP/HOSTNAME> {autokey}
ntp server <PEER-IP/HOSTNAME> {maxpoll [1024|2048|4096|8192]}
ntp server <PEER-IP/HOSTNAME> {minpoll [1024|128|256|512|64]}
ntp server <PEER-IP> {key <1-65534> md5 [0 <WORD>|2<WORD>|<WORD>]}
ntp server <PEER-IP/HOSTNAME> {prefer version <1-4>|version <1-4> prefer}

Parameters

ntp server <PEER-IP/HOSTNAME> {autokey} {prefer version <1-4>|version <1-4>}
ntp server <PEER-IP/HOSTNAME> Configures NTP server resources that are used to obtain system time
  • <PEER-IP/HOSTNAME> – Identifies the NTP server resource by its IP address or hostname. Specify the NTP server‘s IP address or hostname.
autokey Optional. Enables automatic configuration of authentication key for the specified NTP server. This option is disabled by default. If not enabled, use the ‘key‘ option to configure an authentication key for the NTP server.
ntp server <PEER-IP/HOSTNAME> {maxpoll [1024|2048|4096|8192]}
ntp server <PEER-IP/HOSTNAME> Configures NTP server resources that are used to obtain system time
  • <PEER-IP/HOSTNAME> – Identifies the NTP server resource by its IP address or hostname. Specify the NTP server‘s IP address or hostname.
maxpoll [1024|2048|4096| 8192] Optional. Configures the maximum polling interval. Once set, the specified NTP server is polled no later than the defined interval. Select one of the following options:
  • 1024 – Configures the maximum polling interval as 1024 seconds. This is the default setting.
  • 2048 – Configures the maximum polling interval as 2048 seconds
  • 4096 – Configures the maximum polling interval as 4096 seconds
  • 8192 – Configures the maximum polling interval as 8192 seconds
ntp server <PEER-IP/HOSTNAME> {minpoll [1024|128|256|512|64]}
ntp server <PEER-IP/HOSTNAME> Configures NTP server resources that are used to obtain system time
  • <PEER-IP/HOSTNAME> – Identifies the NTP server resource by its IP address or hostname. Specify the NTP server‘s IP address or hostname.
minpoll [1024|128|256|512| 64] Optional. Configures the minimum polling interval. Once set, the specified NTP server is polled no sooner than the defined interval. Select one of the following options:
  • 1024 – Configures the minimum polling interval as 1024 seconds
  • 128 – Configures the minimum polling interval as 128 seconds
  • 256 – Configures the minimum polling interval as 256 seconds
  • 512 – Configures the minimum polling interval as 512 seconds
  • 64 – Configures the minimum polling interval as 64 seconds. This is the default setting.
ntp server <PEER-IP/HOSTNAME> {key <1-65534> md5 [0 <WORD>|2<WORD>|<WORD>]}
ntp server <PEER-IP/HOSTNAME> Configures NTP server resources that are used to obtain system time
  • <PEER-IP/HOSTNAME>> – Identifies the NTP server resource by its IP address or hostname. Specify the NTP server‘s IP address or hostname.
key <1-65534> md5 [0 <WORD>| 2 <WORD>|<WORD>] Optional. Defines the authentication key for the specified NTP server. This option is used to configure the key when ‘autokey‘ configuration is not enabled.
  • <1-65534> – Specify the peer key number. Should not exceed 64 characters in length.
    • md5 – Sets MD5 authentication
      • 0 <WORD> – Configures a clear text password
      • 2 <WORD> – Configures an encrypted password
      • <WORD> – Sets an authentication key
ntp server <PEER-IP/HOSTNAME> {prefer version <1-4>|version <1-4> prefer}
ntp server <PEER-IP/HOSTNAME> Configures NTP server resources that are used to obtain system time
  • <PEER-IP/HOSTNAME> – Identifies the NTP server resource by its IP address or hostname. Specify the NTP server‘s IP address or hostname.
prefer version <1-4> Optional. Designates the specified NTP server as a preferred NTP resource. This setting is disabled by default.
  • version – Optional. Configures the NTP version
    • <1-4> – Select the NTP version from 1 - 4. If not specified, the default value of ‘0‘ is applied, which implies that the NTP server‘s version is ignored.
version <1-4> prefer Optional. Configures the version number used by the specified NTP server resource
  • <1-4> – Select the NTP version from 1 - 4. The default setting is 0. A value of ‘0‘ implies that the NTP server‘s version is ignored.
    • prefer – Optional. Designates the specified NTP server as a preferred NTP resource. This setting is disabled by default. The NTP version number specified using the ‘version <1-4>‘ keyword is applied to this preferred NTP resource.

Example

NOC-NX9500(config-profile-testNX9000)#ntp server 10.234.160.5

NOC-NX9500(config-profile-testNX9000)#show context include-factory | include ntp

 no ntp autokey
 no ntp authenticate
 ntp server 10.234.160.5
NOC-NX9500(config-profile-testNX9000)#

Related Commands

no Disables or reverts settings to their default