Updated on 2024-11-20 GMT+08:00

Querying the Account Password

Obtaining Account Passwords

  1. Log in to COC.
  2. In the navigation pane on the left, choose Resource O&M > Automated O&M. In the Routine O&M area, click Account Management.
  3. Click the Accounts tab. By Resource is used to manage all purchased host instances, and By Application is used to manage purchased hosts that are bound to applications.

    Figure 1 Accounts

  4. To save accounts (only save the accounts and do not change their passwords), click Import Account, download the Excel template, enter the host information, confirm the information, and upload the template.

    Figure 2 Importing accounts

    1. The imported host accounts are not managed. If you want to automatically manage the imported accounts, you can modify the global baseline or create an account baseline to add these accounts. Then, the system will immediately manage these host accounts.

    2. DCS, RDS, and DMS host accounts that are imported cannot be managed, that is, their passwords cannot be automatically changed.

  5. To synchronize the accounts added to an OS, select the corresponding hosts on the Accounts tab page, and click Synchronize Account. Note: If you want to automatically manage the added accounts, configure the accounts in the account baseline. For details, see Account Baseline.

    Figure 3 Synchronizing OS accounts

  6. Locate the target host record, click View Account Password in the Operation column. The Password Change Details page is displayed on the right. You can view the password change status and the password change failure cause of the target account. Currently, only the account password of a single host can be queried once. Ensure that the password change status of the target host account is succeeded, or that the password change failure cause is that the target account is not managed. Otherwise, the password may fail to be obtained. If password change status is Failed, rectify the fault based on the failure cause.

    Conditions for changing the password of an ECS host:

    1. The resources status of the host is Running.

    2. The UniAgent status of the host is Running.

    3. The accounts on the host OS are the same as those in the bound account baseline.

    Conditions for changing the passwords of an incremental ECS:

    4. The password change policy has been enabled.

    Conditions for periodically changing the password of a managed host:

    1. A password change task has been bound.
    Figure 4 Password Change Details

  7. Locate the target host account, and click Obtain Password in the Operation column to query the account password.

    Figure 5 Obtaining account passwords

    If no data is displayed on the Password Change Details page, check whether the host is bound to a component. If yes, check whether the automatic management policy of the bound component baseline or of the component dimension is enabled. If the host is not bound to a component, check whether the automatic management policy of the global dimension is enabled.