<?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>article Migrating Checkpoint R80 [UPDATED on December 2020] in Expedition Articles</title>
    <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/ta-p/216298</link>
    <description>&lt;P&gt;With the new version of Checkpoint Smartcenter R80, the way to obtain the rules has changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Exporting Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To export the configuration from a Checkpoint R80 we are gonna need to download a tool from the Checkpoint's Github. We want to be sure we download latest version of the tool since the one it comes installed in your SmartCenter usually is old and may contain bugs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So first open your preferred web browser and go to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://github.com/CheckPointSW/ShowPolicyPackage/releases&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the latest, at the moment of updating this post latest version was 2.0.6, so in order to download it we have to click on the file named: &lt;STRONG&gt;web_api_show_package-jar-with-dependencies.jar&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://github.com/CheckPointSW/ShowPolicyPackage/releases/download/V2.0.6/web_api_show_package-jar-with-dependencies.jar&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After download the file you have to UPLOAD it to your SmartCenter Server where Checkpoint R80 management is running.&lt;/P&gt;
&lt;P&gt;Use your &lt;A href="https://en.wikipedia.org/wiki/Secure_copy_protocol#:~:text=Secure%20copy%20protocol%20(SCP)%20is,Protocol%20and%20the%20program%20itself." target="_blank" rel="noopener"&gt;SCP&lt;/A&gt; preferred tool to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please read the README.md file shown in&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/ShowPolicyPackage" target="_blank"&gt;https://github.com/CheckPointSW/ShowPolicyPackage&lt;/A&gt;&amp;nbsp;to understand how to run the downloaded file properly, pay special attention to the &lt;A href="https://github.com/CheckPointSW/ShowPolicyPackage#examples" target="_blank" rel="noopener"&gt;Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before you run the command verify the Checkpoint API is running otherwise this tool will fail to execute. Please &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/td-p/32641" target="_blank" rel="noopener"&gt;read this&lt;/A&gt; if you don' t know how to enable/verify if your API is UP and Running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can RUN the tool from CLI as EXPERT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;java -jar web_api_show_package-jar-with-dependencies.jar -v&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output from that command will let you know what Packages are available to export&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last command we have to run is the following where PACKAGE_NAME is the name you have chosen from the previous command and in case you are in a MULTI-DOMAIN environment specify the DOMAIN_NAME too (-d is OPTIONAL):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp;java -jar web_api_show_package-jar-with-dependencies.jar -k &amp;lt;PACKAGE NAME&amp;gt; -d &amp;lt;DOMAIN NAME&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a new tgz file which you will use as is to import into Expedition Importation page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Exporting&amp;nbsp;Routing and interfaces&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the Firewall CLI, you can run the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;netstat -nr &amp;gt; routes.txt&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With all this information, we can go to Expedition, Create a new Project, enter the Project, and go to IMPORT &amp;gt;&amp;nbsp;CHECKPOINT &amp;gt; VERSION R80.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Assign a name to your configuration such as "MyInternetGW"&lt;/LI&gt;
&lt;LI&gt;Select the tgz file and attache it to the proper input&lt;/LI&gt;
&lt;LI&gt;Select the routes.txt for the routes&lt;/LI&gt;
&lt;LI&gt;Click UPLOAD&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References: &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Show-Package-Tool-to-visualize-a-R80-policy-package-over-HTML/td-p/39821/page/2" target="_blank" rel="noopener"&gt;Checkpoint Website article about the show package tool&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 11 Dec 2020 09:39:11 GMT</pubDate>
    <dc:creator>alestevez</dc:creator>
    <dc:date>2020-12-11T09:39:11Z</dc:date>
    <item>
      <title>Migrating Checkpoint R80 [UPDATED on December 2020]</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/ta-p/216298</link>
      <description>&lt;P&gt;With the new version of Checkpoint Smartcenter R80, the way to obtain the rules has changed.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Exporting Configuration&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To export the configuration from a Checkpoint R80 we are gonna need to download a tool from the Checkpoint's Github. We want to be sure we download latest version of the tool since the one it comes installed in your SmartCenter usually is old and may contain bugs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So first open your preferred web browser and go to:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://github.com/CheckPointSW/ShowPolicyPackage/releases&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check the latest, at the moment of updating this post latest version was 2.0.6, so in order to download it we have to click on the file named: &lt;STRONG&gt;web_api_show_package-jar-with-dependencies.jar&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;https://github.com/CheckPointSW/ShowPolicyPackage/releases/download/V2.0.6/web_api_show_package-jar-with-dependencies.jar&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After download the file you have to UPLOAD it to your SmartCenter Server where Checkpoint R80 management is running.&lt;/P&gt;
&lt;P&gt;Use your &lt;A href="https://en.wikipedia.org/wiki/Secure_copy_protocol#:~:text=Secure%20copy%20protocol%20(SCP)%20is,Protocol%20and%20the%20program%20itself." target="_blank" rel="noopener"&gt;SCP&lt;/A&gt; preferred tool to do it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please read the README.md file shown in&amp;nbsp;&lt;A href="https://github.com/CheckPointSW/ShowPolicyPackage" target="_blank"&gt;https://github.com/CheckPointSW/ShowPolicyPackage&lt;/A&gt;&amp;nbsp;to understand how to run the downloaded file properly, pay special attention to the &lt;A href="https://github.com/CheckPointSW/ShowPolicyPackage#examples" target="_blank" rel="noopener"&gt;Examples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Before you run the command verify the Checkpoint API is running otherwise this tool will fail to execute. Please &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/td-p/32641" target="_blank" rel="noopener"&gt;read this&lt;/A&gt; if you don' t know how to enable/verify if your API is UP and Running&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now you can RUN the tool from CLI as EXPERT&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;java -jar web_api_show_package-jar-with-dependencies.jar -v&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output from that command will let you know what Packages are available to export&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Last command we have to run is the following where PACKAGE_NAME is the name you have chosen from the previous command and in case you are in a MULTI-DOMAIN environment specify the DOMAIN_NAME too (-d is OPTIONAL):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;&amp;nbsp;java -jar web_api_show_package-jar-with-dependencies.jar -k &amp;lt;PACKAGE NAME&amp;gt; -d &amp;lt;DOMAIN NAME&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This will create a new tgz file which you will use as is to import into Expedition Importation page.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;U&gt;&lt;STRONG&gt;Exporting&amp;nbsp;Routing and interfaces&lt;/STRONG&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the Firewall CLI, you can run the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;netstat -nr &amp;gt; routes.txt&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With all this information, we can go to Expedition, Create a new Project, enter the Project, and go to IMPORT &amp;gt;&amp;nbsp;CHECKPOINT &amp;gt; VERSION R80.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Assign a name to your configuration such as "MyInternetGW"&lt;/LI&gt;
&lt;LI&gt;Select the tgz file and attache it to the proper input&lt;/LI&gt;
&lt;LI&gt;Select the routes.txt for the routes&lt;/LI&gt;
&lt;LI&gt;Click UPLOAD&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;References: &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Show-Package-Tool-to-visualize-a-R80-policy-package-over-HTML/td-p/39821/page/2" target="_blank" rel="noopener"&gt;Checkpoint Website article about the show package tool&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 09:39:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/ta-p/216298</guid>
      <dc:creator>alestevez</dc:creator>
      <dc:date>2020-12-11T09:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/223561#M44</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I can not migrate sub policies in the security policies. Is there a fix for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Jul 2018 14:54:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/223561#M44</guid>
      <dc:creator>SezgiDogan</dc:creator>
      <dc:date>2018-07-25T14:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231295#M59</link>
      <description>&lt;P&gt;This isn't working, keep getting the following error:&lt;/P&gt;
