跳转到主内容

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

Views:
77
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 命令行界面中,调整集群时间:
    • 从 CLI 中,运行 date -u yyyymmddhhmm.ss
      • 此命令的格式如下:   
        • YYYY 表示四位数年份
        • MM 表示两位数月份
        • DD 表示月份中的两位数日期
        • HH 表示 24 小时制的两位数小时
        • MM 表示两位数分钟  
        • .SS 表示两位数秒
      • 以下示例将日期设置为2023年1月25日下午3:49
        • Cluster::> date -u 202301251549.00
  2. 确认集群时间:
    • 从 CLI 中,运行 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.

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

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.