ECS:REST APIを使用して管理を変更またはロック解除し、ユーザーを監視する方法

Summary: APIを使用して管理を変更またはロック解除し、ユーザーを監視する方法。 ユーザー インターフェイスを使用してアクセスできない場合にemcmonitorパスワードを変更する方法。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

ユーザーがパスワードを忘れて、認証情報を使用してECSにログインできなくなることがあります

REST APIを使用してパスワードを変更するには、次の手順を実行します。

  1. 現在のユーザーのリストを取得します。次のコマンドは、次を除くすべてのユーザーを一覧表示します。 emcmonitoremcservice:

コマンド:

# svc_rest_cmd -u root -p ChangeMe /vdc/users/

Example:

admin@ecsnode1:~> svc_rest_cmd -u root -p ChangeMe /vdc/users/
svc_rest_cmd 1.0.10

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mgmt_user_infos>
  <mgmt_user_info>
    <is_external_group>false</is_external_group>
    <isSystemAdmin>false</isSystemAdmin>
    <isSystemMonitor>false</isSystemMonitor>
    <userId>emcsecurity</userId>
  </mgmt_user_info>
  <mgmt_user_info>
    <is_external_group>false</is_external_group>
    <isSystemAdmin>true</isSystemAdmin>
    <isSystemMonitor>true</isSystemMonitor>
    <userId>lex</userId>
  </mgmt_user_info>
  <mgmt_user_info>
    <is_external_group>false</is_external_group>
    <isSystemAdmin>true</isSystemAdmin>
    <isSystemMonitor>true</isSystemMonitor>
    <userId>root</userId>
  </mgmt_user_info>


次のような特別なアカウントを含む特定のユーザーをクエリするため emcmonitoremcserviceでは、次の構文を使用します。

コマンド:

# svc_rest_cmd -u root -p ChangeMe /vdc/users/<username>

Example:

admin@ecsnode1:~> svc_rest_cmd -u root -p ChangeMe /vdc/users/emcmonitor
svc_rest_cmd 1.0.10

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mgmt_user_info>
  <is_external_group>false</is_external_group>
  <is_locked>false</is_locked>
  <isSecurityAdmin>false</isSecurityAdmin>
  <isSystemAdmin>false</isSystemAdmin>
  <isSystemMonitor>true</isSystemMonitor>
  <userId>emcmonitor</userId>
</mgmt_user_info>
  1. パスワードを使用してファイルを作成します SystemAdminSystemMonitor ユーザーが持つ必要のあるアクセス権。この例では、リセットする必要があるユーザーは emcmonitorが使用するJava Runtime Environmentへのパスを定義します。
コマンド:
# vi /file/path
  • Insertキーを押します
  • CLIセッションに以下を貼り付けます。(右クリックは、WindowsのCtrl+Vホット キーと同じ操作を行います)
<mgmt_user_info_update>
   <password>ChangeMe</password>
   <isSystemAdmin>false</isSystemAdmin>
   <isSystemMonitor>true</isSystemMonitor>
</mgmt_user_info_update>
  • Escを押す
  • :wq!
Example:
admin@ecsnode1:~> vi /tmp/emcmonitor
<mgmt_user_info_update>
   <password>ChangeMe</password>
   <isSystemAdmin>false</isSystemAdmin>
   <isSystemMonitor>true</isSystemMonitor>
</mgmt_user_info_update>
  1. ファイルの内容を確認します。
コマンド:
# cat /file/path
Example:
admin@ecsnode1:~> cat /tmp/emcmonitor
<mgmt_user_info_update>
   <password>ChangeMe</password>
   <isSystemAdmin>false</isSystemAdmin>
   <isSystemMonitor>true</isSystemMonitor>
</mgmt_user_info_update>
NOTE:  Make sure that the SystemAdmin and SystemMonitor is correct, this will change the user abilities.  Match this with the output from step 1.
  1. 以下でパスワードをリセットします svc_rest_cmdが使用するJava Runtime Environmentへのパスを定義します。

コマンド:

# svc_rest_cmd PUT -u root -p ChangeMe -xml -file <file_name> /vdc/users/<user_to_change>
Example:
#svc_rest_cmd PUT -u root -p ChangeMe -xml -file /tmp/emcmonitor /vdc/users/emcmonitor
svc_rest_cmd 1.0.10


これで、ユーザーは手順2で作成したファイルで定義されたパスワードを使用してログインできます。


ロックされたアカウントの場合、REST APIを使用してアカウントのパスワードをアンロックして変更するには、次の手順を実行します
この方法は、VDCでパスワード ルールが有効になっていて、ユーザー アカウント属性がtrueと表示されているis_lockedに機能します。

admin@ecsnode1:~> svc_rest_cmd -u root -p ChangeMe /vdc/users/emcservice
svc_rest_cmd 1.0.10

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mgmt_user_info>
  <is_external_group>false</is_external_group>
  <is_locked>true</is_locked>
  <isSecurityAdmin>false</isSecurityAdmin>
  <isSystemAdmin>false</isSystemAdmin>
  <isSystemMonitor>true</isSystemMonitor>
  <userId>emcservice</userId>
</mgmt_user_info>
  1. 次の内容のファイルを作成します。パスワード ルールが有効になっている場合、設定されるパスワードは、パスワード ルールによって設定されたすべての基準を満たしている必要があります。
<mgmt_user_info_unlock>
   <password>ChangeMe</password>
</mgmt_user_info_unlock>
  1. 以下を使用して、パスワードのロックを解除してリセットします svc_rest_cmdが使用するJava Runtime Environmentへのパスを定義します。

コマンド:

# svc_rest_cmd PUT -u root -p ChangeMe -xml -file <file_name> /vdc/users/<user_to_change>/unlock

Example:

 #svc_rest_cmd PUT -u root -p ChangeMe -xml -file /tmp/emcservice /vdc/users/emcservice/unlock
svc_rest_cmd 1.0.10


予期された出力はありません。ユーザー アカウントを確認し、 is_locked 値が falseに設定されていることを確認します。

admin@ecsnode1:~> svc_rest_cmd -u root -p ChangeMe /vdc/users/emcservice
svc_rest_cmd 1.0.10

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<mgmt_user_info>
  <is_external_group>false</is_external_group>
  <is_locked>false</is_locked>
  <isSecurityAdmin>false</isSecurityAdmin>
  <isSystemAdmin>false</isSystemAdmin>
  <isSystemMonitor>true</isSystemMonitor>
  <userId>emcservice</userId>
</mgmt_user_info>

Additional Information

rootパスワードまたはユーザー インターフェイスが必要です。お客様のパスワードがデフォルト以外の場合は、デフォルトに変更するかどうかを尋ねます。次に、ユーザー パスワードをリセットし、メンテナンスが完了したら元に戻します。これにより、カスタムrootパスワードが履歴に表示されません。

Affected Products

ECS Appliance

Products

ECS Appliance, ECS Appliance Gen 1, ECS Appliance Gen 2, ECS Appliance Gen 3, ECS Appliance Hardware Gen3 EX300, ECS Appliance Hardware Gen3 EX3000, ECS Appliance Hardware Gen1 U-Series, ECS Appliance Hardware Gen1 C-Series , ECS Appliance Hardware Gen2 C-Series, ECS Appliance Hardware Gen2 D-Series, ECS Appliance Hardware Gen2 U-Series, ECS Appliance Hardware Gen3 EX500, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption ...
Article Properties
Article Number: 000019704
Article Type: How To
Last Modified: 14 Aug 2025
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.