<?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: going to expire rules alerts in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/going-to-expire-rules-alerts/m-p/110987#M5600</link>
    <description>&lt;P&gt;Ansible is not a suitable tool for any of these tasks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You’d have to use a script that basically calls the API and jq to filter the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, you'd look for rules that have something other than "any" in the Time field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use this as a starting point: &lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-Hit-Count-MDS-or-SMS/m-p/40005/thread-id/2562#M2587" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-...&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 04:55:41 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-02-17T04:55:41Z</dc:date>
    <item>
      <title>going to expire rules alerts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/going-to-expire-rules-alerts/m-p/110902#M5585</link>
      <description>&lt;P&gt;HI Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;do we have a script or playbook which alerts us 15 days before that the rule is going to expire, please help us on the same.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) it might be shell script&lt;/P&gt;&lt;P&gt;2)it might be ansible module&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also, which ansible modules are used for below automations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) extracting expired rulebases&lt;/P&gt;&lt;P&gt;2) extracting going to expire rule bases&lt;/P&gt;&lt;P&gt;3) un used objects&lt;/P&gt;&lt;P&gt;4)duplicate objects&lt;/P&gt;&lt;P&gt;overall policy and change management&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ram&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 10:21:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/going-to-expire-rules-alerts/m-p/110902#M5585</guid>
      <dc:creator>Ram1</dc:creator>
      <dc:date>2021-02-16T10:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: going to expire rules alerts</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/going-to-expire-rules-alerts/m-p/110987#M5600</link>
      <description>&lt;P&gt;Ansible is not a suitable tool for any of these tasks.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You’d have to use a script that basically calls the API and jq to filter the results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Specifically, you'd look for rules that have something other than "any" in the Time field.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;You can use this as a starting point: &lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-Hit-Count-MDS-or-SMS/m-p/40005/thread-id/2562#M2587" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Disable-Delete-Rules-with-a-Zero-...&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 04:55:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/going-to-expire-rules-alerts/m-p/110987#M5600</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-02-17T04:55:41Z</dc:date>
    </item>
  </channel>
</rss>

