<?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 Re: Python tool for exporting/importing a policy package or parts of it in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41139#M2868</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;I tried reproducing your first and second problems, but couldn't. Make sure you are on the latest version of the tool (clone it from the&amp;nbsp;GitHub link above). If the problem persists, please reply with more details so I can reproduce the problem on my side.&lt;/P&gt;&lt;P&gt;This tool works for exporting/importing from R80.10 machines to R80.10 machines, nothing before, as there is no API support. So you can't export from or import to&amp;nbsp;R77.20 machines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Sep 2017 08:38:17 GMT</pubDate>
    <dc:creator>Shoham_Halevi</dc:creator>
    <dc:date>2017-09-18T08:38:17Z</dc:date>
    <item>
      <title>Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829</link>
      <description>&lt;H2&gt;Overview&lt;/H2&gt;
&lt;P&gt;ExportImportPolicyPackage tool enables you to export a policy package from a R80.x management database to a .tar.gz file, which can then be imported into any other R8x management database.&lt;/P&gt;
&lt;P&gt;This tool can be used for backups, database transfers, testing, and more.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;In the case you are exporting a policy package from a CMA, please verify that a global policy was NOT assigned to that CMA.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;The tool doesn't support exporting a policy with global policy assigned!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The tool is referenced in&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk180923" target="_blank" rel="noopener"&gt;https://support.checkpoint.com/results/sk/sk180923&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Description&lt;/H2&gt;
&lt;P&gt;This tool enables you to export a policy package (Access Policy, Threat Policy or both) from a management server into a .tar.gz file.&lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;There are some types of objects that the script might not be able to export.&lt;BR /&gt;In such a case, an appropriate dummy object will be exported instead, and a message will be logged into the log files to notify you of this.&lt;BR /&gt;In the Check Point SmartConsole you can easily replace each of these objects by searching "export_error" in the search field, see where each object is used, create the necessary object manually, then replace it.&lt;/P&gt;
&lt;H2&gt;Instructions&lt;/H2&gt;
&lt;P&gt;Download the latest version from our GitHub repository:&amp;nbsp;&lt;A class="link-titled" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;First, make sure you have [2.7.9 &amp;lt;= Python &amp;lt;= 2.7.14] installed on the machine running the script.&lt;BR /&gt;To export a package, run the import_export_package.py script. An interactive menu will guide you the rest of the way.&lt;BR /&gt;Command line flags may also be set in order to skip some or all of the menu.&lt;BR /&gt;&lt;STRONG&gt;A lot more details can of course be accessed with the [-h] option. This option also prints the current version of the tool.&lt;/STRONG&gt;&lt;/P&gt;
&lt;H2&gt;Limitations&lt;/H2&gt;
&lt;P&gt;This export/import script does not gather all data from a given management server/CMA.&lt;BR /&gt;In general, it is limited by the R8x Management APIs available on your version.&lt;BR /&gt;Specifically, this means:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;CMAs with a Global Policy assigned cannot be exported
&lt;UL&gt;
&lt;LI&gt;Workaround: unassign the Global Policy prior to export&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Gateway/Cluster objects have to be recreated
&lt;UL&gt;
&lt;LI&gt;Placeholder objects will&amp;nbsp;be created&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;UserCheck messages have to be recreated
&lt;UL&gt;
&lt;LI&gt;Placeholder objects will&amp;nbsp;be created&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;The Internal Certificate Authority will not be copied. This means:
&lt;UL&gt;
&lt;LI&gt;Re-establishing SIC with the appropriate gateways&lt;/LI&gt;
&lt;LI&gt;Re-generating VPN certificates&lt;/LI&gt;
&lt;LI&gt;Manually recreating HTTPS Inspection and DLP Rules&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Other objects not currently readable/writable via the R8x API will not be copied&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;Tested on version&lt;/H2&gt;
&lt;P&gt;R8x&lt;BR /&gt;Releases earlier than R80 lack the necessary API support and are not supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: inherit; font-family: inherit; font-size: 30px;"&gt;Source Code Availability&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The source code is available through GitHub:&amp;nbsp;&lt;A class="link-titled" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;FAQ&lt;/H2&gt;
&lt;P&gt;Replies to this thread have locked.&lt;BR /&gt;Please refer to the FAQ below before you create a new post with your question.&lt;/P&gt;
&lt;H4&gt;When I run this tool, I get the message: APIResponse received a response which is not a valid JSON.&lt;/H4&gt;
&lt;P&gt;This most likely means you haven't enabled the API server yet.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/m-p/32641" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/m-p/32641&lt;/A&gt;&lt;/P&gt;
&lt;H4&gt;I get an error message related to server fingerprint&lt;/H4&gt;
&lt;P&gt;Use the --unsafe option to ignore this error.&lt;/P&gt;
&lt;H4&gt;Can this tool export more than one policy package at a time?&lt;/H4&gt;
&lt;P&gt;Not currently, but you could call the tool in a script multiple times.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 20:30:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829</guid>
      <dc:creator>Inbar_Moskovich</dc:creator>
      <dc:date>2025-02-26T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41129#M2858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This source code is now an open source on GitHub repository:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage"&gt;GitHub - CheckPoint-APIs-Team/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Aug 2017 13:04:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41129#M2858</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-08-27T13:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41130#M2859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to export all packages from 1 domain instead of exporting each package 1 by 1?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 05:21:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41130#M2859</guid>
      <dc:creator>Julien_Tissot</dc:creator>
      <dc:date>2017-08-30T05:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41131#M2860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment no, but it might be added in the near future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 06:21:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41131#M2860</guid>
      <dc:creator>Adam_Galmor</dc:creator>
      <dc:date>2017-08-30T06:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41132#M2861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have an error when there is a special character (in my case 'é' or 'è' or others) in the rule name. Is there a way to just ignore this character but to let the export continue? The logs are attached&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Retrieved 384 out of 384 rules (100%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "import_export_package.py", line 44, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; export_package(client, args)&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_package.py", line 38, in export_package&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = export_access_rulebase(access_layer["name"], client, timestamp, tar_file)&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_access_rulebase.py", line 16, in export_access_rulebase&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; get_query_rulebase_data(client, "access-rulebase", {"name": layer})&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_objects.py", line 122, in get_query_rulebase_data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rulebase_item else "???", rule["name"] if "name" in rule else "")&lt;BR /&gt;UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 15:03:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41132#M2861</guid>
      <dc:creator>Julien_Tissot</dc:creator>
      <dc:date>2017-08-30T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41133#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to make&amp;nbsp;an export by running&amp;nbsp;this utility but don't get what should I put as the package name, because from what I'm seeing it's not the&amp;nbsp;the name that the policy has on the SMS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 16:48:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41133#M2862</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-11T16:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41134#M2863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien,&lt;/P&gt;&lt;P&gt;Our team will check this problem and update the community once resolved.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:11:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41134#M2863</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-09-12T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41135#M2864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Our team will check this problem and update the community once resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robert.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:13:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41135#M2864</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-09-12T09:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41136#M2865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;You're supposed to put the name of the policy package as seen here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image of &amp;quot;Manage Policy packages&amp;quot; screen" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/58512_SmartConsole_2017-09-12_15-13-45.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't help, please explain further what you are trying to do and how, and what is the output of the tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 12:17:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41136#M2865</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-12T12:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41137#M2866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien,&lt;/P&gt;&lt;P&gt;The issue should be fixed now, reclone the repo and try again.&lt;/P&gt;&lt;P&gt;If there are any further issues, please tell us.&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:26:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41137#M2866</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-13T09:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41138#M2867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adam and guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did some testing and here are my findings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 1:&lt;/P&gt;&lt;P&gt;not possible to import objects with tags, looks its a problem with exported data and parameters tags.0.X&lt;/P&gt;&lt;P&gt;debug msg: &lt;BR /&gt;Failed to import network with name [net_SIP-provider-broadsoft_XXXXX_21]. Error: Invalid parameter for [tags]. Invalid value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;json data: &lt;BR /&gt; {&lt;BR /&gt; "subnet4": "XXX", &lt;BR /&gt; "nat-settings.auto-rule": false, &lt;BR /&gt; "color": "black", &lt;BR /&gt; "comments": "", &lt;BR /&gt; "name": "net_SIP-provider-broadsoft_XXX", &lt;BR /&gt; "broadcast": "allow", &lt;BR /&gt; "tags.0.name": "PUBLIC-INTERNET-LAB", &lt;BR /&gt; "mask-length4": 21, &lt;BR /&gt; "tags.0.comments": "", &lt;BR /&gt; "tags.0.color": "black", &lt;BR /&gt; "tags.0.type": "tag"&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;csv data:&lt;BR /&gt;broadcast,color,comments,mask-length4,mask-length6,name,nat-settings.auto-rule,nat-settings.hide-behind,nat-settings.install-on,nat-settings.ipv4-address,nat-settings.ipv6-address,nat-settings.method,subnet4,subnet6,tags.0.color,tags.0.comments,tags.0.name,tags.0.type,tags.1.color,tags.1.comments,tags.1.name,tags.1.type&lt;BR /&gt;allow,black,,21,,net_SIP-provider-broadsoft_x.x.x.x_21,false,,,,,,x.x.x.X,,black,,PUBLIC-INTERNET-LAB,tag,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;####&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case2:&lt;/P&gt;&lt;P&gt;having two ordered layers Network and App on source mgmt - in Network layer I have rules where are defined inline layers - looks code does not count with this and all inline layers are loaded as ordered layers&lt;/P&gt;&lt;P&gt;debug msg:&lt;/P&gt;&lt;P&gt;IN ad OUT rules are defined with action inline layer&lt;BR /&gt;Failed to import access-rule with name [INT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [OUT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [INT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [OUT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###&lt;/P&gt;&lt;P&gt;case3:&lt;/P&gt;&lt;P&gt;data export/import for non r80.10 gw is bad, I have few 1450 boxes -77.20 emdededGaia and look for definition below in json -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{&lt;BR /&gt; "bladesInfo.1.sortOrder": 3, &lt;BR /&gt; "versionName": "R77.20", &lt;BR /&gt; "bladesInfo.4.comments": null, &lt;BR /&gt; "ipv4-address": "81.91.220.11", &lt;BR /&gt; "bladesInfo.5.sortOrder": 14, &lt;BR /&gt; "bladesInfo.6.sortOrder": 15, &lt;BR /&gt; "bladesInfo.5.display-name": "IPS", &lt;BR /&gt; "bladesInfo.3.comments": null, &lt;BR /&gt; "bladesInfo.6.comments": null, &lt;BR /&gt; "bladesInfo.1.customFields": null, &lt;BR /&gt; "bladesInfo.5.bladeCategory": "threat blades", &lt;BR /&gt; "bladesInfo.6.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.7.comments": null, &lt;BR /&gt; "bladesInfo.3.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.5.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.1.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.7.bladeCategory": "threat blades", &lt;BR /&gt; "bladesInfo.4.display-name": "QoS", &lt;BR /&gt; "name": "partial_export_error_simple-gateway_86fc2467-e0a1-4db3-8efc-c50996c4ccf4_XXX", &lt;BR /&gt; "bladesInfo.0.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.5.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.0.customFields": null, &lt;BR /&gt; "bladesInfo.4.name": null, &lt;BR /&gt; "bladesInfo.3.bladeState.changeable": false, &lt;BR /&gt; "macAddress": "", &lt;BR /&gt; "sicExists": true, &lt;BR /&gt; "bladesInfo.4.sortOrder": 9, &lt;BR /&gt; "bladesInfo.7.display-name": "Anti-Virus", &lt;BR /&gt; "bladesInfo.0.sortOrder": 0, &lt;BR /&gt; "bladesInfo.2.bladeState.changeable": false, &lt;BR /&gt; "accessLicense": false, &lt;BR /&gt; "bladesInfo.3.bladeState.activationState": "on", &lt;BR /&gt; "comments": "", &lt;BR /&gt; "bladesInfo.5.comments": null, &lt;BR /&gt; "bladesInfo.7.customFields": null, &lt;BR /&gt; "bladesInfo.2.comments": null, &lt;BR /&gt; "bladesInfo.6.name": null, &lt;BR /&gt; "bladesInfo.1.name": null, &lt;BR /&gt; "bladesInfo.5.customFields": null, &lt;BR /&gt; "bladesInfo.7.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.6.customFields": null, &lt;BR /&gt; "osName": "Gaia Embedded", &lt;BR /&gt; "bladesInfo.0.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.3.customFields": null, &lt;BR /&gt; "bladesInfo.7.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.7.sortOrder": 16, &lt;BR /&gt; "bladesInfo.4.customFields": null, &lt;BR /&gt; "color": "black", &lt;BR /&gt; "bladesInfo.6.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.1.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.4.bladeState.changeable": false, &lt;BR /&gt; "connectionState": "communicating", &lt;BR /&gt; "primaryManagement": false, &lt;BR /&gt; "bladesInfo.4.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.4.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.7.name": null, &lt;BR /&gt; "bladesInfo.3.name": null, &lt;BR /&gt; "bladesInfo.1.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.2.sortOrder": 4, &lt;BR /&gt; "natSummaryText": "None", &lt;BR /&gt; "customFields": null, &lt;BR /&gt; "bladesInfo.2.display-name": "URL Filtering", &lt;BR /&gt; "bladesInfo.1.display-name": "Application Control", &lt;BR /&gt; "proxyAddress": "Default Proxy Settings", &lt;BR /&gt; "bladesInfo.3.sortOrder": 7, &lt;BR /&gt; "bladesInfo.2.customFields": null, &lt;BR /&gt; "bladesInfo.3.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.2.name": null, &lt;BR /&gt; "bladesInfo.6.display-name": "Anti-Bot", &lt;BR /&gt; "bladesInfo.6.bladeCategory": "threat blades", &lt;BR /&gt; "overallStatus": true, &lt;BR /&gt; "bladesInfo.0.display-name": "Firewall", &lt;BR /&gt; "bladesInfo.0.name": null, &lt;BR /&gt; "bladesInfo.5.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.2.bladeState.valid": false, &lt;BR /&gt; "licenseSKU": "CPSG-EVAL-P1207-30/1", &lt;BR /&gt; "bladesInfo.6.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.2.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.4.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.1.bladeCategory": "access blades", &lt;BR /&gt; "bladeMgmtWorkflowOn": false, &lt;BR /&gt; "bladesInfo.2.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.5.name": null, &lt;BR /&gt; "bladesInfo.0.bladeCategory": "access blades", &lt;BR /&gt; "display-name": "", &lt;BR /&gt; "bladesInfo.3.display-name": "Identity Awareness", &lt;BR /&gt; "bladesInfo.0.comments": null, &lt;BR /&gt; "hwName": "1100 Appliances", &lt;BR /&gt; "bladesInfo.0.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.7.bladeState.valid": false, &lt;BR /&gt; "ipv6-address": "", &lt;BR /&gt; "bladesInfo.1.comments": null, &lt;BR /&gt; "threatLicense": false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example "hwName": "1100 Appliances" does not seems to be correct &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;BR /&gt;1450 are not imported and I have these logs:&lt;BR /&gt;Failed to import simple-gateway with name [partial_export_error_simple-gateway_d992da76-783b-4f50-ae1f-327701158bf0_XXX]. Error: Unrecognized parameter [natSummaryText]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:14:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41138#M2867</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2017-09-15T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41139#M2868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;I tried reproducing your first and second problems, but couldn't. Make sure you are on the latest version of the tool (clone it from the&amp;nbsp;GitHub link above). If the problem persists, please reply with more details so I can reproduce the problem on my side.&lt;/P&gt;&lt;P&gt;This tool works for exporting/importing from R80.10 machines to R80.10 machines, nothing before, as there is no API support. So you can't export from or import to&amp;nbsp;R77.20 machines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 08:38:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41139#M2868</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-18T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41140#M2869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have latest version.. is there a way how I can share with you exported data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand its for exporting from/to R80.10 machine, but event R80.10 mgmt can orchestrate r77.x gateways.. specially 1400 boxes could be there since its just 77.20.x.x or something like that &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;and those machines are normally in R80.10 database &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/laugh.png" /&gt;&amp;nbsp;so why they should not be exported to another R80.10 machine?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:02:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41140#M2869</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2017-09-18T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41141#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! it&amp;nbsp;seems&amp;nbsp;I had wrong&amp;nbsp;typed the policy name many times!&amp;nbsp;&lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/alert.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:52:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41141#M2870</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-25T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41142#M2871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, resolved, package name was a typo.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:53:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41142#M2871</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-25T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41147#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not successful with the tool. Trying to export the configuration from R80.10 mgmt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;python import_export_package.py -m x.x.x.x -op export -n Lab -o conf.out -u xxxxyyyyyy -p xxxxyyyyy --all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "import_export_package.py", line 30, in &amp;lt;module&amp;gt;&lt;BR /&gt; payload={"read-only": "true" if args.operation == "export" else "false"})&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 154, in login&lt;BR /&gt; login_res = self.api_call("login", credentials)&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 225, in api_call&lt;BR /&gt; self.check_fingerprint()&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 522, in check_fingerprint&lt;BR /&gt; server_fingerprint = self.get_server_fingerprint()&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 414, in get_server_fingerprint&lt;BR /&gt; context = ssl.create_default_context()&lt;BR /&gt;AttributeError: 'module' object has no attribute 'create_default_context'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:05:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41147#M2876</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-10-25T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41148#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of python are you using?&lt;/P&gt;&lt;P&gt;It should be at least 2.7.9...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 09:16:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41148#M2877</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-11-02T09:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41149#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2.7.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:24:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41149#M2878</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-06T12:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41150#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to resolve the issue. First I tried with python 2.7.9. and didn't get the error message anymore, but got this one:&lt;/P&gt;&lt;P&gt;Login to management server failed. lib::APIResponse&lt;BR /&gt;{&lt;BR /&gt; "data": null,&lt;BR /&gt; "error_message": "APIResponse received a response which is not a valid JSON.",&lt;BR /&gt; "res_obj": {},&lt;BR /&gt; "status_code": 403,&lt;BR /&gt; "success": false&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was to enable API access from all IP's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 11:10:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41150#M2879</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-07T11:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41151#M2880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that the export is done, does anyone have a&amp;nbsp;suggestion for a bulk rename of the objects/networks before importing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I can't seem to find NAT rules in the export files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 11:11:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41151#M2880</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-07T11:11:54Z</dc:date>
    </item>
  </channel>
</rss>

