Change IP of vROPS Appliance 8.x (KB83294)

I had to change the IP of a vRealize Operations Manager 8.6 appliance and the given KB is somewhat overwhelming. I stripped it down for a single node deployment. You have to login via root shell and run:

#Stop CASA
service vmware-casa stop
#Change IP 
/opt/vmware/share/vami/vami_set_network eth0 STATICV4 ipv4_addr ipv4_netmask ipv4_gateway

#Backup old Config
cp /storage/db/casa/webapp/hsqldb/casa.db.script /tmp/
cp /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/data/ /tmp/
cp /usr/lib/vmware-vcops/user/conf/ /tmp/
cp /usr/lib/vmware-vcops/user/conf/ /tmp/
cp /usr/lib/vmware-vcops/user/conf/ /tmp/
cp /usr/lib/vmware-vcops/user/conf/persistence/ /tmp/
cp /usr/lib/vmware-vcops/user/conf/cassandra/cassandra.yaml /tmp/
cp /opt/vmware/etc/vami/ovfEnv.xml /tmp
cp /usr/lib/vmware-vcops/user/conf/ /tmp

#This replaces the IPs in the config files from to, adapt it to your settings
sed -i 's/' /storage/db/casa/webapp/hsqldb/casa.db.script
sed -i 's/' /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/data/
sed -i 's/' /usr/lib/vmware-vcops/user/conf/
sed -i 's/' /usr/lib/vmware-vcops/user/conf/ 
sed -i 's/' /usr/lib/vmware-vcops/user/conf/ 
sed -i 's/' /usr/lib/vmware-vcops/user/conf/persistence/ 
sed -i 's/' /usr/lib/vmware-vcops/user/conf/cassandra/cassandra.yaml 
sed -i 's/' /opt/vmware/etc/vami/ovfEnv.xml 
sed -i 's/' /usr/lib/vmware-vcops/user/conf/

service vmware-casa start

#Replace ipv4_addr to new address
$VMWARE_PYTHON_BIN /usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/bin/ --adminCS=/ipv4_addr/ > /dev/null 2>&1

Hope this helps.

Leave a Reply