メインコンテンツへスキップ

Unified Managerクラスタデータソースの認証情報をコマンドラインから編集するにはどうすればよいですか?

Views:
208
Visibility:
Public
Votes:
0
Category:
active-iq-unified-manager
Specialty:
om
Last Updated:

環境

  • ActiveIQ Unified Manager (AIQUM) 9.6+
  • すべてのOSプラットフォーム

回答

Unified Manager OVAのインストールでは、まずコマンドラインへの「diag」アクセス権を取得する必要があります。以下のナレッジ記事を使用してください: Active IQ Unified Manager仮想マシンのDIAGシェルにアクセスする方法。
 

  1.  UM CLIにログインします(Windowsの場合はCommand promptを使用): 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組の二重引用符で囲みます。

以下に例を示します:

Eg1:

Yi5"&"5pQrSt

例 2:

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

  • AIQUMサーバーがWindows上にある場合、パスワードのエスケープ処理はまったく異なります。
  • Windowsのumコマンドはバッチスクリプトとして実装されているため、um cliコマンドを実行するにはpowershellではなく、必ずcmd.exeを使用してください。
  • パスワードを二重引用符で囲むだけで「エスケープ」できます:
  • 例: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.