<?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: show services-tcp conflicting answers in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146651#M6745</link>
    <description>&lt;P&gt;You are exceeding the default limit for that API call.&lt;BR /&gt;These limits exist to ensure the API server remains performant and should not be exceeded.&lt;BR /&gt;When you do, you may see the inconsistent results you are observing.&lt;BR /&gt;The proper way to get all the results is to make multiple API calls using the limit/offset parameters to ensure you get all the results.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Apr 2022 01:57:30 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2022-04-21T01:57:30Z</dc:date>
    <item>
      <title>show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146479#M6738</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I get different results when using the Web Services API contra the mgmt_cli.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Eg. when asking for total number of tcp services, I get&amp;nbsp; 'total': 217&amp;nbsp; when using the API and&amp;nbsp;"total" : 225 when asking via the CLI.&lt;/P&gt;&lt;P&gt;Same goes for other services eg. "Other".&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems that API only returns objects created by the system and CLI returns all objects.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 13:09:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146479#M6738</guid>
      <dc:creator>SuneB</dc:creator>
      <dc:date>2022-04-19T13:09:26Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146485#M6739</link>
      <description>&lt;P&gt;How precisely are you constructing the API query?&lt;BR /&gt;Show the full query you are making with all arguments.&lt;BR /&gt;&lt;BR /&gt;How precisely are you constructing the mgmt_cli query? (Which also uses the API)&lt;BR /&gt;Show the full CLI command used.&lt;/P&gt;
&lt;P&gt;What version/JHF level of management is this against?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Apr 2022 13:47:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146485#M6739</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-04-19T13:47:02Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146579#M6743</link>
      <description>&lt;P&gt;Hi PhoneBoy,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;API call is done with Python3's request-module, like this,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;request:&lt;BR /&gt;url = &lt;A href="https://ip-address/web_api/show-services-tcp" target="_blank"&gt;https://ip-address/web_api/show-services-tcp&lt;/A&gt;&lt;BR /&gt;json_payload = {"limit" : 300, "offset" : 0, "details-level" : "uid"}&lt;BR /&gt;request_headers = {'Content-Type' : 'application/json', 'X-chkp-sid' : sessionID}&lt;BR /&gt;response = requests.post(url, json = json_payload, headers=request_headers)&amp;lt;200b&amp;gt;&lt;BR /&gt;response:&lt;BR /&gt;...&lt;BR /&gt;'total': 217&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;CLI call from SmartConsole,&lt;/STRONG&gt;&lt;BR /&gt;request:&lt;BR /&gt;show services-tcp&lt;BR /&gt;response:&lt;BR /&gt;...&lt;BR /&gt;total: 226&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The firewall is running R81.10&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 11:16:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146579#M6743</guid>
      <dc:creator>SuneB</dc:creator>
      <dc:date>2022-04-20T11:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146651#M6745</link>
      <description>&lt;P&gt;You are exceeding the default limit for that API call.&lt;BR /&gt;These limits exist to ensure the API server remains performant and should not be exceeded.&lt;BR /&gt;When you do, you may see the inconsistent results you are observing.&lt;BR /&gt;The proper way to get all the results is to make multiple API calls using the limit/offset parameters to ensure you get all the results.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 01:57:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146651#M6745</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-04-21T01:57:30Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146674#M6746</link>
      <description>&lt;P&gt;Hi again,&lt;BR /&gt;I've tried using the default limit(50), same result:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;API:&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;'from': 1, 'to': 50, 'total': 217&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;CLI:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;from: 1&lt;BR /&gt;to: 50&lt;BR /&gt;total: 226&lt;/DIV&gt;</description>
      <pubDate>Thu, 21 Apr 2022 08:32:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146674#M6746</guid>
      <dc:creator>SuneB</dc:creator>
      <dc:date>2022-04-21T08:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146739#M6748</link>
      <description>&lt;P&gt;Dump the results from both to files and diff them.&lt;/P&gt;
&lt;P&gt;Are any services in the network call results but not the SmartConsole call results?&lt;/P&gt;
&lt;P&gt;Which services are in the SmartConsole call results but not the network call results?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 15:09:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/146739#M6748</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-04-21T15:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/147007#M6764</link>
      <description>&lt;P&gt;Like&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/27871"&gt;@Bob_Zimmerman&lt;/a&gt;&amp;nbsp;mentioned, best to diff the output between the two and see what the differences are.&lt;BR /&gt;I also recommend a TAC case.&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 15:44:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/147007#M6764</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-04-25T15:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: show services-tcp conflicting answers</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/147022#M6766</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/75880"&gt;@SuneB&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using a&amp;nbsp;Multi-Domain Server?&lt;/P&gt;
&lt;P&gt;Is the same&amp;nbsp;administrator running the API and&amp;nbsp;SmartConsole CLI?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Omer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Apr 2022 19:50:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-services-tcp-conflicting-answers/m-p/147022#M6766</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2022-04-25T19:50:10Z</dc:date>
    </item>
  </channel>
</rss>

