<?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 Create list of IPS protections set for packet capture in a specific profile in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Create-list-of-IPS-protections-set-for-packet-capture-in-a/m-p/67638#M4128</link>
    <description>&lt;P&gt;Used mgmt_cli to generate a json formatted file (ips.json) of all IPS protections (mgmt_cli show threat-protections details-level full) but cannot figure out how to parse out only the profiles with packet capture enabled.&lt;/P&gt;
&lt;P&gt;cat ips.json | jq ".protections [] | [.name, .profiles]"&lt;/P&gt;</description>
    <pubDate>Sun, 17 Nov 2019 01:29:14 GMT</pubDate>
    <dc:creator>Matthew_Rippe</dc:creator>
    <dc:date>2019-11-17T01:29:14Z</dc:date>
    <item>
      <title>Create list of IPS protections set for packet capture in a specific profile</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Create-list-of-IPS-protections-set-for-packet-capture-in-a/m-p/67638#M4128</link>
      <description>&lt;P&gt;Used mgmt_cli to generate a json formatted file (ips.json) of all IPS protections (mgmt_cli show threat-protections details-level full) but cannot figure out how to parse out only the profiles with packet capture enabled.&lt;/P&gt;
&lt;P&gt;cat ips.json | jq ".protections [] | [.name, .profiles]"&lt;/P&gt;</description>
      <pubDate>Sun, 17 Nov 2019 01:29:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Create-list-of-IPS-protections-set-for-packet-capture-in-a/m-p/67638#M4128</guid>
      <dc:creator>Matthew_Rippe</dc:creator>
      <dc:date>2019-11-17T01:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Create list of IPS protections set for packet capture in a specific profile</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Create-list-of-IPS-protections-set-for-packet-capture-in-a/m-p/68464#M4140</link>
      <description>This is set at the profile level, yet you're looking at the individual threat protections.&lt;BR /&gt;You should look at the profile you're interested in.&lt;BR /&gt;Here's what I came up with:&lt;BR /&gt;&lt;BR /&gt;mgmt_cli -r true --format json show threat-profile name "Optimized PhoneBoy" | jq '.overrides[] | {name: .protection, capture: .final["capture-packets"]} | select (.capture == "true")'&lt;BR /&gt;&lt;BR /&gt;When you look at the different protections in a profile, there are three different settings: Original (what the protection is set to by default), Override (what the override says to do), and Final (what policy will ultimately apply).&lt;BR /&gt;&lt;BR /&gt;Also note your dump of IPS protections likely only includes a limited number of protections (50) unless you called it multiple times with limit/offset.</description>
      <pubDate>Tue, 26 Nov 2019 00:04:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Create-list-of-IPS-protections-set-for-packet-capture-in-a/m-p/68464#M4140</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-11-26T00:04:34Z</dc:date>
    </item>
  </channel>
</rss>

