<?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 I Like to run a python script to install the 1000 policies on firewall. in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71144#M4239</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to install 1000 polices on Checkpoint firewall. However, I am not familiar with the Infra environment. Anyone can please guide me to any document or explain it to me that how can I set a python environment to run a python script?&lt;/P&gt;&lt;P&gt;I am using GAIA R80.30&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 23 Dec 2019 20:24:03 GMT</pubDate>
    <dc:creator>vaidehi</dc:creator>
    <dc:date>2019-12-23T20:24:03Z</dc:date>
    <item>
      <title>I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71144#M4239</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to install 1000 polices on Checkpoint firewall. However, I am not familiar with the Infra environment. Anyone can please guide me to any document or explain it to me that how can I set a python environment to run a python script?&lt;/P&gt;&lt;P&gt;I am using GAIA R80.30&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:24:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71144#M4239</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2019-12-23T20:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71147#M4240</link>
      <description>In Check Point, we refer to a policy as a collection of rules (Access Control, Threat Prevention).&lt;BR /&gt;The API is REST-based and you can use any programming language to interact with the API, including Python.&lt;BR /&gt;Several Python programs are referred to in the API/CLI Discussion space: &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/bd-p/codehub" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/bd-p/codehub&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:09:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71147#M4240</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-23T21:09:04Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71148#M4241</link>
      <description>Thank you for your response.&lt;BR /&gt;I am still confused. I am new to checkpoint firewall therefore really sorry , i might ask you really basic questions.&lt;BR /&gt;&lt;BR /&gt;For instance, in which mode i can write a python script?&lt;BR /&gt;[Chkptfw]# python&lt;BR /&gt;bash: python: command not found&lt;BR /&gt;I see this error in expert mode</description>
      <pubDate>Mon, 23 Dec 2019 21:15:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71148#M4241</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2019-12-23T21:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71155#M4244</link>
      <description>On R80.30 Management (with the 3.10 kernel), python is in the path (specifically in /bin).&lt;BR /&gt;On R80.x Gateways or Standalone, the python interpreter is $FWDIR/Python/bin/python.&lt;BR /&gt;&lt;BR /&gt;Note that the python interpreter installed only includes the specific libraries we use in the product.&lt;BR /&gt;We do not support installing additional libraries or otherwise updating the interpreter beyond what is installed.&lt;BR /&gt;Highly recommend using a different system if Python is your choice of language.&lt;BR /&gt;&lt;BR /&gt;If you want to run things directly on the management, you're better off calling mgmt_cli via shell scripts.</description>
      <pubDate>Tue, 24 Dec 2019 00:44:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71155#M4244</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-24T00:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71178#M4245</link>
      <description>What do you mean by "different system"? Can I install polices (Access rules) using any other device? OR&lt;BR /&gt;Is there any script which is already installed in the management server which i can use to install polices (access rule?)?&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Tue, 24 Dec 2019 18:46:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71178#M4245</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2019-12-24T18:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71180#M4246</link>
      <description>Different system, meaning a system that is NOT your gateway or management.&lt;BR /&gt;mgmt_cli is a CLI command that can be used from the management server to modify the access policy.&lt;BR /&gt;It's basically an API client and you have to interact with it in a similar way to be effective.&lt;BR /&gt;While this is an older TechTalk, a lot of the concepts still apply: &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Leveraging-the-R80-10-API-to-Automate-and-Streamline-Security/m-p/5381" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Leveraging-the-R80-10-API-to-Automate-and-Streamline-Security/m-p/5381&lt;/A&gt;&lt;BR /&gt;The API (and mgmt_cli) docs: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#~v1.5" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#~v1.5&lt;/A&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 24 Dec 2019 19:34:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71180#M4246</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-12-24T19:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71512#M4263</link>
      <description>Thank you for your help!</description>
      <pubDate>Thu, 02 Jan 2020 22:40:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71512#M4263</guid>
      <dc:creator>vaidehi</dc:creator>
      <dc:date>2020-01-02T22:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: I Like to run a python script to install the 1000 policies on firewall.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71561#M4269</link>
      <description>&lt;P&gt;Note that R80.20 and newer contain also Python 3! (I am not sure about R80.10) The &lt;FONT face="courier new,courier"&gt;python&lt;/FONT&gt; executable in path is Python 2.&lt;/P&gt;&lt;P&gt;There is the relatively new version 3.7.4 at &lt;FONT face="courier new,courier"&gt;$FWDIR/Python/bin/python3&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Certainly I would not recommend using Python 2 to write any new code as it will be unsupported just in 4 months and after that its use will pose a security risk!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2020 14:44:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/I-Like-to-run-a-python-script-to-install-the-1000-policies-on/m-p/71561#M4269</guid>
      <dc:creator>Václav_Brožík</dc:creator>
      <dc:date>2020-01-03T14:44:07Z</dc:date>
    </item>
  </channel>
</rss>

