The vSphere Replication 8.3 Configuration Import/Export Tool includes different options that you can use to import or export configuration data.

Table 1. vSphere Replication 8.3 Configuration Import/Export Tool Options
Option Description
--export Required when doing an export. Cannot be used together with --import.
--properties Path to the properties file to load when automating the use of the tool.
--exportProperties Used to start an export by using a properties file.
--exportInteractive Used to start an export interactively with prompts for the required information.
--exportPath Used to specify the directory in which to create the exported file. When the directory is not specified, the file is exported in the location of the import/export tool.
--import Required when importing configuration data. Cannot be used together with --export.
--importInteractive Used to start an import interactively with prompts for the required information.
--importProperties Used to start an import by using a properties file.
--path Used for importing data. Path to the previously exported file.
--lspp The Platform Services Controller address. Can be an IP address or FQDN. For vSphere Replication, it must match the lookup.service.address property.
--port <[1, 2147483647]> The port number for the Lookup Service. The default value is 443.
--localVrName The name of the local vSphere Replication Management server. It must match the local.vr.name property.
--remoteVrName The name of the remote vSphere Replication Management server. It must match the remote.vr.name property.
--localAuthCredsUsername The user name for the local vCenter Server.
--localAuthCredsPass The password for the local vCenter Server.
--remoteAuthCredsUsername The user name for the remote vCenter Server.
--remoteAuthCredsPass The password for the remote vCenter Server.
--format Used to make the exported XML file better formatted and human-readable. The --format option significantly increases the file size.
Sample Commands with Properties File
java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --format --exportProperties=C:\Users\Administrator\Downloads\impex\sample.properties --exportPath=C:\Users\Administrator\Downloads\impex\
java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --importProperties=C:\Users\Administrator\Downloads\impex\sample.properties --path=C:\Users\Administrator\Downloads\impex\sample.xml
Sample Properties File
lookup.service.address=10.193.15.152
local.auth.credentials.vc.username=administrator@vsphere.local
local.auth.credentials.vc.password=Admin!23
remote.auth.credentials.vc.username=administrator@vsphere.local
remote.auth.credentials.vc.password=Admin!23
local.vr.name=sc2-rdops-vm08-dhcp-15-152.eng.vmware.com
#local.srm.name=sc-rdops-vm12-dhcp-104-58.eng.vmware.com
remote.vr.name=sc-rdops-vm12-dhcp-109-104.eng.vmware.com
format=true
Sample Commands in Interactive Mode
java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --exportInteractive
java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --importInteractive
Sample of Using Interactive Mode
C:\Users\Administrator>java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --exportInteractive
***Copyright (c) 2018-2019 VMware, Inc. All rights reserved.***
Initiating CMD interaction.
Enter host name or IP address of a Lookup Service:10.193.15.152
Enter port (or press Enter in case you use the default - 443):
Host sc2-rdops-vm08-dhcp-15-152.eng.vmware.com has untrusted certificate with SHA-1 Thumbprint: 82:CF:58:F2:E7:C6:A1:4C:
89:FC:7B:05:31:DD:13:00:28:21:DA:F3 .
Accept thumbprint? (y/n):y
Enter username for sc2-rdops-vm08-dhcp-15-152.eng.vmware.com:administrator@vsphere.local
Enter password for sc2-rdops-vm08-dhcp-15-152.eng.vmware.com:
Establishing connection...
Available VR servers:
[0] sc-rdops-vm12-dhcp-109-104.eng.vmware.com
[1] sc2-rdops-vm08-dhcp-15-152.eng.vmware.com
0
One VR server found: sc2-rdops-vm08-dhcp-15-152.eng.vmware.com
Enter username for pair site 'sc-rdops-vm12-dhcp-109-104.eng.vmware.com':administrator@vsphere.local
Enter password for pair site 'sc-rdops-vm12-dhcp-109-104.eng.vmware.com':
Collecting data...
Starting export...
2019-10-30 04:21:18,464 DEBUG - VR inventory export started.
2019-10-30 04:21:18,548 DEBUG - Replication groups export started.
2019-10-30 04:21:18,585 DEBUG - VR inventory export ended.
2019-10-30 04:21:19,228 DEBUG - Replication groups export ended.
Writing to file started.
Writing to file finished.
Export ended successfully.
Sample of Using Commands without Properties File
java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --export --localVrName=sc2-rdops-vm08-dhcp-15-152.eng.vmware.com --remoteVrName=sc-rdops-vm12-dhcp-109-104.eng.vmware.com --lspp=10.193.15.152 --format --exportPath=C:\Users\Administrator\Downloads\impex\ --localAuthCredsUsername=administrator@vsphere.local --remoteAuthCredsUsername=administrator@vsphere.local --localAuthCredsPass=***** --remoteAuthCredsPass=*****
Sample of Using Commands without Properties File
C:\Users\Administrator>java -jar C:\Users\Administrator\Downloads\impex\vr-import-export-tool-8.3.0.jar --export --localVrName=sc2-rdops-vm08-dhcp-15-152.eng.vmware.com --remoteVrName=sc-rdops-vm12-dhcp-109-104.eng.vmware.com --lspp=10.193.15.152 --format --exportPath=C:\Users\Administrator\Downloads\impex\ --localAuthCredsUsername=administrator@vsphere.local --remoteAuthCredsUsername=administrator@vsphere.local --localAuthCredsPass=***** --remoteAuthCredsPass=*****
***Copyright (c) 2018-2019 VMware, Inc. All rights reserved.***
Initiating CMD interaction.
Establishing connection...
Collecting data...
Starting export...
2019-10-30 04:28:54,426 DEBUG - VR inventory export started.
2019-10-30 04:28:54,508 DEBUG - Replication groups export started.
2019-10-30 04:28:54,543 DEBUG - VR inventory export ended.
2019-10-30 04:28:55,230 DEBUG - Replication groups export ended.
Writing to file started.
Writing to file finished.
Export ended successfully.