Search the VMware Knowledge Base (KB)
View by Article ID

Resetting user passwords in VMware vRealize Operations Manager vApp (2013358)

  • 21 Ratings

Details

This article describes steps to reset passwords in VMware vRealize Operations Manager 5.x. The procedure for the root user is different from the admin user. Both procedures are documented here.

Solution

To reset the passwords in the vRealize Operations Manager vApp, perform one of these options:
  • Reset the root user password.
  • Reset the admin user password.

Resetting the root user password

If you forget the root user password, reset this password by booting into single user mode.

To reset the root user password:
  1. In the vSphere Client, power off both the UI and Analytics virtual machines.
  2. Right-click the powered-off UI virtual machine and click Open Console in the pop-up menu.
  3. From the virtual machine console window click the power on button.

    Note: You have only a few seconds to accomplish this step. If you do not halt the boot countdown, you have to start again.
    When the boot screen appears, quickly click inside the window and enter a space. The boot process halts and the countdown from 7 to 0 at the bottom of the screen clears.


  4. Ensure the first line is selected (SUSE Linux Enterprise ...), and press the letter e for edit. The boot parameters menu appears.
  5. Navigate to the second line (beginning with kernel /vmlinuz-....), and press the letter e again. This will open up the grub prompt with the cursor positioned at the end of the line.
  6. Enter a space and then type init=/bin/sh and press Enter.

    Note: The space and the parameter are appended to the line onscreen. Once you press Enter you are returned to the previous boot parameters screen with the kernel line highlighted.


  7. Press the letter b to boot. You see a short boot sequence then a shell prompt.

    Note: After rebooting the temporary changes made in Step 6 will be overwritten and all boot parameters revert to their previous values.


  8. To reset the root user password, run this command:

    passwd

    Note: You will be prompted to enter a new password and confirm the password.


  9. Reboot the vApp.
  10. Repeat Steps 1-9 for the Analytics virtual machine.

    Note: Ensure you enter the same new password for both the UI and the Analytics virtual machines.


  11. Restart the UI and Analytics virtual machines.

Resetting the admin user password

If you forget the admin user password for vRealize Operations Manager a script is available for you to re-set that password.

For vRealize Operations 5.0 download the attached script and copy to the vApp using a tool such as SCP.
For vRealize Operations 5.0.1 and subsequent versions the script is available in the vApp.

To reset the admin password:

Note: If you are on a version later than 5.0 go to Step 3.
 
  1. If you are on the 5.0 version download and unzip the file resetadminpwd.zip to obtain the script file resetadminpwd.sh.
  2. Save resetadminpwd.sh on the UI virtual machine in the /usr/lib/vmware-vcops/user/conf/install folder.
  3. Change directory to /usr/lib/vmware-vcops/user/conf/install.
  4. Make the resetadminpwd.sh script executable using this command:

    chmod 755 resetadminpwd.sh

  5. As root, run the script resetadminpwd.sh on the UI virtual machine:

    ./resetadminpwd.sh new-password

    Note: The $ character should not be used in new-password. If you want to use $, reset the admin password using the script to a temporary password without a $ and then reset the admin password to the required password in the vRealize Operations admin console. Also, When running ./resetadminpwd.sh ,it is important that non-alphanumeric characters should be escaped with a \ character, otherwise they may get interpreted by the shell before getting sent to the script. In this case, VMw@re123! would be entered as VMw\@re123\!.


For related information, see Automated lockout of the admin account in the VMware vRealize Operations Manager 5.0.x vApp (2030185).

Additional Information

For translated versions of this article, see:

Attachments

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 21 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.

What can we do to improve this information? (4000 or fewer characters)




Please enter the Captcha code before clicking Submit.
  • 21 Ratings
Actions
KB: