update_host_password

Updates the changed host password in the credential sub-system. For collection or monitoring credentials, the password change is optionalso propagated to the Enterprise Manager Management Agent.

Format

emcli update_host_password      -target_name="tname"      -user_name="user_name"      [-change_all_references="yes/no"]      [-input_file="tag1:file_path1;tag2:file_path2;..."]

[ ]  indicates that the parameter is optional

Note:

When you execute this verb, you are prompted to enter the following values in non-echo mode:

-old_password -new_password -retype_new_password

Options

  • target_name

    Name of the target.

  • user_name

    Name of the database user.

  • change_all_references

    Specifies if the password must be changed for all references in Enterprise Manager for the given user.

    Possible values are:

    • Yes — Updates all references in Enterprise Manager for this password.

    • No — Updates the password for the current logged-in user. This is the default.

  • input_file

    File path that has old and new passwords. This hides passwords. You must accompany each path with a tag referenced in the password.

    For more information about the input_file parameter, see -input_file Syntax Guidelines.

Examples

Example 1

This example asks the user to enter the values of the old and new passwords, then retype the new password to update the new password in Enterprise Manager for this target reference.

emcli update_host_password
      -target_name=myHost
      -user_name=Admin1

Example 2

This example asks the user to enter the values of the old and new passwords, then retype the new password to update the new password in Enterprise Manager for all users' credentials referenced with the myHost target name and Admin1 user name.

emcli update_host_password
      -target_name=myHost
      -user_name=Admin1
      -change_all_references=yes