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

Table 1. vSphere Replication 8.5 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 /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --exportProperties=/opt/vmware/vr-impex-tool/sample.properties --exportPath=/opt/vmware/vr-impex-tool/
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --format --importProperties=/opt/vmware/vr-impex-tool/sample.properties --importPath=/opt/vmware/vr-impex-tool/sample.xml
Sample Properties File
lookup.service.address=my.psc.address.com
local.auth.credentials.vc.username=localAdmin
local.auth.credentials.vc.password=localAdminSecretPass
remote.auth.credentials.vc.username=remoteAdmin
remote.auth.credentials.vc.password=remoteAdminSecretPass
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 /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --importInteractive
Sample of Using Interactive Mode
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.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:[email protected]
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':[email protected]
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=/opt/vmware/vr-impex-tool/ [email protected] [email protected] --localAuthCredsPass=***** --remoteAuthCredsPass=*****
Sample of Using Commands without Properties File
java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.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=/opt/vmware/vr-impex-tool/ [email protected] [email protected] --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.