This file can be used at any time – including prior to the installation of JetStream DR software.

  • When executed at the protected site, this script reads the cpt_input.yml or cpt_input_lite.yml file and scans the vSphere environment to generate a resource recommendation and protection plan files.
  • When executed at the recovery site, this script scans the object store and generates protection plan files.


Syntax

cpt.py -f <cpt_input.yml> -m <mode> --vc-user <vc_user> --vc-pwd <vc_passwd> -o <output-dir>


Notes

-f: Denotes the input file cpt_input.yml and is required.

-m: Denotes the operating mode and is required. Values can be:

protected: Used at the protected site. Produces three output files: resource_recommendation.txt,  start_protection_plan_auto_gen.yml and optionally cfo_plan_auto_gen.yml

resources_check: Used at protected site to get resource consumption metrics. Produces the output file: resource.txt

recovery_fo: Used at the recovery site. Produces the output file: failover_plan_auto_gen.yml.

recovery_fb: Used at the protected site. Produces the output file: failback_plan_auto_gen.yml.

--vc-user: Denotes the vCenter Server username.

--vc-pwd: Denotes the vCenter Server password. This is an optional command line input (to be used with scripts). If not included, the user will be prompted to enter the password during execution.

-o: Denotes the directory where output files will be saved. This parameter is optional.


Example

  • Generate an SPP file and a CFO plan file at the protected site:

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

  • Generate a resource.txt file at the protected site:

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

  • Generate an FOP file at the recovery site:

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

  • Generate a FBP file at the protected site:

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