Skip to main content

Synchronize the system time across an ONTAP cluster

Contributors netapp-aherbin netapp-lenida netapp-aaron-holt netapp-dbagwell netapp-thomi

Synchronizing the time ensures that every node in the cluster has the same time, and prevents CIFS and Kerberos failures.

A Network Time Protocol (NTP) server should be set up at your site. Beginning with ONTAP 9.5, you can set up your NTP server with symmetric authentication. For more information, see documentation for managing the cluster time (cluster administrators only).

You synchronize the time across the cluster by associating the cluster with one or more NTP servers.

  1. Verify that the system time and time zone is set correctly for each node:

    cluster date show

    All nodes in the cluster should be set to the same time zone.

    This example shows the date and time zone for each node in the cluster.

    cluster1::> cluster date show
    Node         Date                Time zone
    ------------ ------------------- -----------------
    cluster1-01  01/06/2015 09:35:15 America/New_York
    cluster1-02  01/06/2015 09:35:15 America/New_York
    cluster1-03  01/06/2015 09:35:15 America/New_York
    cluster1-04  01/06/2015 09:35:15 America/New_York
    4 entries were displayed.
  2. Change the date or time zone for all of the nodes:

    cluster date modify

    This example changes the time zone for the cluster to be GMT:

    cluster1::> cluster date modify -timezone GMT
  3. Associate the cluster with your NTP server:

    To set up your NTP server without symmetric authentication enter the following command:

    cluster time-service ntp server create -server <server_name>

    To set up your NTP server with symmetric authentication, enter the following command:

    cluster time-service ntp server create -server <server_ip_address> -key-id <key_id>
    Note Symmetric authentication is available beginning with ONTAP 9.5. It is not available in ONTAP 9.4 or earlier.

    This example assumes that DNS has been configured for the cluster. If you have not configured DNS, you must specify the IP address of the NTP server:

    cluster1::> cluster time-service ntp server create -server ntp1.example.com
  4. Verify that the cluster is associated with an NTP server:

    cluster time-service ntp server show

    This example shows that the cluster is associated with the NTP server ntp1.example.com.

    cluster1::> cluster time-service ntp server show
    Server               Version
    -------------------- -----------
    ntp1.example.com     auto

Commands for managing symmetric authentication on NTP servers

Beginning with ONTAP 9.5, Network Time Protocol (NTP) version 3 is supported. NTPv3 includes symmetric authentication using SHA-1 keys which increases network security.

To do this…​ Use this command…​

Configure an NTP server without symmetric authentication

cluster time-service ntp server create -server server_name

Configure an NTP server with symmetric authentication

cluster time-service ntp server create -server server_ip_address -key-id key_id

Enable symmetric authentication for an existing NTP server

An existing NTP server can be modified to enable authentication by adding the required key-id.

cluster time-service ntp server modify -server server_name -key-id key_id

Configure a shared NTP key

cluster time-service ntp key create -id shared_key_id -type shared_key_type -value shared_key_value

Note: Shared keys are referred to by an ID. The ID, its type, and value must be identical on both the node and the NTP server

Configure an NTP server with an unknown key ID

cluster time-service ntp server create -server server_name -key-id key_id

Configure a server with a key ID not configured on the NTP server.

cluster time-service ntp server create -server server_name -key-id key_id

Note: The key ID, type, and value must be identical to the key ID, type, and value configured on the NTP server.

Disable symmetric authentication

cluster time-service ntp server modify -server server_name -authentication disabled