<?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: Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166244#M7374</link>
    <description>&lt;P&gt;From SmartConsole itself? Probably not.&lt;BR /&gt;It’s definitely possible through the API (meaning also possible from CLI), but it will require multiple calls to obtain all the data.&lt;BR /&gt;Two programs that will do this (among other data):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
    <pubDate>Wed, 28 Dec 2022 13:46:07 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2022-12-28T13:46:07Z</dc:date>
    <item>
      <title>Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166219#M7372</link>
      <description>&lt;P&gt;Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console or command line ?&lt;/P&gt;&lt;P&gt;Please note that I mean **ALL** and after the extraction, I need to write a python script to convert, say, from http to 80.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 09:29:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166219#M7372</guid>
      <dc:creator>martylee</dc:creator>
      <dc:date>2022-12-28T09:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166224#M7373</link>
      <description>&lt;P&gt;Please explain what you want to achieve - and what you mean with "extract", show used service ports ? "&lt;SPAN&gt;Smart console or command line" looks like you want logs ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Dec 2022 09:40:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166224#M7373</guid>
      <dc:creator>G_W_Albrecht</dc:creator>
      <dc:date>2022-12-28T09:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166244#M7374</link>
      <description>&lt;P&gt;From SmartConsole itself? Probably not.&lt;BR /&gt;It’s definitely possible through the API (meaning also possible from CLI), but it will require multiple calls to obtain all the data.&lt;BR /&gt;Two programs that will do this (among other data):&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Wed, 28 Dec 2022 13:46:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166244#M7374</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-12-28T13:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166346#M7376</link>
      <description>&lt;P&gt;I am now migrating some check point access rules to Azure NSG.&lt;/P&gt;&lt;P&gt;I export the rules from Smart console GUI (see picture) and the Service port is in the form of Name (http snmp etc), instead of tcp or udp numbers. I need to create a text file from which I can use python to convert, say http, to tcp 80.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 16:33:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166346#M7376</guid>
      <dc:creator>martylee</dc:creator>
      <dc:date>2022-12-29T16:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to extract ALL service port (eg http tcp 80, https tcp 443) from Smart console</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166348#M7377</link>
      <description>&lt;P&gt;Instead of taking that approach, use the API to export the relevant Access Policy using the show-access-rulebase endpoint.&lt;BR /&gt;There is an option (show-as-ranges true) that will convert the hosts and services&amp;nbsp;to their numerical values.&lt;BR /&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-access-rulebase~v1.9%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 16:50:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Is-there-any-way-to-extract-ALL-service-port-eg-http-tcp-80/m-p/166348#M7377</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-12-29T16:50:44Z</dc:date>
    </item>
  </channel>
</rss>

