<?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 Checkpoint automation - many questions in Ansible</title>
    <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48089#M226</link>
    <description>&lt;P&gt;Just starting to get into automating configuration tasks on Checkpoint R80. I have installed cpAnsible on a CentOS that has python running and did a simple group and object add which worked fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;- Is Ansible just running built in Checkpoint CLI commands? If so, where do I get a list of those commands?&lt;/P&gt;&lt;P&gt;- Why do I need Ansible?&lt;/P&gt;&lt;P&gt;- why do I need Python on my local machine if I have Ansible? (sorry - just dont understand the relationship between the 2)&lt;/P&gt;&lt;P&gt;- why do I need Python on the remote machine (the Checkpoint manager)&lt;/P&gt;&lt;P&gt;- is this possible on any Checkpoint version lower than R80? If not, how is similar automation performed on lower versions of Checkpoint (R77, R65)?&lt;/P&gt;&lt;P&gt;- is it possible to have a front end webform or something that passes request data (source, destination, port) to Python/Ansible/Checkpoint-directly and processes the request automatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 21 Mar 2019 11:17:53 GMT</pubDate>
    <dc:creator>J_Saun</dc:creator>
    <dc:date>2019-03-21T11:17:53Z</dc:date>
    <item>
      <title>Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48089#M226</link>
      <description>&lt;P&gt;Just starting to get into automating configuration tasks on Checkpoint R80. I have installed cpAnsible on a CentOS that has python running and did a simple group and object add which worked fine&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions:&lt;/P&gt;&lt;P&gt;- Is Ansible just running built in Checkpoint CLI commands? If so, where do I get a list of those commands?&lt;/P&gt;&lt;P&gt;- Why do I need Ansible?&lt;/P&gt;&lt;P&gt;- why do I need Python on my local machine if I have Ansible? (sorry - just dont understand the relationship between the 2)&lt;/P&gt;&lt;P&gt;- why do I need Python on the remote machine (the Checkpoint manager)&lt;/P&gt;&lt;P&gt;- is this possible on any Checkpoint version lower than R80? If not, how is similar automation performed on lower versions of Checkpoint (R77, R65)?&lt;/P&gt;&lt;P&gt;- is it possible to have a front end webform or something that passes request data (source, destination, port) to Python/Ansible/Checkpoint-directly and processes the request automatically?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2019 11:17:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48089#M226</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-03-21T11:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48207#M227</link>
      <description>Ansible is an automatic framework that runs on Python, which is an interpreted language.&lt;BR /&gt;When you use the cpModule, it is calling the REST API on the backend, which is only available in R80+ Management.&lt;BR /&gt;There is a python interpreter on recent versions of Check Point Management already but it is not used in this context.&lt;BR /&gt;&lt;BR /&gt;There is no requirement to use Ansible for automation, it just happens to be a popular choice.&lt;BR /&gt;Anything that speaks a REST API can be used.&lt;BR /&gt;You can also use the CLI via the mgmt_cli command if you prefer.&lt;BR /&gt;API/CLI docs are here: &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html&lt;/A&gt;&lt;BR /&gt;There are also sample web forms on CheckMates that you can leverage.&lt;BR /&gt;&lt;BR /&gt;Automating R77.x and earlier management is possible to varying degrees depending on what you are trying to do.&lt;BR /&gt;However, it does not have a REST API and requires a bit more work to automate.&lt;BR /&gt;You can find examples for specific tasks on CheckMates.</description>
      <pubDate>Fri, 22 Mar 2019 05:03:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48207#M227</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-22T05:03:03Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48289#M228</link>
      <description>&lt;P&gt;Thanks very much for the explanations.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2019 14:22:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/48289#M228</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-03-22T14:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/50352#M229</link>
      <description>&lt;P&gt;I'm still trying to grasp the relationship between Ansible and Checkpoint API. I successfuly used cpAnsible and added a group with a host using the example they have on the Github cpansible page but I don't understand how the commands are getting sent to the Checkpoint manager.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Ansible .yml has the following:&lt;/P&gt;&lt;P&gt;name: "add host"&lt;BR /&gt;check_point_mgmt:&lt;BR /&gt;command: add-host # Name of the command&lt;BR /&gt;parameters: # The parameters for it, in dictionary form&lt;BR /&gt;name: "host_demo"&lt;BR /&gt;ip-address: "1.2.3.5"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But, according to the Management API Reference doc, if I just want to do that via the CLI on the management server I use:&lt;/P&gt;&lt;P&gt;mgmt_cli add host name "New Host 1" ip-address "1.2.3.5" --version 1.1 --format json&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the .yml it uses add-host (note the hyphen) but the CLI command is add host (no hyphen).&lt;/P&gt;&lt;P&gt;Does checkpoint accept either?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2019 00:23:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/50352#M229</guid>
      <dc:creator>J_Saun</dc:creator>
      <dc:date>2019-04-10T00:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/56693#M230</link>
      <description>&lt;P&gt;Is there a way we can run the Ansible script to perform basic health check commands on the checkpoint gateway.&lt;/P&gt;&lt;P&gt;Ansible script is to be run from a external jumphost and through that script , it should login into the firewall and take output of certain commands like connection state, memory, cpu and other basic commands.&lt;/P&gt;&lt;P&gt;Is it possible to achieve this through ansible.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jun 2019 08:48:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/56693#M230</guid>
      <dc:creator>Tribhawan_Singh</dc:creator>
      <dc:date>2019-06-26T08:48:34Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint automation - many questions</title>
      <link>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/56741#M231</link>
      <description>Couple examples of this:&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Ansible-for-Gaia-gateways/m-p/14305#M1017" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Ansible-for-Gaia-gateways/m-p/14305#M1017&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54109#M3502" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Ansible-based-automation-for-Check-Point-Management-Server-and/m-p/54109#M3502&lt;/A&gt;</description>
      <pubDate>Wed, 26 Jun 2019 17:32:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Ansible/Checkpoint-automation-many-questions/m-p/56741#M231</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-06-26T17:32:24Z</dc:date>
    </item>
  </channel>
</rss>

