How to validate the time on an ONTAP cluster to match the domain controller 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
- From the DC, confirm the time:
- Using Powershell, run
[System.DateTime]::UtcNow
- Using Powershell, run
Example:
PS C:\> [System.DateTime]::UtcNow
Wednesday, January 25, 2023 3:49:00 PM
- 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
- The format of the command follows:
- From the CLI, run
- Confirm the cluster time:
- From the CLI, run
date -u
- From the CLI, run
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.