&lt;P&gt;Running:&lt;/P&gt;
&lt;P&gt;SMS01-CKPT&amp;gt; mgmt_cli show access-rulebase name "Test-Policy Security" details-level "full" use-object-dictionary true --format json &amp;gt; Test-Policy.json&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Keep getting:&lt;/P&gt;
&lt;P&gt;MGMT9000 {&lt;BR /&gt; "code" : "generic_err_invalid_parameter_name",&lt;BR /&gt; "message" : "Unrecognized parameter [&amp;gt;]"&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 19:00:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231295#M59</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-09-18T19:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231297#M60</link>
      <description>&lt;P&gt;You have to be "expert" to run the command and redirect the output to a file&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 19:50:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231297#M60</guid>
      <dc:creator>alestevez</dc:creator>
      <dc:date>2018-09-18T19:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231312#M61</link>
      <description>&lt;P&gt;I ran the command in expert mode and the file generated correctly, however I have tried to import into the Expedition tool and each time it states&amp;nbsp;&lt;SPAN&gt;There are not Objects defined. Import Failed!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;THis is being completed on a SMS R80.10 VM&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:37:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231312#M61</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-09-18T20:37:59Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231313#M62</link>
      <description>&lt;P&gt;&lt;A href="https://live.paloaltonetworks.com/t5/Expedition-Discussions/How-to-Upload-configuration-files-bigger-than-2MB/m-p/215689#M14" target="_blank"&gt;https://live.paloaltonetworks.com/t5/Expedition-Discussions/How-to-Upload-configuration-files-bigger-than-2MB/m-p/215689#M14&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Sep 2018 20:39:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231313#M62</guid>
      <dc:creator>alestevez</dc:creator>
      <dc:date>2018-09-18T20:39:58Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231492#M63</link>
      <description>&lt;P&gt;Completed all the config associated with that link &lt;A title="How to Upload conf files" href="https://live.paloaltonetworks.com/t5/Expedition-Discussions/How-to-Upload-configuration-files-bigger-than-2MB/m-p/215689#M14" target="_blank"&gt;How to Upload conf files&lt;/A&gt;&amp;nbsp;with no luck. I have attempted to complete this instructions in this thread EXACTLY as perscribed with the most progress being the Import progress status flapping between Initializing and Reading Config.... of which it continues this back and forth for quite sometime.&lt;/P&gt;
&lt;P&gt;Next I attempted this option outlined in this thread&lt;/P&gt;
&lt;P&gt;&lt;A title="Issue Getting Checkpoint R80 config to load" href="https://live.paloaltonetworks.com/t5/Expedition-Discussions/Issues-getting-a-Checkpoint-R80-config-to-load-into-the/td-p/215337" target="_blank"&gt;Issue Getting Checkpoint R80 config to load&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;No luck there.&lt;/P&gt;
&lt;P&gt;I only have 162 rules, no NAT rules, but a bunch of objects since this is an SMS with multiple policies.&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 15:31:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231492#M63</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-09-19T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231509#M64</link>
      <description>&lt;P&gt;RESOLVED: The issue was with the .json files and piping the output to a seperate file. The commands above are correct, however the output files were adding the following "Username" at the TOP of the file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Username: &lt;BR /&gt;{&lt;BR /&gt; "uid" : "1cxxxx6-3bff-4xxxxxx8-7xxxxxxxxx",&lt;BR /&gt; "name" : "blah-blah",&lt;BR /&gt; "rulebase" : [ ],&lt;BR /&gt; "total" : 111&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This appears to be an issue/bug within the R80.10 code when doing outputs to a file as this "Username" is coming from the prompt before launching the api call.&lt;/P&gt;
&lt;P&gt;Once this "Username:" line was removed from the json file, the import worked as expected.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Sep 2018 18:20:59 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/231509#M64</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-09-19T18:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234574#M90</link>
      <description>&lt;P&gt;I have confirmed there is a limitation on the Checkpoints of 500 rules when exporting through the API. With our environment, I had to break it up into groups of 200 due to time out and RAM issues.&lt;/P&gt;
&lt;P&gt;I have yet to get the zip file with the orders.txt file to work as perscribed above. I am on the latest version of the expedition tool and when I upload it, it will transistion from initilizing to reading config files, but stalls from there.&lt;/P&gt;
&lt;P&gt;Anyone else ran into issues like this or did something change with the new version?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Oct 2018 14:58:25 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234574#M90</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-10-09T14:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234694#M91</link>
      <description>&lt;P&gt;Just want to ask you one question that suppose security and NAT policies count around 1500 rules then what is the best way to export policy in one file. Otherwise. I have to export the security policy in 400 rules count like below and zip it one folder.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;mgmt_cli show access-rulebase offset 0 limit 400 name "Internet Security" details-level "full" use-object-dictionary true --format json &amp;gt; RuleSet_0_400.json&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;mgmt_cli show access-rulebase offset 401 limit 800 name "Internet Security" details-level "full" use-object-dictionary true --format json &amp;gt; RuleSet_401_800.json&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli show access-rulebase offset 801 limit 1200 name "Internet Security" details-level "full" use-object-dictionary true --format json &amp;gt; RuleSet_801_1200.json&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli show access-rulebase offset&amp;nbsp;1201 limit 1500 name "Internet Security" details-level "full" use-object-dictionary true --format json &amp;gt; RuleSet_1201_1500.json&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 06:35:21 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234694#M91</guid>
      <dc:creator>AR00473455</dc:creator>
      <dc:date>2018-10-10T06:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234756#M92</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/93427"&gt;@AR00473455&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;It is my understanding that the limitations are 500 for any of the rule sets according to Checkpoint. NAT and Security are treated as 2 SEPERATE groups. For example if you have 1000 security rules and 200 NATs; you will need 2 seperate security rules files of 500 each and 1 NAT rule file.&lt;BR /&gt;&lt;BR /&gt;This being said I have yet to get the zip file proceedure to work and actually had to export out my security policies in seperate files as perscribed, but then manually merge the files into 1 .json file using notepad++.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Won't lie, it would be great if the zip proceedure worked&lt;/P&gt;</description>
      <pubDate>Wed, 10 Oct 2018 13:16:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/234756#M92</guid>
      <dc:creator>Gun-Slinger</dc:creator>
      <dc:date>2018-10-10T13:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/236190#M93</link>
      <description>&lt;P&gt;To let the ZIP procedure work you have to be sure at the time to create the zip there are no Folders inside it, so create the zip like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;cd wherealljsonfiles_plus_order_are
zip checkpoint.zip *&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 14:06:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/236190#M93</guid>
      <dc:creator>alestevez</dc:creator>
      <dc:date>2018-10-19T14:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/241015#M105</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are a few misconceptions of what each command does in your procedure, first of all "limit" is the number of results after the specified offset, for instance you set offset to 0 and limit to 400 you get rules 1 to 400.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now the next set of rules you should consider offset 400 instead of 401, if 0=1 then 400=401 in the offset counting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also it's a pain to always have to request the customer for username and password and the command you wrote "hides" username request, my suggestion to update and works like a charm, do has you like:&lt;/P&gt;
&lt;P&gt;Step1&lt;/P&gt;
&lt;P&gt;#mgmt_cli login (when asked the customer should type his username and password here)&lt;/P&gt;
&lt;P&gt;Step2&lt;/P&gt;
&lt;P&gt;Copy output of the result login to a file, for the sake of my example I used id.txt&lt;/P&gt;
&lt;P&gt;This id lets you reuse the logged in session id, with an idle timeout of 10 minutes, more then enough to run all queries, even for quite big rulebases like in my test scenario 2569 rules (don't ask...)&lt;/P&gt;
&lt;P&gt;Step 3 run your instructions with slit differences...limit as I explained should be set to 400, you are right 400 is good number, although it allows up to 500, in rulebase it normally crashes the api or it times out, so:&lt;/P&gt;
&lt;P&gt;Also it's good idea to set limit and the default value is 50 so you don't want to think you have it all, but the end file will tell you a tip.&lt;/P&gt;
&lt;P&gt;Myscript:&lt;/P&gt;
&lt;P&gt;mgmt_cli show access-rulebase offset 0 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 400 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 800 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 1200 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 1600 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 2000 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;BR /&gt;mgmt_cli show access-rulebase offset 2400 limit 400 name "ASecurityPolicy Security" details-level "full" use-object-dictionary true --format json -s id.txt &amp;gt; RuleSet_`date +%y%m%d%H%M%S`.json&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tail each result:&lt;/P&gt;
&lt;P&gt;[Expert@gw-83919d:0]# tail RuleSet_181123160805.json&lt;BR /&gt;&amp;nbsp; "from" : 1,&lt;BR /&gt;&amp;nbsp; "to" : 400,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123161507.json&lt;BR /&gt;&amp;nbsp; "from" : 401,&lt;BR /&gt;&amp;nbsp; "to" : 800,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123180927.json&lt;BR /&gt;&amp;nbsp; "from" : 801,&lt;BR /&gt;&amp;nbsp; "to" : 1200,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123181125.json&lt;BR /&gt;&amp;nbsp; "from" : 1201,&lt;BR /&gt;&amp;nbsp; "to" : 1600,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123181317.json&lt;BR /&gt;&amp;nbsp; "from" : 1601,&lt;BR /&gt;&amp;nbsp; "to" : 2000,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123181509.json&lt;BR /&gt;&amp;nbsp; "from" : 2001,&lt;BR /&gt;&amp;nbsp; "to" : 2400,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;BR /&gt;[Expert@gw-83919d:0]# tail RuleSet_181123181635.json&lt;BR /&gt;&amp;nbsp; "from" : 2401,&lt;BR /&gt;&amp;nbsp; "to" : 2569,&lt;BR /&gt;&amp;nbsp; "total" : 2569&lt;BR /&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE: See "total" in the end of file? 2569 is the total number of rules, so has a tip you will know if you have reached "to" the last rule when "total" and "to" matches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The rest is just fine.&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Nov 2018 18:54:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/241015#M105</guid>
      <dc:creator>cpsantos</dc:creator>
      <dc:date>2018-11-23T18:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242972#M108</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello All.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am trying to run below command on checkpoint&amp;nbsp; management center for security policy contains around 1500 security policies. So I am runing the below command to fecth the policy in 400 offset limit&amp;nbsp; however i have not received output in the file and size 1KB size.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli show access-rulebase offset 0 limit 400 name "Internet Security" details-level "full" use-object-dictionary true -u username --format -json &amp;gt; RuleSet_0_400.json.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;When I opend the 1 KB size file. The content shows timeout reached.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:19:50 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242972#M108</guid>
      <dc:creator>AR00473455</dc:creator>
      <dc:date>2018-12-12T11:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242973#M109</link>
      <description>&lt;P&gt;Probably is Checkpoint API problem, try to reduce to 100 instead of 400 and see...&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:24:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242973#M109</guid>
      <dc:creator>alestevez</dc:creator>
      <dc:date>2018-12-12T11:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242986#M110</link>
      <description>&lt;P&gt;Hi AR00473455,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check Point api can expire during your query hence the timeout, reducing the limit might help, but there are other issues to look at.&lt;/P&gt;
&lt;P&gt;details-level "full" calls in new queries, like listing "hosts, networks, groups, services tcp/udp/other, and again service-groups, etc" unfortunately there are also limits to this new queries, and in some cases only running rule by rule will do, or even worse big rule can even crash the api, I noticed that a rule with a big list of hosts will crash the api, grouping them in a group however helps it get fixed, but other issues show up, like unexported objects within the show rulebase command, producing UID network objects with 1.1.1.1, I do have to say it's a nice trick from Albert's team at PaloAlto, but never the less this needs to get fixed by exporting smaller and smaller data through the api and compile this for Expedition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards, I hope reducing the limit like Albert says works for you, it's not working for me with some rules anyway, but I hope I'll get it fixed using the api and will share it here once I figure it out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Carlos Santos&lt;/P&gt;</description>
      <pubDate>Wed, 12 Dec 2018 11:58:29 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/242986#M110</guid>
      <dc:creator>cpsantos</dc:creator>
      <dc:date>2018-12-12T11:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/243424#M112</link>
      <description>&lt;P&gt;Hi Albert/Carlos,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It worked,. Started to get output when I set limit to 100 so each file contains 100 rules. The same limit applied for NAT rules as well.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;However I would like to know that how to combine all files into one file to process on Expedition tool . As I have done the same way what mentioned in the above article but not worked.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After we created all the json files we will need to create a new file and we will name it "order" to put inside the filenames in the order they need to be read, like in this example:&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Edit "order" file&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;NATRuleSet_0_500.json&lt;BR /&gt;NATRuleSet_501_600.json&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After that we have to ZIP it, to do it right all these 3 files needs to be under the same folder and from within the folder we can run the command from the CLI:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;zip NatRules.zip *&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Dec 2018 04:24:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/243424#M112</guid>
      <dc:creator>AR00473455</dc:creator>
      <dc:date>2018-12-16T04:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/261345#M139</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/93427"&gt;@AR00473455&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for not replying, you cannot combine the files, just add them to a the zip, along with "order" file, the content of the order file should be the list of the rules by order top down, that's it.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2019 12:05:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/261345#M139</guid>
      <dc:creator>cpsantos</dc:creator>
      <dc:date>2019-05-16T12:05:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/280798#M165</link>
      <description>&lt;P&gt;This thread has been helpful, however when I go to import the created zip files into expedition it hangs on "Reading config files" with no error or indication as to what's happening. Any insight into system generated logs or ways to determine what's causing this problem?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 15:14:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/280798#M165</guid>
      <dc:creator>rkalinowski</dc:creator>
      <dc:date>2019-08-02T15:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migrating Checkpoint R80</title>
      <link>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/286325#M171</link>
      <description>&lt;P&gt;You can search for something /tmp/error, from my side it wasn't very helpful, maybe you get luck here.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Sep 2019 15:03:00 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/expedition-articles/migrating-checkpoint-r80-updated-on-december-2020/tac-p/286325#M171</guid>
      <dc:creator>cpsantos</dc:creator>
      <dc:date>2019-09-03T15:03:00Z</dc:date>
    </item>
  </channel>
</rss>

