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

How to change a node hostname in vRealize Operations Manager vApp based cluster (2108689)

  • 6 Ratings
Language Editions

Details

This article provides steps to change a node hostname in a vRealize Operations Manager vApp based cluster.

Solution

To change a node hostname in a VMware vRealize Operations Manager vApp based cluster:

Note: This procedure only works with data nodes or remote collector nodes that are configured with DHCP. 

VMware vRealize Operations Manager 6.0.x :

  1. Use the vRealize Operations Manager administrator interface to take the cluster offline.
  2. Log in to the console of the vRealize Operations Manager node.
  3. To prevent the vApp from updating the host file to the reverse DNS value when the node is restarted, remove the vami_setnetwork file by running this command:

    rm /opt/vmware/etc/vami/flags/vami_setnetwork

  4. Change the hostname by running this command:

    /opt/vmware/share/vami/vami_set_hostname new-hostname

  5. Restart the node.
  6. Use the vRealize Operations Manager administrator interface to bring the cluster online.

VMware vRealize Operations Manager 6.1.x and later:

  1. Log in to the vRealize Operations Manager admin UI.
  2. Take the cluster offline.
  3. Log in to the node as root.
  4. Update the hostname by running this command:

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

    Where NewHostName is the hostname you want to use.

  5. Restart the node.
  6. Use the vRealize Operations Manager admin UI to bring the cluster online.


Additional Information:

If the hostname was used when adding a node to the cluster, the entry needs to be updated in the casa.db.script file:
  1. Log in to VMware vRealize Operations Manager Master node as root through SSH or console.
  2. Stop the casa service, by running this command:

    service vmware-casa stop

  3. Back up the casa.db.script file,  by running this command:

    cp /storage/db/casa/webapp/hsqldb/casa.db.script /tmp/casa.db.script.old

  4. Open /storage/db/casa/webapp/hsqldb/casa.db.script file using a text editor.
  5. Search for any instance of the old hostname in the ip_address field, and replace it with the new hostname.
  6. Save and exit the file.
  7. Start the casa service by running this command:

    service vmware-casa start

  8. Repeat steps 1 to 7 on all non Remote Collector nodes in the cluster.

For translated versions of this article, see:

This Article Replaces

2102200

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

  • 6 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.
  • 6 Ratings
Actions
KB: