You can use the vCenter Server Appliance Management Interface to migrate or upgrade 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 the vSphere Automation SDK for Python from 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 the README.md file in the deferhistoryimport directory and the Quick Start guide for vSphere Automation SDK for Python at https://github.com/vmware/vsphere-automation-sdk-python.

Verify that you have vCenter Server Appliance root credentials.

Verify that you opened the vCenter Server Appliance Management Interface of your target vCenter Server Appliance.

1

From the getting started page, run the Upgrade or Migrate wizard.

2

Select one of the options for Configuration and historical data.

You can import only events and tasks or import all historical data.

3

Select Import historical data in the background and complete all steps from the wizard.

4

Run the vc_import_history_sample.py sample after successful upgrade or migration.

Use the IP address of your source vCenter Server instance and the vCenter Server administrator credentials when you run the sample. You can use or skip the verification of the vCenter Server certificate. For example, you can use the following command.

vc_import_history_sample.py --server <IP_of_upgraded_or_migrated_instance> --username <admin_username> --password <admin_password> --skipverification