Change hostname in vRealize Operations Manager 8.0

change-hostname-vrealize-operation-manager-01

During the reorganization of a virtual infrastructure you may need to change the hostname in vRealize Operations Manager to fit the new standard name.

The hostname change doesn't impact the normal functionality of vROPS and just requires a little offline.

 

Change hostname in vRealize Operations Manager

From your preferred browser enter the address of your vROPS Admin Console and log in.

To perform the hostname change, you must take the cluster offline before proceeding. From the main screen click on Take Offline.

operations manager 1

After some seconds the Cluster Status is reported as Offline.

operations manager 2

Now SSH the vROPS appliance and login as root. To update the hostname run this command:

# $VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/bin/sethostname.py <NewHostName>

operations manager 3

Type reboot the press Enter to reboot the appliance.

# reboot

operations manager 4

Login to vRealize Operations Manager Administration and click Bring Online to take the cluster online again.

operations manager 5

Wait until the Cluster Status is reported as Online.

operations manager 6

 

Correct the Node Address

Once the hostname has been changed successfully, SSH the vROPS appliance once again and login as root.

operations manager 7

Stop the vmware-casa service with the command:

# service vmware-casa stop

operations manager 8

Now edit the casa.db.script file with the following command:

# vi /storage/db/casa/webapp/hsqldb/casa.db.script

operations manager 9

Scroll down until you find the ip_address item and update the FQDN accordingly. Save the file when done.

operations manager 10

Start the vmware-casa service.

# service vmware-casa start

operations manager 11

Log into vRealize Operations Manager Administration and check the Node Address. It is now updated with the new FQDN.

operations manager 12

Additional info about vRealize Operations Manager can be found at VMware website.

signature

Leave a Reply