<?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 Export The Rule Base and NAT use API Command? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159391#M7190</link>
    <description>&lt;P&gt;Right, because what SmartConsole shows you is the policy package name.&lt;BR /&gt;A policy package is made up of one or more layers, one or more of which is an access-rulebase.&lt;BR /&gt;What you need to know is the name of the relevant layer(s).&amp;nbsp;&lt;BR /&gt;To get that easily, use show package:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-package~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-package~v1.8%20&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Example: mgmt_cli -r true show package name Network&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2022 18:43:20 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2022-10-12T18:43:20Z</dc:date>
    <item>
      <title>How to Export The Rule Base and NAT use API Command?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159390#M7189</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have some issue when trying to export the rule base and NAT.&lt;/P&gt;&lt;P&gt;The problem appears when I try to execute this command&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;show access-rulebase offset 0 limit 20 name "Network" details-level "standard" use-object-dictionary true  --format json&lt;/PRE&gt;&lt;P&gt;but I confuse with the value of Network, I try to change it to Policy Name, but the result is not found that the object.&lt;/P&gt;&lt;P&gt;I also try on my lab, for that command, and if I used Network the command will successfully execute, but if I use standard, which is my package policy on lab it's not working.&lt;/P&gt;&lt;P&gt;Does anyone know what it refers for a value name?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Actually, I try to export this rule base and NAT for migration from CP to Palo Alto, since my customer used expedition tools for migration.&lt;/P&gt;&lt;P&gt;I also attached, the capture requirement for using migrate tool Palo alto, it seems to use mgmt_cli but I refer use smartconsole CLI because i think it's almost&amp;nbsp; same.&lt;/P&gt;&lt;P&gt;For NAT command I already successfully execute the rest only for the rule base.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If my explanation is not clear, please let me know.&lt;/P&gt;&lt;P&gt;Thanks Regards&lt;/P&gt;&lt;P&gt;Dio Aditya Pradana&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 18:18:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159390#M7189</guid>
      <dc:creator>Adity12</dc:creator>
      <dc:date>2022-10-12T18:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export The Rule Base and NAT use API Command?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159391#M7190</link>
      <description>&lt;P&gt;Right, because what SmartConsole shows you is the policy package name.&lt;BR /&gt;A policy package is made up of one or more layers, one or more of which is an access-rulebase.&lt;BR /&gt;What you need to know is the name of the relevant layer(s).&amp;nbsp;&lt;BR /&gt;To get that easily, use show package:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-package~v1.8%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-package~v1.8%20&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;Example: mgmt_cli -r true show package name Network&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 18:43:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159391#M7190</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-10-12T18:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export The Rule Base and NAT use API Command?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159392#M7191</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/7"&gt;@PhoneBoy&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your feedback, I also try another command for smartconsole CLI, and the result I can execute for show access rulebase.&lt;/P&gt;&lt;P&gt;But do you have any way to copy and paste to a file or export by command? for now, I just drag all output from above until down and copy it to the file, and then I change it to a JSON file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Regards&lt;/P&gt;&lt;P&gt;Dio Aditya Pradana&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 19:06:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159392#M7191</guid>
      <dc:creator>Adity12</dc:creator>
      <dc:date>2022-10-12T19:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to Export The Rule Base and NAT use API Command?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159397#M7192</link>
      <description>&lt;P&gt;Not from SmartConsole CLI.&lt;BR /&gt;mgmt_cli from the gateway or management can output its results directly in JSON when called with --format json&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2022 21:20:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-Export-The-Rule-Base-and-NAT-use-API-Command/m-p/159397#M7192</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-10-12T21:20:32Z</dc:date>
    </item>
  </channel>
</rss>

