<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Assign Install Policy Tool in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Assign-Install-Policy-Tool/m-p/38885#M2363</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;Overview&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;The tool assigns a global policy to the local domains and installs polices on gateways in these domains according to the configuration file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;The tool works according to the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Assigns a global assignment on the domains that are mentioned in the configuration file.&lt;/LI&gt;&lt;LI&gt;Installs a policy package which is mentioned in the configuration file to the installation targets.&lt;/LI&gt;&lt;LI&gt;If&amp;nbsp; installation targets are not mentioned in the configuration file, the policy is installed on all the gateways on the management.&lt;/LI&gt;&lt;LI&gt;Creates a report and sends it via mail to the recipient that appears in the configuration file.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Instructions&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;Follow the steps below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Unzip attached zip file on the management machine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Edit config.json file according to your system an&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;d add to it:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;The desired domains &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;Policy packages (with targets - optional). &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;Configure SMTP server with the port number&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Run the tool with the following command: &lt;CODE&gt;&amp;nbsp; &lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $MDS_FWDIR/Python/bin/python assign_install_policy.py&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Code Version&lt;/H2&gt;&lt;P&gt;Code version 1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Tested on version&lt;/H2&gt;&lt;P&gt;R80, API version 1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13px; color: #ff0000;"&gt;&lt;STRONG&gt;NOTICE: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; color: #999999;"&gt;&lt;STRONG&gt;By using this sample code you agree to terms and conditions in this &lt;A href="https://community.checkpoint.com/docs/DOC-1042"&gt;Not authorized to view the specified document 1042&lt;/A&gt;​&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Jan 2017 08:31:38 GMT</pubDate>
    <dc:creator>Inbar_Moskovich</dc:creator>
    <dc:date>2017-01-02T08:31:38Z</dc:date>
    <item>
      <title>Assign Install Policy Tool</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Assign-Install-Policy-Tool/m-p/38885#M2363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;Overview&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="color: #333333;"&gt;The tool assigns a global policy to the local domains and installs polices on gateways in these domains according to the configuration file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;The tool works according to the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Assigns a global assignment on the domains that are mentioned in the configuration file.&lt;/LI&gt;&lt;LI&gt;Installs a policy package which is mentioned in the configuration file to the installation targets.&lt;/LI&gt;&lt;LI&gt;If&amp;nbsp; installation targets are not mentioned in the configuration file, the policy is installed on all the gateways on the management.&lt;/LI&gt;&lt;LI&gt;Creates a report and sends it via mail to the recipient that appears in the configuration file.&lt;/LI&gt;&lt;/OL&gt;&lt;H2&gt;Instructions&lt;/H2&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;Follow the steps below:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Unzip attached zip file on the management machine&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Edit config.json file according to your system an&lt;/SPAN&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;d add to it:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL style="list-style-type: disc;"&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;The desired domains &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;Policy packages (with targets - optional). &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 15.3333px; font-family: Helvetica, sans-serif;"&gt;Configure SMTP server with the port number&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Run the tool with the following command: &lt;CODE&gt;&amp;nbsp; &lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica, sans-serif; font-size: 15.3333px;"&gt;&lt;CODE&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $MDS_FWDIR/Python/bin/python assign_install_policy.py&lt;/CODE&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Code Version&lt;/H2&gt;&lt;P&gt;Code version 1.0.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Tested on version&lt;/H2&gt;&lt;P&gt;R80, API version 1.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13px; color: #ff0000;"&gt;&lt;STRONG&gt;NOTICE: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; color: #999999;"&gt;&lt;STRONG&gt;By using this sample code you agree to terms and conditions in this &lt;A href="https://community.checkpoint.com/docs/DOC-1042"&gt;Not authorized to view the specified document 1042&lt;/A&gt;​&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Jan 2017 08:31:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Assign-Install-Policy-Tool/m-p/38885#M2363</guid>
      <dc:creator>Inbar_Moskovich</dc:creator>
      <dc:date>2017-01-02T08:31:38Z</dc:date>
    </item>
  </channel>
</rss>

