While setting up the home lab for vRealize Operations Manager, we noticed that IP address for Master node was wrongly configured. We planned to change it as per our IP inventory. There are couple of steps that you need to follow to change the IPv4 configuration in vRealize Operations Manager. Please note that this is in Master node. However, you can do the same in other nodes as well.
To change the IP address of vRealize Operations Manager, you need to edit below files in vROps Appliance. Make sure that you don't miss even a single file out of the list below, else there will propelm while accessing the vROps environment using new IP address. Let's play with these files and see the complete process to change the IP address.
Access putty and run below commands. Wherever you find old IP, change it to new IP, that's the rule.
/opt/vmware/share/vami/vami_set_network eth0 STATICV4 NEW_IP SUBNET NEW DEFAULT_Gateway
Example: Your new IP is 192.168.0.115, then command will be as below.
Other commands that you need to run after configuring IPv4, are mentioned below.
ifconfig
Login to vROPs appliance console and check current IP configuration using "ifconfig" command.
/opt/vmware/share/vami/vami_set_network eth0 STATICV4 192.168.0.115 255.255.255.0 192.168.0.101
service vmware-casa stop
cp /storage/db/casa/webapp/hsqldb/casa.db.script /tmp/
vi /storage/db/casa/webapp/hsqldb/casa.db.script
Find "is_admin_node", and change the new IP address as showing in below figure.:wq!
service vmware-casa start
/usr/lib/vmware-vcopssuite/utilities/sliceConfiguration/data/roleState.properties
Change IP addresses to new IP wherever you are seeing old IP.
I have replaced IP in below screenshot.
:wq!
/usr/lib/vmware-vcops/user/conf/gemfire.properties
Change IP addresses to new IP wherever you are seeing old IP.
/usr/lib/vmware-vcops/user/conf/persistence/persistence.properties
Change IP addresses to new IP wherever you are seeing old IP.
Changed IP to New as showing in below highlighted figure.
/usr/lib/vmware-vcops/user/conf/gemfire.native.properties
Change IP as showing below.
/usr/lib/vmware-vcops/user/conf/gemfire.locator.properties