Many times it’s not practical to modify the IP addresses of every individual VM as they are configured. Luckily VMware has provided a way to bulk upload IP addresses.
From an SRM server, open a command prompt and change the working directory to: c:Program FilesVMwareVMware vCenter Site Recovery Managerbin
NOTE: Path may be different depending on your install location.
Generate a .CSV file to edit your IP Addresses by running dr-ip-customizer.exe with the –cfg, –cmd –vc -i –out switches.
–cfg should be the location of the vmware-dr.xml file. –cmd should be “Generate”, –vc lists the vCenter server, and –out lists the location to generate the .csv file.
Example: dr-ip-customizer.exe –cfg “C:Program filesVMwareVMware vCenter Site Recovery ManagerConfigvmware-dr.xml” –cmd generate –vc FQDNofvCenter -i –out c:ipaddys.csv
Open the .csv file and fill out the information. Notice that there are two entries for the VM. This is because there are two vCenters and in order to do protection and fail back we need the IP Addresses for both sides.
Once the IP Address information is entered, run the customizer again with the –cmd “Apply” and –CSV file location.
Example: dr-ip-customizer.exe –cfg “C:Program filesVMwareVMware vCenter Site Recovery ManagerConfigvmware-dr.xml” –cmd apply –vc FQDNofvCenter -i –cmdc:ipaddys.csv
[…] SRM 5.5 Bulk IP Customization […]
You example and the command which you ran on the prompt do not match…
you are right sir !!!!
[…] UI with plugin for vSphere Web Client (finally) Rule-based management at subnet level dr-IP-customizer was a bit of hard work. You can now setup IP customisation rules via the web client on a per […]
Do we have to fill in the IP info for the protected site? We need to change the IP when it fails over, but when we fail back we want it to have the original IPs. Is it intelligent enough if we leave it empty for it to revert back to the original address on fail back?
If you are going to modify the IP address on failover, you should set the IP addresses for both sites so it will know what IP address to change it back to.
Eric, Is there a way to extract the current IPs or do we have to manually input line by line? There should be a way to extract the current IPs since this info should already be readily available as they are running in production.
Thank you for your help
You could do some powershell to search for the list of VMs, grab the IPs and export them to a list. That’s about the only way I know how to do that off the top of my head.
I have the requirement to have a different IP address scheme while performing the testing of Recovery Plans. Does anyone know if there is a way to automate the IP address change for testing on one subnet and have a different subnet for the actual failover plan.
Interesting article, thanks. I am looking for a method to change the IP addresses of Server 2012 Cluster and SQL VIP’s during failover, any ideas?
I think you’d need to look at scripting that with powershell.