This article provides steps to change a node hostname in Aria Operations.
root$VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/bin/sethostname.py NewHostNameNewHostName is the hostname you want to use
To change the Cloud Proxy hostname in Aria Operations:
1. SSH into the Cloud Proxy as root.
2. 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.
3. Restart the node from vCenter.
Note: If the hostname fails to update after a restart, follow Restoring the vApp properties in VMware Aria Operations 8.12 and Below or Restoring vApp properties in VMware Aria Operations 8.14 and Later and try steps 1-3 again.
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:
service vmware-casa stopcasa.db.script file, by running this command:cp /storage/db/casa/webapp/hsqldb/casa.db.script /tmp/casa.db.script.old/storage/db/casa/webapp/hsqldb/casa.db.script file using a text editor.ip_address field, and replace it with the new hostname.service vmware-casa start