Skip to main content

How to validate the time on an ONTAP cluster to match the domain controller in UTC

https://kb.netapp.com/on-prem/ontap/da/NAS/NAS-KBs/How_to_check_the_time_on_Cluster_and_Domain_Controllers_in_UTC 

Applies to

  • ONTAP 9
  • Microsoft Active Directory Domain Controller (DC)

Description

The following article describes how to adjust the cluster time to match the DC time in UTC

Procedure

  1. From the DC, confirm the time:
    • Using Powershell, run ​​​​​​[System.DateTime]::UtcNow

Example:

PS C:\> [System.DateTime]::UtcNow

 

Wednesday, January 25, 2023 3:49:00 PM

  1. From the ONTAP CLI, adjust the cluster time:
    • From the CLI, run date -u yyyyddhhmm.ss
      • The format of the command follows:   
        • YYYY for the four digital year
        • DD for the two digit day of the month
        • HH for the two digit hour in 24 hour formatting
        • MM for the two digit minute  
        • .SS for the two digit second
      • The following example sets the date to January 25, 2023, 3:49pm
        • Cluster::> date -u 202301251549.00
  2. Confirm the cluster time:
    • From the CLI, run date -u

Example:

Cluster::> date -u Node              UTC Date ----------------- ------------------------ Node1             Wed Jan 25 15:49:00 2023 Node2             Wed Jan 25 15:49:00 2023 2 entries were displayed.

 

Additional Information

To modify the Domain Controller time via powershell, you can use the following syntax

Set-Date -Date (Get-Date).AddHours(-1)