跳转到主内容

如何通过命令行编辑Unified Manager集群数据源的凭据?

Views:
18
Visibility:
Public
Votes:
0
Category:
oncommand-unified-manager
Specialty:
legacy
Last Updated:

适用场景

  • ActiveIQ Unified Manager (AIQUM) 9.6及更高版本
  • OnCommand统一管理器(OCUM) 9.5及更低版本
  • 所有操作系统平台

问题解答

对于OnCommand Unified Manager OVA安装、您首先需要获得对命令行的"diag"访问权限。请参阅以下知识文章: How to access the OnCommand Virtual Machine诊断程序shell。
 

  1.  登录到UM命令行界面(对于Windows、使用命令提示符):um cli login -u <maintenance_user>
  2. 提供维护用户凭据
  3. 获取要更改的条目的数据源ID:um datasource list
  4. 修改数据源: um datasource modify -U <USERNAME> -P <PASSWORD><DATASOURCE_ID>

 

注意:  

  • 如果密码包含特殊字符、则可能也需要转义这些字符。这可以通过 \ 在特殊字符前面添加来实现。
  • 示例:

此密码: ABCD!(1234)ab
将通过键入: ABCD\!\(1234\)ab

  • 指示需要转义字符的消息如下所示:

-bash: !: event not found
-bash: syntax error near unexpected token `)'

  • 我们还需要注意、"&密码"中不接受与号"。而使用斜线符号/()传递它的常规方法将不起作用。
  • 错误消息示例:

At line:1 char:42
+ um datasource add -U demo\training -P Yi5&5pQrSt                           
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double quotation marks ("&") to pass it as part of a string.
   + CategoryInfo      : ParserError: (:) [], ParentContainsErrorRecordException
   + FullyQualifiedErrorId : AmpersandNotAllowed

  • 如果有与号""&符号、则必须在与&号""符号前后使用双引号来传递此符号。

例如、如果密码为: Yi5&5pQrSt
则我们必须在双报价中传递与符和其他特殊字符、如果您有多个特殊字符、则将它们放在一对双报价中。

示例如下:

第1步:

Yi5"&"5pQrSt

例如2:

0nYi5”&”5”!^”TpF”%”b2R

  • 如果AIQUM服务器位于Windows上、则转义密码的过程完全不同
  • 确保使用的 是cmd.exe,而不是PowerShell来运行um CLI命令,因为Windows um命令是作为批处理脚本实施的
  • 只需用双引号将密码"转义"即可:
  • 例如、 um datasource add -U demo\\training -P "Yi5@5pQrSt"<DATASOURCE_ID> 此处的密码为 Yi5@5pQrSt

追加信息

其他信息文本

 

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.