Export Live Site Recovery Configuration Data using command line
search cancel

Export Live Site Recovery Configuration Data using command line

book

Article ID: 435894

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

Symptoms:

The export.sh file is empty after upgrading to version 9.0.4.

Environment

VMware Live Recovery 9.0.4

Cause

If vSAN Data Protection is not used after the upgrade, the export.sh output will be empty, as pairing is not performed from the vSAN UI.

There are two impex tools: One for the SRM server and one for the HMS server (vSphere Replication). Only the SRM impex tool is supported in the DR UI, while the HMS impex tool is available via CLI only.

Resolution

Follow the steps below to generate the export file from the command line:

When you pair the SRMs from the UI, a service account is created for SRM and stored on the appliance at the following location: /opt/vmware/etc/vmware-dr/secrets/

The name should start with sa-XXXXX..... for the local service account and remote-sa-XXXXX.... for the remote one.

1) Log in to the  appliance as admin (Source Site).

2) su -

Enter the admin password.

3) cd /opt/vmware/etc/vmware-dr/secrets/

ls
 
4) Note down the local service account file name starting with sa-XXXXX and the remote service account starting with remote-sa-XXXXX.

4) Navigate to:

cd /opt/vmware/impex

Run:

java --add-opens=java.base/java.lang=ALL-UNNAMED -jar import-export.jar --exportInteractive

It will prompt for the hostname or IP address of the Lookup Service. Provide the Source vCenter IP address or FQDN.

Please enter the details as shown below:

Enter host name or IP address of a Lookup Service: x.x.x.x
 
Enter port (or press Enter to use the default - 443):

Host lvn-x-x-x-x.net has an untrusted certificate with SHA-1 Thumbprint: XX:YY: .
Accept thumbprint? (y/n): y

Use Service Account to log in on lvn-x-x-x-x.net? (y/n): y

Enter service account file path: /opt/vmware/etc/vmware-dr/secrets/sa-xxxxxxxxxx

Establishing connection...

One SRM server found: SITE-x-x-x-x.net

Use Service Account to log in on lvn-y-y-y-y.net? (y/n): y

Enter service account file path: /opt/vmware/etc/vmware-dr/secrets/remote-sa-xxxxx

2025-12-04 05:19:33,893 DEBUG - Srm inventory export started.
2025-12-04 05:19:33,978 DEBUG - Mappings export started.
2025-12-04 05:19:33,982 DEBUG - Placeholder export started.
2025-12-04 05:19:33,995 DEBUG - Array managers export started.
2025-12-04 05:19:34,009 DEBUG - Placeholder export ended.
2025-12-04 05:19:34,010 DEBUG - Protection group folders export started.
2025-12-04 05:19:34,012 DEBUG - Srm inventory export ended.
2025-12-04 05:19:34,026 DEBUG - Array managers export ended.
2025-12-04 05:19:34,028 DEBUG - Recovery plan folders export started.
2025-12-04 05:19:34,040 DEBUG - VM recovery settings export started.
2025-12-04 05:19:34,052 DEBUG - Recovery plan folders export ended.
2025-12-04 05:19:34,053 DEBUG - Advanced settings export started.
2025-12-04 05:19:34,071 DEBUG - Details export started.
2025-12-04 05:19:34,075 DEBUG - VM recovery settings export ended.
2025-12-04 05:19:34,096 DEBUG - Details export ended.
2025-12-04 05:19:34,099 DEBUG - Advanced settings export ended.
2025-12-04 05:19:34,129 DEBUG - Protection group folders export ended.
2025-12-04 05:19:34,325 DEBUG - Mappings export ended.

root@x-x-x-x [ /opt/vmware/impex ]#

The XML file will be generated under /opt/vmware/impex.