Use the Deferred Import
Sample
You can use the to migrate your
vCenter Server
instance
and to run the vc_import_history_sample.py
sample to pause and resume the
historical data import. - Verify that you cloned or downloaded thevSphere Automation SDK for Pythonfrom https://github.com/vmware/vsphere-automation-sdk-python.
- Verify that you set up a test environment. For information about the prerequisites and how to set up a test environment, see theREADME.mdfile in thedeferhistoryimportdirectory and the Quick Start guide forvSphere Automation SDK for Pythonat https://github.com/vmware/vsphere-automation-sdk-python.
- Verify that you havevCenter Serverroot credentials.
- Verify that you opened the of your targetvCenter Serverinstance.
- From the getting started page, run theMigratewizard.
- Select one of the options forConfiguration and historical data.You can import only events and tasks or import all historical data.
- SelectImport historical data in the backgroundand complete all steps from the wizard.
- Run thevc_import_history_sample.pysample after successful migration.Use the IP address of your sourcevCenter Serverinstance and thevCenter Serveradministrator credentials when you run the sample. You can use or skip the verification of thevCenter Servercertificate. For example, you can use the following command.vc_import_history_sample.py --server <IP_of_migrated_instance> --username <admin_username> --password <admin_password> --skipverification