Execute Scripts

You can execute any script that is saved in Management Center in the Script Object list. Before executing a script, you can Preview a Script With Variables Replaced. This shows the script variables without committing them to a device and inadvertently causing a device configuration to change.
Scripts are automatically assumed to execute in configure mode on the ProxySG appliance. For scripts that use commands not in configure mode, exit configure mode before executing the script. Licensing commands are the exception, and cannot execute in configure mode. Example:
;;exit configure mode
exit
user-license queue
;;re-enter configure mode
configure terminal
Execute a Single Script
Direct from a Script
  1. Select
    Configuration > Scripts
    .
  2. Select a script object and then click
    Edit
    .
  3. To execute the script, click
    Execute on Device
    .
  4. Select a target device or device group. Click
    Execute
    .
  5. OR
  6. Select
    Edit
    and click the
    Editor
    tab. At times, administrators with the correct privileges want to execute a script immediately after updating a script. While in the rich text editor ensures that all edits have been saved and click
    Execute on Device
    . Select the device
    Target
    and click
    Execute
    .
    Each time you start a job manually, the
    Management Center
    displays a Job Progress dialog. To run the script in the background (no window) while you perform other tasks, click
    Continue in Background
    .
From a Job Operation
(Optional for all script executions) While the Job Progress dialog displays the script executing, click
more details
to view the
Output
,
Download as Text
, or
Close
the dialog.