使用 vSphere Replication 8.5 Configuration Import/Export Tool可将复制配置数据导出到 XML 文件中。

前提条件

  • 确认已安装 Java 1.8.x 且已配置环境变量。
  • 确认具有一个站点对,在受保护站点和恢复站点上均运行 Site Recovery Manager

过程

  1. 下载 vSphere Replication 8.5 Configuration Import/Export Tool .zip
  2. 从存档中提取该工具。
  3. 打开命令 shell,导航到将该工具提取到的文件夹,然后运行以下命令。
    java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive
    为了提高 XML 文件的可读性,请添加 format 选项。添加 format 选项会显著增加 XML 文件的大小。

    java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive --format

  4. 输入 Lookup Service 的主机名或 IP 地址。
  5. 输入端口号或者按 Enter 键(使用默认端口时)。
  6. 接受 SHA-1 指纹。
  7. 输入本地 vCenter Server 实例的用户名和密码。
  8. 选择配对的 vSphere Replication 实例。
  9. 输入远程 vCenter Server 实例的用户名和密码。

示例

导出出站复制的示例
 java -jar /opt/vmware/vr-impex-tool/vr-impex-tool-<version>.jar --exportInteractive --format --exportProperties=/opt/vmware/vr-impex-tool/sample.properties --exportPath=/opt/vmware/vr-impex-tool/
 ***Copyright (c) 2018-2019 VMware, Inc. All rights reserved.***
Initiating CMD interaction.
Enter host name or IP address of a Lookup Service:
10.92.228.236
Enter port (or press Enter in case you use the default - 443):

Host 10.92.228.236 has untrusted certificate with SHA-1 Thumbprint: 63:50:89:60:76:5C:78:C9:B0:1A:A6:B6:D0:08:D7:8E:31:46:BF:A7 .
Accept thumbprint? (y/n):
y
Enter username for wdc-rdops-vm09-dhcp-228-236.eng.vmware.com:
localAdmin
Enter password for wdc-rdops-vm09-dhcp-228-236.eng.vmware.com:
Establishing connection...
Available HMS servers:
[0] wdc-rdops-vm08-dhcp-221-15.eng.vmware.com
[1] wdc-rdops-vm09-dhcp-228-236.eng.vmware.com

0
One HMS server found: wdc-rdops-vm09-dhcp-228-236.eng.vmware.com
Enter username for pair site 'wdc-rdops-vm08-dhcp-221-15.eng.vmware.com':
remoteAdmin
Enter password for pair site 'wdc-rdops-vm08-dhcp-221-15.eng.vmware.com':
Collecting data...
Starting export...
2019-09-03 16:28:14,771 DEBUG - Hms inventory export started.
2019-09-03 16:28:14,993 DEBUG - Replication groups export started.
2019-09-03 16:28:15,627 DEBUG - Hms inventory export ended.
2019-09-03 16:28:23,680 DEBUG - Replication groups export ended.
Writing to file started.
Writing to file finished.
Export ended successfully.