Thursday, April 24, 2014

Using dr-ip-customizer.exe to bulk customize protected virtual machines in VMware SRM 5.x

I’ve noticed that I’ve received quite a few calls over the past year from clients asking me about how to properly use the dr-ip-customizer.exe executable on an SRM server to export an example CSV file, edit the file and re-import into their SRM environment to customize the IP addresses for the Protected Site and Recovery Site.  I personally don’t work with SRM that much and tend to forget the details so this post will serve as something I can reference to in the future.

First off, the following is a blog post that goes through the steps for the export and import of a CSV file that can be used to customize your SRM protected servers:

The most common call I get when people use this VMware blog post is that they receive the following error when trying to generate an example.csv file for them to edit:

C:\Program Files\VMware\VMware vCenter Site Recovery Manager\bin>dr-ip-customizer.exe -cfg ..\config\vmware-dr.xml -o c:\example.csv -cmd generate -vc

Input argument error: unknown option -c


  -h [ --help ]               Display usage info.

  --cfg arg                   Path to application XML configuration file.

  --cmd arg                   Command to execute:

                                apply: Applies the network customization

                                       settings from the input CSV file to the

                                       recovery plans on the SRM servers.

                                generate: Generates a basic CSV file for the

                                          all virtual machines in the recovery

                                          plans on the SRM servers.

                                drop: Removes vm recovery settings from VMs

                                      specified by the input CSV file.

  --csv arg                   Path to the CSV file.  Read as input for the

                              "apply" and "drop" commands.

  -o [ --out ] arg            Output CSV file to use for the "generate"

                              command.  Will overwrite any existing contents.

  --vc arg                    VMware vCenter Server hostname.  Can instead be

                              specified in the application configuration file

                              at "/Config/VCSERVER". For "apply" and "drop"

                              commands, use the same server that was used to

                              generate the input CSV. The VM Ids are different

                              at each site.

  -i [ --ignore-thumbprint ]  Ignore the server thumbprint confirmation prompt.

  -e [ --extra-dns-columns ]  Must be specified if the input CSV file contains

                              extra columns for DNS information.

  -v [ --verbose ]            Enable verbose output.

C:\Program Files\VMware\VMware vCenter Site Recovery Manager\bin>


I’m not exactly why but I think the editor of used in the blog post could have automatically changed the “--“ to ““:


The correct syntax for syntax is actually with two dashes / hyphens:

dr-ip-customizer.exe --cfg ..\config\vmware-dr.xml -o c:\example.csv --cmd generate --vc



A sample example.csv file will be generated that looks like this:


What I find with this example.csv file are the following:

1. Still needs quite a bit of manual work (creating lines)

2. It’s too bad this does not export settings you’ve configured from the GUI

With this example spreadsheet, you’ll need to duplicate the row for the Protected and Recovery site vCenter, change the Adapter ID to 1 and then configure your NIC configuration settings as shown below:


Once you’ve completed editing the spreadsheet, proceed to import it with the following command:

dr-ip-customizer.exe --cfg ..\config\vmware-dr.xml --csv c:\example.csv --cmd apply --vc


Anonymous said...

With havin so much written content do you ever run into any
issues of plagorism or copyright violation? My website has a lot of completely unique
content I've either authored myself or outsourced but it seems a lot of it is popping it up
all over the web without my permission. Do you know
any ways to help stop content from being stolen? I'd genuinely appreciate it.

Look into my blog post - arizona dui lawyer

otr said...

Work from home theory is fast gaining popularity because of the freedom and flexibility that comes with it. Since one is not bound by fixed working hours, they can schedule their work at the time when they feel most productive and convenient to them. Women & Men benefit a lot from this concept of work since they can balance their home and work perfectly. People mostly find that in this situation, their productivity is higher and stress levels lower. Those who like isolation and a tranquil work environment also tend to prefer this way of working. Today, with the kind of communication networks available, millions of people worldwide are considering this option.

Women & Men who want to be independent but cannot afford to leave their responsibilities at home aside will benefit a lot from this concept of work. It makes it easier to maintain a healthy balance between home and work. The family doesn't get neglected and you can get your work done too. You can thus effectively juggle home responsibilities with your career. Working from home is definitely a viable option but it also needs a lot of hard work and discipline. You have to make a time schedule for yourself and stick to it. There will be a time frame of course for any job you take up and you have to fulfill that project within that time frame.

There are many things that can be done working from home. A few of them is listed below that will give you a general idea about the benefits of this concept.

This is the most common and highly preferred job that Women & Men like doing. Since in today's competitive world both the parents have to work they need a secure place to leave behind their children who will take care of them and parents can also relax without being worried all the time. In this job you don't require any degree or qualifications. You only have to know how to take care of children. Parents are happy to pay handsome salary and you can also earn a lot without putting too much of an effort.

For those who have a garden or an open space at your disposal and are also interested in gardening can go for this method of earning money. If given proper time and efforts nursery business can flourish very well and you will earn handsomely. But just as all jobs establishing it will be a bit difficult but the end results are outstanding.

Freelance can be in different wings. Either you can be a freelance reporter or a freelance photographer. You can also do designing or be in the advertising field doing project on your own. Being independent and working independently will depend on your field of work and the availability of its worth in the market. If you like doing jewellery designing you can do that at home totally independently. You can also work on freelancing as a marketing executive working from home. Wanna know more, email us on and we will send you information on how you can actually work as a marketing freelancer.

Internet related work
This is a very vast field and here sky is the limit. All you need is a computer and Internet facility. Whatever field you are into work at home is perfect match in the software field. You can match your time according to your convenience and complete whatever projects you get. To learn more about how to work from home, contact us today on workfromhome.otr214427@gmail.comand our team will get you started on some excellent work from home projects.

Diet food
Since now a days Women & Men are more conscious of the food that they eat hence they prefer to have homemade low cal food and if you can start supplying low cal food to various offices then it will be a very good source of income and not too much of efforts. You can hire a few ladies who will help you out and this can be a good business.

Thus think over this concept and go ahead.

Anonymous said...


I see you have both protected and recovery site information in the CSV. So can I use that same CSV to apply it to the Protected site in the event of failover and I need to recover backwards (failback. I always thought you needed 2 different CSV, one for Prod and one for DR.