Regaining root and administrator access to VCOPS

On a conference call recently, it was mentioned that VCOPS had been installed at some point in the past as a pilot project, however no-one had any details of the credentials used when setting it up. So I looked into how you reset the root and Administrator passwords to regain access.

There are a couple of stages to this, firstly the root passwords, then the Adminstrator one can be reset.

  1. Root passwords
    Find the VCOPS vApp in vCenter “Hosts and Clusters” view
    Expand the [+] to see both VMs
    Right-click on the Analytics VM and open the VM Console
    Press Enter to make sure the console is displayed
    From the VM Console menu, select VM > Power > Restart Guest (or Ctrl-R)
    Monitor the reboot process.
    At the Grub menu, interrupt the boot process by pressing one of the arrow keys, or space.
    vcops1
    With the highlighted line on “SUSE Linux Enterprise Server…” as above, press “e” to edit the entry
    Move down to the “kernel…” line with the arrow keys and press “e” to edit again
    vcops2
    Append “init=/bin/bash”  as shown
    vcops3
    Press Enter and “b” to boot
    The VM will boot to a bash prompt
    vcops4
    Type “mount / -o remount,rw” to mount the root disk as writable
    Type “passwd root” and submit a new password for the root user
    Type “sync” and hit Enter to flush the data to disk
    Type “reboot” and the VM will boot back up as normal.

    Repeat for the UI VM

  2. Administrator password
    This is as per KB article 2078313

    In the vSphere Client Inventory view, select the vRealize Operations vApp and navigate to the appliance console.
    Log in to UI virtual machine as the root user.
    In the localhost directory, type cd /usr/lib/vmware-vcops/user/conf/install and press Enter.
    In the install directory, run the./resetadminpwd.sh new_password command and press Enter.  For example:
    ./resetadminpwd.sh ‘Admin123!’

    Note:  vRealize Operations Manager (formerly known as vCenter Operations Manager) passwords must contain at least one upper case, one lower case, one digit, and one special character. When setting your new password, ensure that you escape the special characters.

    Type logout and press Enter to return to the main menu.
    These steps will also reset the same password on Analytic virtual machines automatically

Advertisements

3 thoughts on “Regaining root and administrator access to VCOPS

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s