<?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 Rule Count of each policy in CMA from MDS in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Rule-Count-of-each-policy-in-CMA-from-MDS/m-p/156665#M7105</link>
    <description>&lt;P&gt;We have 20 Domains in MDS and each CMA has 5-6 policies and Cluster Gateways.&lt;/P&gt;&lt;P&gt;How to get the rule count from each policies in CMA's from MDS using any Script or any command ?&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="API and CLI Discussion" id="api-cli-discussion"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Ansible" id="ansible"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 06 Sep 2022 16:13:38 GMT</pubDate>
    <dc:creator>Naveen_</dc:creator>
    <dc:date>2022-09-06T16:13:38Z</dc:date>
    <item>
      <title>Checkpoint Rule Count of each policy in CMA from MDS</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Rule-Count-of-each-policy-in-CMA-from-MDS/m-p/156665#M7105</link>
      <description>&lt;P&gt;We have 20 Domains in MDS and each CMA has 5-6 policies and Cluster Gateways.&lt;/P&gt;&lt;P&gt;How to get the rule count from each policies in CMA's from MDS using any Script or any command ?&lt;/P&gt;&lt;P&gt;&lt;LI-PRODUCT title="API and CLI Discussion" id="api-cli-discussion"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;LI-PRODUCT title="Ansible" id="ansible"&gt;&lt;/LI-PRODUCT&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Sep 2022 16:13:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Rule-Count-of-each-policy-in-CMA-from-MDS/m-p/156665#M7105</guid>
      <dc:creator>Naveen_</dc:creator>
      <dc:date>2022-09-06T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: Checkpoint Rule Count of each policy in CMA from MDS</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Rule-Count-of-each-policy-in-CMA-from-MDS/m-p/156862#M7107</link>
      <description>&lt;P&gt;This is not really a task you'd perform with Ansible, FYI, since Ansible playbooks describe the desired state, not the precise commands you'd execute.&lt;/P&gt;
&lt;P&gt;If you're just looking for a count of rules on each policy layer (note more than one layer may be used by a security gateway depending on the configuration), at a high level, something like (for each CMA):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;Enumerate the policy layers:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-layers~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-layers~v1.8%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;For each policy layer, review the count that is returned by the following API call:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-layer~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-layer~v1.8%20&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;The above should be scriptable.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Sep 2022 17:55:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Checkpoint-Rule-Count-of-each-policy-in-CMA-from-MDS/m-p/156862#M7107</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-09-08T17:55:23Z</dc:date>
    </item>
  </channel>
</rss>

