Print Download PDF Send Feedback

Previous

Next

Example 5 - Run a Script, Uninstall a Hotfix, Perform Upgrade, Install a Hotfix, Log and Send Email, Pull a File

This example Deployment Plan performs these actions on all applicable Security Gateways:

  1. Runs the script preScript.sh, found on the Security Management Server or Multi-Domain Security Management Server in the /home/admin/cdt/ directory. This script is not marked as critical.
  2. Uninstalls the CPUSE package of the R75.46 Jumbo Hotfix Accumulator.
  3. Imports and installs the CPUSE package for the R77.30 Major Upgrade (from /home/admin/R77.30_Install_and_Upgrade.tgz).

    On clusters, the Connectivity Upgrade is deactivated, because the value of the attribute "ConnectivityUpgrade" is "false".

  4. Adds a log entry and sends an email message noting that the installation has finished.
  5. Imports and installs the package for the R77.30 Hotfix2 (from /home/admin/R77.30_HF2.tgz).
  6. Pulls the file /home/admin/file_to_pull.txt from the Security Gateways and saves it in the /home/admin/ directory on the Security Management Server or Multi-Domain Security Management Server.

Example XML file for this Deployment Plan:

<?xml version="1.0" encoding="UTF-8"?>

<CDT_Deployment_Plan>

<plan_settings>

<name value="Example deployment plan" />

<description value="Example deployment plan - Run a script, uninstall a hotfix, perform upgrade, install a hotfix, log and send email, pull a file" />

<update_cpuse value="true" />

<connectivityupgrade value="false" />

</plan_settings>

 

<!-- Path to the script -->

<execute_script path="/home/admin/cdt/preScript.sh" iscritical="false" />

 

<!-- Use the CDT uninstall actions -->

<uninstall_cpuse_package filename="R75.46_JUMBO_HF.tgz" />

 

<!-- Use the CDT import and install actions to upgrade -->

<import_package path="/home/admin/R77.30_Install_and_Upgrade.tgz" />

<install_package path="/home/admin/R77.30_Install_and_Upgrade.tgz" />

 

<!-- Create a log -->

<log level="NORMAL" value="Finished installing major upgrade." />

 

<!-- Send an email -->

<send_email to="cdt.admin@checkpoint.com" subject="Major upgrade completed" body="Finished installation of R77.30 major upgrade, preparing to install R77.30 HF2." />

 

<!-- Use the CDT import and install actions -->

<import_package path="/home/admin/R77.30_HF2.tgz" />

<install_package path="/home/admin/R77.30_HF2.tgz" />

 

<!-- Path to file that needs to be pulled -->

<pull_file remote_path="/home/admin/file_to_pull.txt" local_dir="/home/admin/" />

</CDT_Deployment_Plan>