We use cookies on our website to ensure we provide you with the best experience on our website. By using our website, you agree to the use of cookies for analytics and personalized content.This website uses cookies. More Information
It seems like your browser didn't download the required fonts. Please revise your security settings and try again.
Barracuda CloudGen Firewall

This Firmware Version Is End-Of-Support

Documentation for this product is no longer updated. Please see https://campus.barracuda.com/doc/71862301/ for further information on our EoS policy.

CC Remote Execution Page

  • Last updated on

This article describes the functionalities of the Remote Execution page and provides a setup example. Remote execution can be used to execute nonrecurring tasks, such as the removal of unwanted files or the termination of processes etc., on several Barracuda NG Firewall boxes simultaneously and in a single administrative step. For this purpose, a collection of scripts is maintained at the Barracuda NG Control Center. These scripts can be edited, added, and removed by the administrator. To access the Remote Execution page on the Barracuda NG Control Center, open the CONTROL tab and click the Remote Execution icon in the ribbon bar.

In this article:

Information Display

In the Remote Execution window, information and configuration elements are divided into the following sections:

  • Task List – The task list in the upper section of the page shows all tasks that have been created for Barracuda NG Firewall boxes.
  • Objects Tab – The Objects tab allows you to create groups to simplify the remote execution process and displays the Barracuda NG Firewall boxes that are arraged as grouped objects.
  • Boxes Tab – This tab lists all Barracuda NG Firewalls that are managed by the Barracuda NG Control Center. From here, you can select your units for the remote execution process.
  • Scripts List – This section lists scripts and allows creation of scripts to be executed on Barracuda NG Firewall boxes.
  • Action Bars – Depending on the selected tab, the action bars provide a selection of options that might be required when creating a task.

remote_execution.png

Task List

The listing of tasks is divided into the following columns:

  • Box – The name of the Barracuda NG Firewall a task has been created for.
  • Cluster – The name of the cluster the box resides in.
  • Range ID – The name of the range the cluster and box belong to.
  • Box Icon – This column depicts the status of an executed task.
  • Box State – Displays the status of the Barracuda NG Firewall unit.
  • Script – This is the name of the script that is currently executed.
  • Info – This column lists additional information, such as IP address and short name.
  • Flags – Flags depict the current task state. The following states are available:
    • F – SSH failed (SSH-network connection or login failed)
    • G – Script failed (script returned a non-zero value)
    • D – Deleted (Box was removed from the CC)
    • U – Untrusted (Peer authentication check is disabled)
  • Priority – This is the assigned task priority. The following priorities are available:
    • 0 – High priority
    • 1 – Normal priority
    • 2 – Low priority
  • Execution Time – This is the time the task is currently running.
  • First Attempt – This column provides information about date and time the first execution attempt was started (syntax used is yyyy mm dd hh:mm:ss).
  • Last Try – This column informs about date and time when the last execution attempt was started (syntax used is yyyy mm dd hh:mm:ss).
  • Tries – This is the number of execution tries.
  • Reason – This is the failure reason in case the last execution attempt failed.

Scripts List

In the script list section on the bottom right of the page, scripts provided for execution on boxes can be created, modified, and deleted. Use the buttons from the action menu to perform the following operations:

  • New – Click this button to create a new script. Choose a name for the script and enter a sequence of bash commands to be executed.
  • Edit – Select a script and click this button to modify it.
  • Remove – Discards a script stored on the Barracuda NG Control Center.

A script that can be selected together with a box or a box group object has to exist before a task can be created.

Objects Tab

In the list section on the bottom left of the page, you can select groups of boxes for task execution. Under the Objects tab, multiple boxes can be combined to form group objects for quick task creation. Barracuda NG Control Center objects are saved to the Windows System Registry on the client PC. They can be exchanged between multiple clients by exporting and then importing them again.

Barracuda NG Control Center objects created on the Remote Execution page can also be used on the CC Firmware Update Page, and vice versa.

To create a new object, proceed as follows:

  1. Click New in the action menu of the Objects tab. This opens a new window that enables box selection: 
  2. Enter a name for the new object in the Object Name field. 
  3. Select all desired boxes by simultaneously pressing the shift/CTRL key and clicking a box. 
  4. Click Save Object to save the object. When reopening the object after it has been saved, the configuration window displays only the selected boxes. 
  5. Select the Show All Boxes checkbox to display a view that shows all available boxes. The boxes belonging to a saved object are highlighted.

The following buttons in the Edit Object window allow further actions:

