This example Deployment Plan performs these actions on all applicable Security Gateways:
getInformation.sh
, found on the Management Server in the /home/admin/
directory.This script:
/home/admin/log.txt
file on the remote Security GatewayExample script:
#!/bin/bash LOG_FILE="/home/admin/log.txt" cpstat -f policy >> $LOG_FILE cplic print -x >> $LOG_FILE exit 0
|
/home/admin/log.txt
from the remote Security Gateway and saves it in the /opt/CPcdt/information/
directory on the Management Server.Example XML file for this Deployment Plan:
<?xml version="1.0" encoding="UTF-8"?> <CDT_Deployment_Plan> <plan_settings> <name value="Get information from the gateways" /> <description value="Example deployment plan - run a script to get information" /> <update_cpuse value="true" /> </plan_settings>
<!-- The script 'getInformation.sh' redirects its output to the '/home/admin/log.txt' --> <execute_script path="/home/admin/getInformation.sh" /> <pull_file remote_path="/home/admin/log.txt" local_dir="/opt/CPcdt/information/" /> </CDT_Deployment_Plan> |