<?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: Export Policy using python in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54734#M3535</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have installed same. Attached screen shot.&lt;/P&gt;</description>
    <pubDate>Thu, 30 May 2019 13:26:38 GMT</pubDate>
    <dc:creator>rkalidh</dc:creator>
    <dc:date>2019-05-30T13:26:38Z</dc:date>
    <item>
      <title>Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54726#M3532</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good day!!.Am new to check point and am trying to automate few tasks in check point. As a part of it, would like to automate policy export of all check point firewalls and send in mail for monthly review.&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;: Export import package will help to export policies but when i run in python, am getting error as in attached screen shot.&amp;nbsp; Am sure that something is missed.&lt;/P&gt;&lt;P&gt;Please guide me if am not in right path.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 11:34:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54726#M3532</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-05-30T11:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54732#M3533</link>
      <description>&lt;P&gt;Did you d&lt;SPAN&gt;ownload and install the&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://github.com/CheckPointSW/cp_mgmt_api_python_sdk" target="_blank"&gt;Check Point API Python SDK&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;repository?&lt;BR /&gt;This is required to use this particular script.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 13:20:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54732#M3533</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-05-30T13:20:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54734#M3535</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have installed same. Attached screen shot.&lt;/P&gt;</description>
      <pubDate>Thu, 30 May 2019 13:26:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54734#M3535</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-05-30T13:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54874#M3546</link>
      <description>&lt;P&gt;The error message suggests the module is not installed in a place the python interpreter sees it.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 01:41:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54874#M3546</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-03T01:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54909#M3547</link>
      <description>&lt;P&gt;I have installed in same path and it is reflected in sys.path also.&lt;/P&gt;&lt;P&gt;Interpreter reflecting correct path.&amp;nbsp; May be am lack in understanding. Could you please guide me.&lt;/P&gt;</description>
      <pubDate>Mon, 03 Jun 2019 07:55:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54909#M3547</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-03T07:55:44Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54974#M3550</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Here is the problem what am facing. If i run examples of cp_mgmt_api_python, it is working fine, but from same path if I execute, import_export_package am getting error. Please help me to fix this.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 05:05:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54974#M3550</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-04T05:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54993#M3551</link>
      <description>&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From your given Output I can see that you try to execute the script with the use of relative module names ("-m" parameter). If you have installed the Check Point API Python SDK as it is mentioned in the linked GitHub page the script execution should be possible by simple typing&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"&lt;FONT&gt;python.exe import_export_package.py&lt;/FONT&gt;" [with python in the path variable as a requirement]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;DIV&gt;&lt;FONT&gt;&lt;FONT&gt;PS C:\Users\user\Desktop\Check Point Scripts\Scripting_Mgmt_CLI\ExportImportPolicyPackage-masterNEW&amp;gt; &lt;STRONG&gt;python.exe import_export_package.py&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT&gt;Welcome to the Policy Package Import/Export Tool.&lt;BR /&gt;What would you like to do?&lt;BR /&gt;1. Import a package&lt;BR /&gt;2. Export a package&lt;BR /&gt;99. Exit&lt;/FONT&gt;&lt;/DIV&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;As "&lt;FONT&gt;ExportImportPolicyPackage-master&lt;/FONT&gt;" is your current working directory related to your screenshot the only issue I can think of is a copy/paste mistake. Please double check if the Folder "exporting" within&amp;nbsp;&lt;FONT&gt;&lt;FONT&gt;ExportImportPolicyPackage contains the file "Export_access_rulebase" as well as all the other required files. In sum you should see 16 files in there, 8 of these should have the .py ending. In the case of some files being not present, try to download the repository as a zip again and proceed with step one.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Regards,&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Maik&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 10:20:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/54993#M3551</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-06-04T10:20:19Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55002#M3552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;As suggested, i have removed directory and downloaded as zip and placed in separate folder, but still am getting same error.&lt;/P&gt;&lt;P&gt;attached screen shots. Please help.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 11:23:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55002#M3552</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-04T11:23:30Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55025#M3553</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Attached list of files post downloading package using zip.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:39:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55025#M3553</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-04T16:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55026#M3554</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Attached package export path.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 16:40:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55026#M3554</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-04T16:40:13Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55034#M3555</link>
      <description>&lt;P&gt;Ah okay I see that you are using python 3 - as far as I know this script has been written to work with python 2.7 only.&lt;/P&gt;&lt;P&gt;Can you try to install version 2.7.x and run the script again, please?&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 20:13:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55034#M3555</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-06-04T20:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55776#M3605</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Yes, it is working fine with python 2.7.9. Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 14 Jun 2019 06:10:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/55776#M3605</guid>
      <dc:creator>rkalidh</dc:creator>
      <dc:date>2019-06-14T06:10:02Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60562#M3805</link>
      <description>&lt;P&gt;Is it expected this script doesn't export gateway objects, regardless if they are internally or externally managed??&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 23:55:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60562#M3805</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2019-08-18T23:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60583#M3806</link>
      <description>&lt;P&gt;It exports gateway objects - at least internally managed ones. However as SIC can't be recreated via this script only temporary ("place holder") objects will be created, so that SIC re-establishment has to be done manually.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:13:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60583#M3806</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-08-19T08:13:34Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60607#M3807</link>
      <description>&lt;P&gt;Limitation in R80.30??&amp;nbsp; For any CP Gateway (there are 25 of them) I have defined it fails to export it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Object of type CpmiHostCkp with uid fcfc4ee2-1049-47b9-ba1b-ad06be4fb964 named &amp;lt;gateway_name&amp;gt; is not exportable. Its name was changed to export_error_CpmiHostCkp_fcfc4ee2-1049-47b9-ba1b-ad06be4fb964_&amp;lt;gateway_name&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:38:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60607#M3807</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2019-08-19T09:38:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60613#M3808</link>
      <description>&lt;P&gt;I used the script up and including R80.20 - so I can't say anything related R80.30 test cases.&lt;/P&gt;&lt;P&gt;However the output that you mentioned shows this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Object of type CpmiHostCkp with uid fcfc4ee2-1049-47b9-ba1b-ad06be4fb964 named &amp;lt;gateway_name&amp;gt; is not exportable. &lt;STRONG&gt;&lt;EM&gt;Its name was changed to export_error_CpmiHostCkp_fcfc4ee2-1049-47b9-ba1b-ad06be4fb964_&amp;lt;gateway_name&amp;gt;.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should allow you to edit the related object called &lt;STRONG&gt;&lt;EM&gt;export_error_CpmiHostCkp_fcfc4ee2-1049-47b9-ba1b-ad06be4fb964_&amp;lt;gateway_name&amp;gt; &lt;/EM&gt;&lt;/STRONG&gt;in order to re-establish sic and set the other parameters as well as the actual gateway name. As all references to the actual gateway are also overwritten with the &lt;STRONG&gt;&lt;EM&gt;export_error_CpmiHostCkp_fcfc4ee2-1049-47b9-ba1b-ad06be4fb964_&amp;lt;gateway_name&amp;gt; &lt;/EM&gt;&lt;/STRONG&gt;object you don't need to overwrite anything else; all the references will be updates once the object &lt;STRONG&gt;&lt;EM&gt;e&lt;/EM&gt;&lt;EM&gt;xport_error_CpmiHostCkp_fcfc4ee2-1049-47b9-ba1b-ad06be4fb964_&amp;lt;gateway_name&amp;gt; &lt;/EM&gt;&lt;/STRONG&gt;gets fixed manually. Note that this is the normal behavior as the management API is not able to handle tasks like SIC establishment and firewall blade configuration (at least not detailled).&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:23:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60613#M3808</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-08-19T10:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60617#M3809</link>
      <description>&lt;P&gt;The issue is that I have 1 internal cluster and round 23 external&amp;nbsp; gateways (combination of external and interoperable devices) - when it imported them it did so as all locally managed gateways so now i've got quite a bit of cleanup with 23 vpn communities they are all a part of.&amp;nbsp; I know how to fix it ultimately but just wanted to provide a heads up as I've used the tool in versions prior to R80.30 and don't recall this being the behavior.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The example in screenshot was interoperable devices before being imported.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:13:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60617#M3809</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2019-08-19T11:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60911#M3814</link>
      <description>There isn't API support for interoperable devices, so they get created as placeholders by the script.&lt;BR /&gt;That should not be new behavior.</description>
      <pubDate>Thu, 22 Aug 2019 04:58:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60911#M3814</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-22T04:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60952#M3819</link>
      <description>&lt;P&gt;The issue I've run into (merging 3 managers into 1) is that it does not export checkpoint gateways either, since it cannot export the object it also does not handle the group objects that are defined for the interfaces. I learned this after the fact when i manually created the cluster and the group object for the interface was not present, nor were the hosts that were a part of that group.&lt;/P&gt;&lt;P&gt;All in all i understand that this is not expected to be 100% accurate was just raising it to see if it was a known limitation of not being able to export gateway objects and any other objects associated to the gateway as well.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2019 12:26:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60952#M3819</guid>
      <dc:creator>Juan_Concepcion</dc:creator>
      <dc:date>2019-08-22T12:26:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export Policy using python</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60974#M3820</link>
      <description>There is no API support for clusters as of yet either, which might explain some of this.</description>
      <pubDate>Thu, 22 Aug 2019 17:48:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-Policy-using-python/m-p/60974#M3820</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-22T17:48:32Z</dc:date>
    </item>
  </channel>
</rss>

