<?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: How to fetch/export Configuration and Rule File? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30110#M1851</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have several examples in &lt;A href="https://community.checkpoint.com/space/2003"&gt;Developers (Code Hub)&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;The API/CLI docs are here:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command you're looking for is show access-rulebase which requires, as a parameter, the name/UID of the access layer in question.&lt;/P&gt;&lt;P&gt;You can see all the rulebases/layers using the command show access-layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 11 Jun 2018 17:34:06 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2018-06-11T17:34:06Z</dc:date>
    <item>
      <title>How to fetch/export Configuration and Rule File?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30108#M1849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fetch/export configuration and rule file from Management server, if possible please suggest the Cli command or Restful API commands.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Sonicwall firewall, i used below command to fetch configuration and rule file:&lt;/P&gt;&lt;P&gt;For Configuration:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;export current-config exp scp scp://${UserInput:scp_username}:${UserInput:scp_password}@${UserInput:scp_server_address}/${UserInput:file_name}&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;BR /&gt;For Rule:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;show access-rules&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share the equivalent commands for Checkpoint device.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-family: Tahoma;"&gt;&lt;SPAN class="" style="font-size: 10px;"&gt;&lt;SPAN class="" style="font-size: 8pt;"&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class="" style="color: #006600;"&gt;Thanks &amp;amp; Regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN class="" style="font-family: Tahoma;"&gt;&lt;SPAN class="" style="font-size: 10px;"&gt;&lt;SPAN class="" style="font-family: Tahoma;"&gt;&lt;SPAN class="" style="font-size: 8pt;"&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class="" style="font-family: Verdana;"&gt;&lt;SPAN class="" style="color: #006600;"&gt;M.VeeraSelvam.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 05:26:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30108#M1849</guid>
      <dc:creator>Veeraselvam_man</dc:creator>
      <dc:date>2018-06-11T05:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch/export Configuration and Rule File?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30109#M1850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It depends on your actual needs / purpose - why are you trying to execute these.&lt;/P&gt;&lt;P&gt;For backup just use CLI and it will save both mgmt Gaia config and actual rulebase&lt;/P&gt;&lt;P&gt;backup scp ip 1.1.1.1 path / username &amp;lt;username&amp;gt; password &amp;lt;password&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you simply want to see Gaia configuration run "show configuration" from CLISH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for exporting rules to text using API - just search this forum, there are number of tools already written for many options HTML, CSV, etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;really depends what you are trying to achieve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 07:37:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30109#M1850</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-06-11T07:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch/export Configuration and Rule File?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30110#M1851</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have several examples in &lt;A href="https://community.checkpoint.com/space/2003"&gt;Developers (Code Hub)&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;The API/CLI docs are here:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command you're looking for is show access-rulebase which requires, as a parameter, the name/UID of the access layer in question.&lt;/P&gt;&lt;P&gt;You can see all the rulebases/layers using the command show access-layers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Jun 2018 17:34:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/30110#M1851</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-11T17:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to fetch/export Configuration and Rule File?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/61405#M3833</link>
      <description>off topic: PhoneBoy and even &lt;A href="https://sc1.checkpoint.com/documents/R80/APIs/#introduction" target="_blank"&gt;https://sc1.checkpoint.com/documents/R80/APIs/#introduction&lt;/A&gt; does point anyone to&lt;BR /&gt;"A newer API reference is available ... &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html&lt;/A&gt; . But there I ever find only a menu without content - - is this some sort of "running gag"?</description>
      <pubDate>Wed, 28 Aug 2019 14:55:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-fetch-export-Configuration-and-Rule-File/m-p/61405#M3833</guid>
      <dc:creator>Richard_Farnham</dc:creator>
      <dc:date>2019-08-28T14:55:09Z</dc:date>
    </item>
  </channel>
</rss>