If options are activated for use depends on the selected view (checkbox Show All Boxes can be selected) and if the object has already been saved.

  • Show Log – Displays a view of the box log file containing entries about the last executed task. Box log files are stored on the Barracuda NG Control Center. Their view can also be triggered by double-clicking a box entry in the list.
  • Clear Log – Clears a box log file’s contents. This should be done before executing a new task.
  • Remove Box – Removes the box from the saved object.
  • Reload Object – Refreshes the view to display boxes saved in the object only.
  • Create Copy – Creates a copy of an object already saved.

Boxes Tab

The Boxes tab displays a listing of all existing boxes on the Barracuda NG Control Center. When a box is selected, it is highlighted. Multiple boxes can be selected by simultaneous pressing of the shift/CTRL key and clicking on a box. The following detail information is covered in the box list: 

  • Box / Cluster / Range ID columns – These data sets describe the membership of the Barracuda NG Firewall, that is, its name and the names of cluster and range it belongs to.
  • Info – This column displays additional box information (IP address and short name).
  • Version – Displays the installed version number of the Barracuda NG Firewall.
Action Bars

The following action menu applies for both tabs in the box list:

Create Task – This button becomes active when a Box/Object/Script combination is chosen from the scripts and box lists. Task creation opens the Schedule Task window, allowing for detailed specification when and how the task should be executed. The following values can be specified within the Schedule Task configuration window: 

  • Box Authentication – The following two modes are available for selection:
    • Trusted (Validate Key)
    • Untrusted (Ignore Key) – The untrusted mode enables the update of boxes that are not known to the Barracuda NG Control Center. Untrusted updates can also be used on boxes in case problems with authentication keys arise. Otherwise, trusted mode should always be used.
  • Scheduling Mode – By default, tasks are scheduled for Immediate Execution. The option Delayed Execution activates the parameter Scheduled Time, where task execution time can be configured in detail.
  • Scheduled Time – These two fields require a scheduling time for task execution.
  • Priority – When multiple tasks are configured for execution, the priority setting determines the execution succession. You can select Low, Normal, or High priority.

The following action menu only applies to the Boxes tab: 

  • Show Log – Displays a view of the box log file containing entries about the last executed task. Box log files are stored on the CC. Their view can also be triggered by double-clicking a box entry in the list.
  • Clear Log – Clears the log files of all selected boxes. This should be done before executing a new task.

The following action menu only applies for the Objects tab:

  • Edit – Clicking this button allows editing a selected object.
  • New – Creates a new object.
  • Remove – Removes the selected object.
  • Import – Imports an object into the Microsoft Windows System registry.
  • Export – Exports an object from the Microsoft Windows System registry. Box group objects are saved to Barracuda NG Control Center Object (*.mco) files.

Perform a Remote Execution Task

Execution of the script can be triggered by selecting a particular script and a Barracuda NG Firewall. During execution, all output of the script is directed to a box log file that is held at the Barracuda NG Control Center and can be reviewed by the administrator after execution. Consult these files for verbose output or error logging of the script. The following section describes the process of a remote execution task that cleans up the /tmp directory on selected Barracuda NG Firewalls.

Step 1. Create a Script
  1. Click the New button in the Script list window.
  2. Enter cleantmp as script name and insert the command sequence shown in the following screenprint.

sh_cleanup.png

Step 2. Create the Tasks
  1. Select all boxes on the Boxes tab in the Box list window and the cleantmp script in the Script list window simultaneously.box_exec.png
  2. Click Create Task.
  3. Schedule the tasks for Immediate Execution in the Schedule Task window.

The newly created tasks appear as entries with a green indicator (see following screenprint) and disappear as soon as the task is finished.

task_list.png

If a task fails, the corresponding entry remains in the task list and is shown with a red indicator. Look at the Reason column for an explanation of the failure.

Step 4. Review the Log Files

Double-click on the Barracuda NG Firewalls to view the log files and check if the desired actions have been taken.

Step 5. Reschedule or Delete Failed Tasks

To reschedule or delete a task, right-click it and select Reschedule or Delete Task from the context menu.

Popular Scripts

NameContentFunction
wipeevent

rm - f
/var/phion/event/eventd.db

Simultaneously clears all events from the selected Barracuda NG Firewall(s).

relcheck

/etc/phion/bin/phionRelCheck

Performs a release check on newly installed Barracuda NG Firewalls.

redbutton

/opt/phion/bin/phionctrl shutdown

Initiates an emergency stop on the selected Barracuda NG Firewall(s).

Last updated on