跳转到主内容

如何验证ONTAP集群上的时间是否与UTC中的域控制器匹配

Views:
46
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
nas
Last Updated:

 

适用场景

  • ONTAP 9.  
  • Microsoft Active Directory域控制器(DC)

问题描述

以下文章介绍了如何调整集群时间以匹配UTC的DC时间

操作步骤

  1. 从DC确认时间:
    • 使用PowerShell运行 ​​​​​​[System.DateTime]::UtcNow

示例:

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

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

  1. 在ONTAP命令行界面中、调整集群时间:
    • 在命令行界面中、运行 date -u yyyyddhhmm.ss
      • 命令格式如下:   
        • yyy表示四个数字年份
        • DD表示一个月中的两位数日期
        • hh表示 24小时格式的两位数小时
        • mm表示两位数分钟  
        • 两位数秒为.ss
      • 以下示例将日期设置为2023年1月25日下午3:49
        • Cluster::> date -u 202301251549.00
  2. 确认集群时间:
    • 在命令行界面中、运行 date -u

示例:

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.

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.