您可以使用 vSphere Replication 8.7 Configuration Import/Export Tool匯出 XML 檔案中的複寫組態資料。

必要條件

  • 確認您已安裝 Java 1.8.x 且已設定環境變數。
  • 確認您具有站台配對,並且 vSphere Replication 在受保護和復原站台上均正在執行。

程序

  1. 開啟命令 shell,導覽至 /opt/vmware/vr-impex-tool 目錄,然後執行下列命令。
    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

  2. 輸入 Lookup Service 的主機名稱或 IP 位址。
  3. 輸入連接埠號碼,或按 Enter (如果您使用預設連接埠)。
  4. 接受 SHA 指紋。
  5. 輸入本機 vCenter Server 執行個體的使用者名稱和密碼。
  6. 選取配對的 vSphere Replication 執行個體。
  7. 輸入遠端 vCenter Server 執行個體的使用者名稱和密碼。

範例

匯出傳出複寫的範例
 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.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:
administrator@vsphere.local
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':
administrator@vsphere.local
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.