<?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: Mgmt_cli show access-rule base issue in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-show-access-rule-base-issue/m-p/208813#M8402</link>
    <description>&lt;P&gt;EXT-OTT is the name of the policy package, which is made up of one or more policy layers.&lt;BR /&gt;The layers are where the policy is defined.&lt;/P&gt;
&lt;P&gt;To get the top-level layers involved:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli --format json --session-id xxx show package name Standard | jq '."access-layers"[]'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;You can then look at the correct rulebase:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli --format json --session-id xxx show access-rulebase uid 6a5b4108-a94e-4f5d-974b-8d8c431fdd5f&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Do not use the "limit" parameter to exceed the specification in the API documentation as it is not guaranteed to return all the requested results and may result in performance issues (500 is max for show access-rulebase).&lt;BR /&gt;Also, if you have inline layers, you will have to parse the results to find out what inline layer is referenced and do a show access-rulebase on those as well.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2024 00:48:28 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2024-03-15T00:48:28Z</dc:date>
    <item>
      <title>Mgmt_cli show access-rule base issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-show-access-rule-base-issue/m-p/208807#M8400</link>
      <description>&lt;P&gt;I am trying to export 0 hit rules, I found some old discussion. and articles&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/Management/Export-of-rules-with-zero-hits-in-dashboard/m-p/120552/highlight/true#M26931" target="_blank"&gt;Solved: Re: Export of rules with zero hits in dashboard - Check Point CheckMates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Disable-Delete-Rules-with-a-Zero-Hit-Count-MDS-or-SMS/td-p/40005" target="_blank"&gt;Solved: Disable/Delete Rules with a Zero Hit Count (MDS or... - Check Point CheckMates&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My environment is MDS, I have inline policy layers. When I run mgmt_cli , I can see the packages&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@MDS-01:0]# mgmt_cli -r true --port 443 show packages -d "172.16.31.117" --format json | jq '.packages[] | .name' | sed 's/\"//g'&lt;BR /&gt;EXT-OTT&lt;BR /&gt;Standard&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to see the rule base, it says object not found.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@MDS-01:0]# mgmt_cli show access-rulebase offset 0 limit 20 name "EXT-OTT" details-level "standard" use-object-dictionary true&lt;BR /&gt;Username: admin&lt;BR /&gt;Password:&lt;BR /&gt;code: "generic_err_object_not_found"&lt;BR /&gt;message: "Requested object [EXT-OTT] not found"&lt;/P&gt;&lt;P&gt;[Expert@MDS-01:0]# ^C&lt;BR /&gt;[Expert@MDS-01:0]# mgmt_cli -r true --port 443 show access-rulebase name "EXT-OTT" -d "172.16.31.117" show-hits true --format json limit 50000&lt;BR /&gt;{&lt;BR /&gt;"code" : "generic_err_object_not_found",&lt;BR /&gt;"message" : "Requested object [EXT-OTT] not found"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing here?&lt;/P&gt;&lt;P&gt;Sorry I am new to API calls and programming; I work mostly on firewalls.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Mar 2024 20:01:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-show-access-rule-base-issue/m-p/208807#M8400</guid>
      <dc:creator>sidlab1584</dc:creator>
      <dc:date>2024-03-14T20:01:37Z</dc:date>
    </item>
    <item>
      <title>Re: Mgmt_cli show access-rule base issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-show-access-rule-base-issue/m-p/208813#M8402</link>
      <description>&lt;P&gt;EXT-OTT is the name of the policy package, which is made up of one or more policy layers.&lt;BR /&gt;The layers are where the policy is defined.&lt;/P&gt;
&lt;P&gt;To get the top-level layers involved:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli --format json --session-id xxx show package name Standard | jq '."access-layers"[]'&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;You can then look at the correct rulebase:&amp;nbsp;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;mgmt_cli --format json --session-id xxx show access-rulebase uid 6a5b4108-a94e-4f5d-974b-8d8c431fdd5f&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Do not use the "limit" parameter to exceed the specification in the API documentation as it is not guaranteed to return all the requested results and may result in performance issues (500 is max for show access-rulebase).&lt;BR /&gt;Also, if you have inline layers, you will have to parse the results to find out what inline layer is referenced and do a show access-rulebase on those as well.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2024 00:48:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Mgmt-cli-show-access-rule-base-issue/m-p/208813#M8402</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2024-03-15T00:48:28Z</dc:date>
    </item>
  </channel>
</rss>

