Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Inbar_Moskovich
Employee Alumnus
Employee Alumnus

Assign Install Policy Tool

Overview

The tool assigns a global policy to the local domains and installs polices on gateways in these domains according to the configuration file.

Description

The tool works according to the following steps:

  1. Assigns a global assignment on the domains that are mentioned in the configuration file.
  2. Installs a policy package which is mentioned in the configuration file to the installation targets.
  3. If  installation targets are not mentioned in the configuration file, the policy is installed on all the gateways on the management.
  4. Creates a report and sends it via mail to the recipient that appears in the configuration file.

Instructions

Follow the steps below:

     1. Unzip attached zip file on the management machine

     2. Edit config.json file according to your system and add to it:

    • The desired domains
    • Policy packages (with targets - optional).
    • Configure SMTP server with the port number

     3. Run the tool with the following command:  

    $MDS_FWDIR/Python/bin/python assign_install_policy.py

Code Version

Code version 1.0.0

Tested on version

R80, API version 1.0

NOTICE: By using this sample code you agree to terms and conditions in this Not authorized to view the specified document 1042

...

0 Kudos
0 Replies

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events