Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This article applies to all JSDR software versions.

Changes can be made to Guest VMs after recovery by executing pre-scripts and post-scripts as part of runbook execution. Run-book scripts are custom scripts written in Python (.py) that can be created and applied by the customer based on their own specific requirements.

NOTE:
Info

Learn more about runbooks.
Runbook scripts reside on and are executed from the management server (MSA).

 Steps to Execute Runbook Scripts

  • Log in to the MSA and create a scripts folder under vme2 (/var/lib/vme2/).

  • Upload a pre-script and/or post-script to the scripts folder.

  • Make the uploaded scripts executable (Use the chmod +x option).

  • In the JetStream DR UI (Create Runbook Group workflow) indicate the locations of the scripts and any parameters necessary to run the scripts.

...

Info

Note: Script execution logs details can be reviewed from the MSA tasks logs.

...

  • Collect the sample script from the JetStream Software support team.

  • The script is written in Python and requires Python pyVmomi SDK module version (8.0.0.1.2) to be installed on the MSA or manually updated.

Info

Note: The script will not run correctly if the pyVmomi version is lower than (8.0.0.1.2).

  • To check the version of pyVmomi currently installed, run the command (#pip3 show pyvmomi).

  • If the version is incorrect, upgrade the module using the command (#pip3 install -U pyvmomi).

  • After placing the script in the correct folder and making it executable, run the help command to view its required parameters.

...