<?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: What is the Usage of &amp;quot;export&amp;quot; command in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30415#M1858</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlike the vendors you mention, there is not a single configuration file that contains both the security configuration and the OS/interface configuration on Check Point.&lt;/P&gt;&lt;P&gt;What is available on the Security Gateway itself is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A compiled version of the Security Policy--not exportable&lt;/LI&gt;&lt;LI&gt;The OS/interface configuration, which can be exported as described above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The Security Policy configuration is stored on the management and can be exported as I described above.&lt;/P&gt;&lt;P&gt;If you had to replace a physical gateway, provided you have the basic OS configuration, it's possible to push the security policy configuration from the management.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jun 2018 19:38:50 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2018-06-13T19:38:50Z</dc:date>
    <item>
      <title>What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30409#M1852</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;Now I am learning about Checkpoint Restful API functionalists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please share me the usage of "export" function in Restful API access:&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://" rel="nofollow"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;mgmt-server&amp;gt;:&amp;lt;port&amp;gt;/web_api/export&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/export~v1.1%20" rel="nofollow"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#web/export~v1.1%20&lt;/A&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;Is that export command output will contains complete configuration details?&lt;/P&gt;&lt;P&gt;Like paloalto below Restful API access:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;A href="https://&amp;lt;paloalto-server&amp;gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config&amp;amp;REST_API_TOKEN=1900994597"&gt;https://&amp;lt;paloalto-server&amp;gt;/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config&amp;amp;REST_API_TOKEN=1900994597&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&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>Tue, 12 Jun 2018 07:46:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30409#M1852</guid>
      <dc:creator>Veeraselvam_man</dc:creator>
      <dc:date>2018-06-12T07:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30410#M1853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I hope &lt;A href="https://community.checkpoint.com/migrated-users/2061"&gt;Eugene Grybinnyk&lt;/A&gt;‌ or &lt;A href="https://community.checkpoint.com/migrated-users/47511"&gt;Robert Decker&lt;/A&gt;‌ can comment as I'm not entirely sure how to properly interact with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The command produces a response which contains a loopback link for a follow up query once the task has completed successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;PRE style="color: #000000; background-color: #fafaff;"&gt;"result-link-url" : "http://127.0.0.1:50276/web_api/result-link/1bef11d4-1aa8-48f3-9ba5-bb943b714f33?X-chkp-sid=d8Cud186nxPz_b3Q_paYi1Xf5ryDbUPvPcrxHv5nZzo"&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d;"&gt;I didn't know how to follow up and query for the response, so I simply curled it from local host with curl_cli -O &amp;lt;link&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;This produced nothing, I double checked the api.elg logs and found it received my command but error-ed out.&lt;BR /&gt;But I could discern enough information that it did try to send me a file name&lt;PRE style="color: #000000; background-color: #fafaff;"&gt;4425ad5d-b5ef-446e-902b-749a1c6818b3.tar.gz.&lt;/PRE&gt;I performed a linux search for the filename and found it in:&lt;BR /&gt;/opt/CPsuite-R80/fw1/api/export/export_2018_06_12_07_37/4425ad5d-b5ef-446e-902b-749a1c6818b3.tar.gz&lt;/PRE&gt;&lt;P&gt;After extracting on my windows machine, my incredibly small lab CMA produced a 163MB file named objects.json.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 13:05:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30410#M1853</guid>
      <dc:creator>Joshua_Hatter</dc:creator>
      <dc:date>2018-06-12T13:05:52Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30411#M1854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) API command &lt;EM&gt;export &lt;/EM&gt;always generates&amp;nbsp;a localhost link. But this link is working from outside (you need to&amp;nbsp;replace&amp;nbsp;&lt;STRONG&gt;&lt;A class="unlinked"&gt;http://127.0.0.1:50276&lt;/A&gt;&lt;/STRONG&gt;&lt;A class="unlinked"&gt; with &lt;STRONG&gt;http&lt;SPAN style="color: #ff0000;"&gt;s&lt;/SPAN&gt;://&amp;lt;server-remote-ip&amp;gt;/)&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;SPAN&gt;API command&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;export&lt;/EM&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;generates a link accompanied with the current session token as a GET parameter&amp;nbsp;&lt;EM&gt;X-chkp-sid &lt;/EM&gt;and when running&amp;nbsp;&lt;STRONG&gt;mgmt_cli -r true export&amp;nbsp;&lt;/STRONG&gt;the generated link session token is already invalid (because adding &lt;STRONG&gt;-r true&amp;nbsp;&lt;/STRONG&gt;means - login, execute the command, publish if necessary, logout). But&amp;nbsp;the link will work if to replace the invalid token with the valid one.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 14:02:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30411#M1854</guid>
      <dc:creator>Eugene_Grybinny</dc:creator>
      <dc:date>2018-06-12T14:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30412#M1855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there any way to export complete checkpoint firewall&amp;nbsp;configuration file using restful api?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;like below paloalto restful api access:&lt;/P&gt;&lt;P&gt;&lt;A href="https://paloalto-server/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config&amp;amp;REST_API_TOKEN=1900994597"&gt;https://paloalto-server/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config&amp;amp;REST_API_TOKEN=1900994597&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000;"&gt;&lt;SPAN class=""&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 style="color: #000000;"&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-size: 10px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-size: 8pt;"&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class=""&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>Tue, 12 Jun 2018 16:52:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30412#M1855</guid>
      <dc:creator>Veeraselvam_man</dc:creator>
      <dc:date>2018-06-12T16:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30413#M1856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Define what you mean by "configuration", because that can refer to:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Security Policy configuration:&lt;UL&gt;&lt;LI&gt;If you want to get all policies configured on all gateways as well as all objects, you might try this script:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-1938"&gt;Python tool for exporting/importing a policy package or parts of it&lt;/A&gt;‌&lt;/LI&gt;&lt;LI&gt;If you want to get only what's loaded on a specific gateway, that's a little more tricky.&lt;UL&gt;&lt;LI&gt;The gateway only contains a compiled version of the objects/policy which is not in a format that is readily exportable.&lt;/LI&gt;&lt;LI&gt;Use something like the following to execute "fw stat" on the Security Gateway from the R80.x Management API:&amp;nbsp;&lt;A href="https://community.checkpoint.com/message/13017"&gt;how to use the web api to run the run-script&lt;/A&gt;‌&lt;/LI&gt;&lt;LI&gt;Once you have that, you can fetch the access layer as described here:&amp;nbsp;&lt;A href="https://community.checkpoint.com/message/21050"&gt;Re: How to fetch/export Configuration and Rule File?&lt;/A&gt;‌&lt;/LI&gt;&lt;LI&gt;Note that layers can include other layers, so you may need to parse the output to get the sublayers that are referenced.&lt;/LI&gt;&lt;LI&gt;If Threat Prevention is used, you will need to execute commands to gather this policy information as well.&lt;/LI&gt;&lt;LI&gt;None of the above includes objects, which will have to be queried individually based on what's in the active policies.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;OS configuration&lt;UL&gt;&lt;LI&gt;Currently not available directly from a REST API but similar to above, you can execute something like "show configuration" using run-script.&lt;/LI&gt;&lt;LI&gt;This does not get anything that was configured in Expert mode.&lt;/LI&gt;&lt;LI&gt;A REST API for Gaia OS is planned in the near future (R80.20).&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you can describe in more detail what the purpose behind gathering this information is, we can provide more specific advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Jun 2018 18:48:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30413#M1856</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-12T18:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30414#M1857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the information's &lt;A href="https://community.checkpoint.com/migrated-users/2075"&gt;Dameon Welch Abernathy&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Configuration file will contains complete (rule/Interface/nat/Objects/Groups/Policy/etc) details of the Firewall. Other firewall vendors (Fortinet, Cisco, Palo Alto, Sonicwall, WatchGuard,Juniper) are providing option to export this configuration file, i am expecting similar export option in checkpoint firewall. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using this configuration file we can perform backup/restore operations and also generate Nipper(Third party tool) security audit report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to export this configuration file using restful API?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="color: #000000;"&gt;&lt;SPAN class=""&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 style="color: #000000;"&gt;&lt;DIV&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-size: 10px;"&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="font-size: 8pt;"&gt;&lt;SPAN class="" style="font-size: 13px;"&gt;&lt;SPAN class=""&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>Wed, 13 Jun 2018 09:47:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30414#M1857</guid>
      <dc:creator>Veeraselvam_man</dc:creator>
      <dc:date>2018-06-13T09:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: What is the Usage of "export" command</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30415#M1858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unlike the vendors you mention, there is not a single configuration file that contains both the security configuration and the OS/interface configuration on Check Point.&lt;/P&gt;&lt;P&gt;What is available on the Security Gateway itself is:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;A compiled version of the Security Policy--not exportable&lt;/LI&gt;&lt;LI&gt;The OS/interface configuration, which can be exported as described above.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The Security Policy configuration is stored on the management and can be exported as I described above.&lt;/P&gt;&lt;P&gt;If you had to replace a physical gateway, provided you have the basic OS configuration, it's possible to push the security policy configuration from the management.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jun 2018 19:38:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/What-is-the-Usage-of-quot-export-quot-command/m-p/30415#M1858</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2018-06-13T19:38:50Z</dc:date>
    </item>
  </channel>
</rss>

