The following script example workflow illustrates a typical sequence of how the CPT scripts might be used together:

# Generate resource recommendation for the protected site.

cpt.py -f cpt_input.yml -m protected --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp


# Start VM protection at the protected site.

run_SPP.py -s start_protection_plan.yml -w true --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp


# Get resource consumption metrics of the protected site.

cpt.py -f <cpt_input.yml> -m resources_check --msa-hostname <msa_host_name> --vc-pwd <vc_passwd> -o /tmp


# Start continuous failover protection of the Protected Domains at the recovery site.

run_CFO.py -f cfo_plan_auto_gen.yml --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp


# Generate a failover plan.

cpt.py -f cpt_input.yml -m recovery_fo --vc-user <vcenter_username> --vc-pwd vcenter_passwd> -o /tmp


# Run the failover plan.

run_FOP.py -f failover_plan_auto_gen.yml -n 2 -cn 1 --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp


# Generate a failback plan.

cpt.py -f cpt_input.yml -m recovery_fb --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp


# Run the failback plan.

run_FBP.py -f failback_plan_auto_gen.yml -n 3 --vc-user <vcenter_username> --vc-pwd <vcenter_passwd> -o /tmp