ntp (network time protocol) command

This command configures and displays the management-module network time protocol (NTP) settings.

Table 1. ntp command
Function What it does Command Valid targets
Display management module NTP settings Displays the NTP settings for the specified I/O module. Possible return values are:
  • -en state (enabled, disabled)
  • -i ipaddress/hostname (IP address or hostname of the NTP server)
  • -f update_frequency (NTP update frequency, in minutes)
  • -v3en state (enabled, disabled)
  • -v3 key_info (NTP v3 authentication entry)
ntp
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Enable / disable NTP Enables or disables NTP for the management-module. ntp -en state

where state is enabled or disabled.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

NTP server IP address or hostname - set Checks syntax and sets the IP address or hostname of the NTP server. ntp -i ipaddress/hostname

where ipaddress/hostname is the IP address or hostname of the NTP server.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

NTP update frequency - set Sets how often the management module clock is automatically updated by the NTP server. ntp -f time

where time is the NTP update frequency, in minutes with a maximum value of 45000.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

NTP - Enable / disable V3 authentication Enables or disables V3 authentication between the management-module and the NTP server.
Note: The NTP server authentication key must be set, using the ntp -v3 command option, before enabling V3 authentication.
ntp -v3en state

where state is enabled or disabled.

This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

NTP server authentication key - set Sets the v3 authentication key that the management module uses to access the NTP server. The authentication key contains the following values:
  • Key index: An NTP server can be configured with one or more key entries. The key index specifies which key the server expects the client to authenticate with.
  • Key type: The advanced management module supports only the MD5 key type.
  • Key: The key is an 8-character ASCII string.
ntp -v3 key_index key_type key

where:

  • key_index is from 1 to 65535, inclusive. If you enter a value outside this range, an error will be displayed.
  • key_type is M (MD5).
  • key is a 8-character ASCII string.
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

NTP clock- synchronize Synchronizes the management-module clock with the NTP server. (You must configure a valid NTP server before you can synchronize.) ntp -synch
This command can only be run by users who have one or more of the following command authorities:
  • Supervisor
  • Chassis configuration
See Commands and user authority for additional information.
                           -T system:mm[x]
                        

where x is the primary management-module bay number.

Example:

To display NTP settings for the management module, while management module 2 is set as the persistent command environment, at the system:mm[2]> prompt, type
                  ntp
               

The following example shows the information that is returned from this command:

               system:mm[2]> ntp
-en enabled
-i timeserver
-f 5
-v3en disabled
-v3 Not configured
NTP is disabled.
system:mm[2]>