ルートユーザーパスワードの更新

このページでは、コントローラのルートユーザーのパスワードを変更する方法について説明します。

Root User and Account Owners

The root user is a built-in Controller user with global administrator privileges in the Controller environment. Only the root user can access the System Administration Console, where you can create and manage accounts in multi-tenant Controllers and configure global Controller settings in both single- or multi-tenant Controllers.

The root user is a superuser for the Controller. Unlike other types of users, you cannot remove the root user account or create other superuser accounts in the Controller. The password for the root user is set during installation, but you can change the root password in the Administration Console.

While the root user has global administrative privileges, account administrators act as administrators only within individual accounts in a multi-tenant Controller. It's typically the role of the root user to create accounts and an initial administrator for the account, and the role of each account administrator to create additional users within the account. See Roles and Permissions and Manage Users and Groups.

コントローラルートユーザのパスワードの変更

Splunk AppDynamics の [Administration Console] ページからルートユーザーのパスワードを変更できます。

ルートユーザーのパスワードを変更するには、次の手順を実行します。
  1. 管理コンソールへのアクセス」にあるように、管理コンソールにログインします。
  2. [User Profile] をクリックし、[My Settings] > [My Preferences] を選択します。
  3. [My Account] で、[Edit] > [Change Password] の順にクリックします。
  4. [New Password] フィールドと [Confirm New Password] フィールドにルートユーザーの新しいパスワードを入力します。
  5. [保存(Save)] をクリックします。
警告: ここで示した管理コンソールへのログインには、ルートユーザーのパスワードが必要になります。ルートユーザーのパスワードがわからない場合は、リセットが必要になります。

Reset Root User Password

If you have lost the Splunk AppDynamics root user password for your installation and need to reset it, follow these steps:

  1. From the command line, change to the Controller's bin directory. For example, on Linux:
    cd <controller_home>/bin
  2. Use the following script to log in to the Controller database of the Controller;
    • For Windows: controller.bat login-db
    • For Linux: sh controller.sh login-db
    You will see a MySQL prompt.
  3. After running the script, you will be prompted to enter a password. Enter the root password for the Controller database.
  4. From the MySQL prompt, enter the following SQL command to get root user details:
    select * from user where name='root' \G;
  5. Use the following SQL command to change the password:
    update user set encrypted_password = sha1('<NewPassword>') where name = 'root';
    The hash for the password will be upgraded to PBKDF2 when you log in.
  6. Restart the Appserver.
For information on setting the database root user password, see Controller Data and Backups.

コントローラ データベース ルート ユーザ パスワードの変更

注: Enterprise Console がコントローラを検出しなかった場合:
  • コントローラ データベース ルート ユーザ パスワードを変更するには、ダウンタイムが必要です。コントローラの HA ペアをインストールしている場合は、パスワードを変更する際に偶発的なフェールオーバーを回避するために、自動フェールオーバーを無効にする必要があります。詳細については、「自動フェールオーバー」を参照してください。
  • コントローラの HA ペアの両方でパスワードを変更する必要があります。
コントローラ データベース ルート ユーザー パスワードを変更するには、次の手順を実行します。
  1. コントローラホストにログインします。コマンドラインから次のように入力します。
    cd <controller_home_dir>
  2. アプリケーションサーバーとデータベースを停止するには、次のように入力します。
    bin/controller.sh stop
    注: MS Windows を使用している場合は、Windows サービスを使用してコントローラを停止する必要があります。
  3. 安全でないモードでデータベースを起動するには、次のように入力します。
    bin/controller.{sh|bat} start-db insecure
    安全でないオプションでは、パスワード不要でデータベースを起動します。このオプションは、データベースのパスワードをリセットする時にのみ使用します。このオプションは、--skip-grant-tables オプションを使用した MySQL の起動と似ています。
  4. データベースにログインするには、次のように入力します。
    bin/controller.{sh|bat} login-db insecure
  5. MySQLで以下のコマンドを実行します。

    1. コントローラデータベースを指定するには、次のように入力します。
      use mysql;
    2. MySQL の権限テーブルを再度読み込むには、次のように入力します。
      FLUSH PRIVILEGES;
    3. MySQL のバージョンを確認するには、次のように入力します。
      select version();
    4. 使用している MySQL バージョンに応じて以下を使用します。
      MySQL 5.5
      update mysql.user set password=password('<new-password-here>') where user like 'root%';
      MySQL 5.7
      update mysql.user set authentication_string=password('<new-password-here>') where user like 'root%';
      MySQL 8.0
      flush privileges;
      alter user 'root'@'localhost' identified by '<new-password-here>';
      alter user 'root'@'127.0.0.1' identified by '<new-password-here>';
      alter user 'root'@'::1' identified by '<new-password-here>';
    5. MySQL の権限テーブルを再度読み込むには、次のように入力します。
      FLUSH PRIVILEGES;
    6. MySQL を終了するには、 と入力します。
      quit
  6. データベースを停止するには、次のように入力します。
    bin/controller.{sh|bat} stop-db
  7. アプリケーションサーバーを起動するには、次のように入力します。
    bin/controller.sh start
    注: MS Windows を使用している場合は、Windows サービスを使用してコントローラを起動する必要があります。
    警告:

    コントローラの HA ペアの場合は、プライマリ コントローラ サーバーで次のコマンドを使用して、コントローラ データベース ルート ユーザー用に難読化されたパスワードファイルを生成します。このコマンドは、プライマリ コントローラ サーバーとセカンダリ コントローラ サーバーの両方にパスワードファイルを生成します。

    controller-ha/set_mysql_password_file.sh -p <new-password-here> -s <secondary_controller_hostname> 
Enterprise Console がコントローラを検出した場合

次の手順を実行して、コントローラ データベース ルート パスワードを更新します。

  1. Enterprise Console にログインし、目的のプラットフォームを選択します。

  2. [Configurations] > [Controller Settings] > [Database Configurations] を選択します。
  3. [New password for Controller DB root user] に新しいパスワードを入力します。
  4. [Confirm New password for Controller DB root user] にそのパスワードを再入力します。
  5. [保存] を選択します。

パスワードの変更は即座に有効になります。

注: 以前に自動フェールオーバーを無効にしていた場合は、これを有効にする必要があります。

Change the Controller DB User Password

注: Downtime is required to change the Controller database root user password. If you have installed a Controller HA pair, you must disable auto-failover to avoid an accidental failover while changing the password. For more details about disabling auto-failover, see

Automatic Failover

.
To change the Controller DB user password:
  1. Log in to the Enterprise Console and select the desired platform.
  2. Select Configurations > Controller Settings > AppServer Configurations.
  3. In the Basic tab, enter the new password in New password for Controller DB user.
  4. Re-enter the password in Confirm New password for Controller DB user.
  5. Click Save.
The password change takes immediate effect.