<?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: Export a rulebase as a CSV file in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40136#M2608</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, this prints the rulebases from the Standard package.&lt;/P&gt;&lt;P&gt;Please note that this is only an example script from&amp;nbsp;3 years ago to show&amp;nbsp;management API capabilities.&lt;/P&gt;&lt;P&gt;If you've some Python scripting knowledge, you can add a package parameter to make it work.&lt;/P&gt;&lt;P&gt;If not, I can do this for you next week.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Aug 2018 20:05:53 GMT</pubDate>
    <dc:creator>Robert_Decker</dc:creator>
    <dc:date>2018-08-09T20:05:53Z</dc:date>
    <item>
      <title>Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40132#M2604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;H2&gt;Overview&lt;/H2&gt;&lt;P&gt;Export a security policy as a standard csv file.&lt;/P&gt;&lt;P&gt;Supports Access, NAT and Threat policies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Description&lt;/H2&gt;&lt;P&gt;A python 2.7 code that demonstrate how to use the show-access/NAT/threat-rulebase api&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Instructions&lt;/H2&gt;&lt;P&gt;Run rulebasecsv.py&lt;/P&gt;&lt;P&gt;Use -h flag for available options.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Code Version&lt;/H2&gt;&lt;P&gt;Code version 1.0.1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2&gt;Tested on version&lt;/H2&gt;&lt;P&gt;R80, API version 1.0&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;R80.10, API version 1.1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="font-size: 13px; color: #ff0000;"&gt;&lt;STRONG&gt;NOTICE: &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.6667px; color: #999999;"&gt;&lt;STRONG&gt;By using this sample code you agree to terms and conditions in this &lt;A href="https://community.checkpoint.com/docs/DOC-1042"&gt;Terms and Conditions&lt;/A&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-align: center;"&gt;&lt;SPAN style="font-size: 10pt;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 07:25:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40132#M2604</guid>
      <dc:creator>Uri_Bialik</dc:creator>
      <dc:date>2015-12-17T07:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40133#M2605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does any one have an example working syntax for exporting different policy packages. at the moment I only seem to be able to extract the current open policy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 14:56:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40133#M2605</guid>
      <dc:creator>SDE_License_Acc</dc:creator>
      <dc:date>2018-08-09T14:56:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40134#M2606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Quoting from above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;H2 style="color: #000000; background-color: #ffffff; border: 0px; font-weight: 600; font-size: 22px;"&gt;&lt;EM&gt;Instructions&lt;/EM&gt;&lt;/H2&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;EM&gt;Run rulebasecsv.py&lt;/EM&gt;&lt;/P&gt;&lt;P style="color: #333333; background-color: #ffffff; border: 0px;"&gt;&lt;EM&gt;Use -h flag for available options.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 15:27:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40134#M2606</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2018-08-09T15:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40135#M2607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That does not help as it does not give you the option to change the rulebase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found the only working Syntax to be&amp;nbsp;rulebasecsv.py -o test.4 -u XXXXX -t access -p XXXXXXXX -m XX.XX.XX.XX -i Network this will pull the Standard policy only you try and specify the rulebase name you get the following output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\&amp;gt;rulebasecsv.py -o test -u XXXXX -t access -p XXXXXXXX -m XX.XX.XX.XX -i "Phil_Test"&lt;BR /&gt; |--- &amp;gt;&amp;gt;&amp;gt; Error occured: Requested object [Phil_Test] not found. Error type: generic_err_object_not_found.&lt;BR /&gt; |--- Headers: {'transfer-encoding': 'chunked', '_reason': 'Not Found', '_version': 11, 'server': 'CPWS', 'x-ua-compatible': 'IE=EmulateIE8', 'date': 'Thu, 09 Aug 2018 09:54:59 GMT', 'x-frame-options': 'SAMEORIGIN', 'x-forwarded-host-port': '443', 'content-type': 'application/json', '_status': 404}&lt;BR /&gt; |--- Body: {u'message': u'Requested object [Phil_Test] not found', u'code': u'generic_err_object_not_found'}&lt;BR /&gt;Script aborted.&lt;BR /&gt;All objects were restored to their previous state.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it appears you can not specify specific policy packages to extract unless I am missing the syntax&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 16:18:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40135#M2607</guid>
      <dc:creator>SDE_License_Acc</dc:creator>
      <dc:date>2018-08-09T16:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40136#M2608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You are correct, this prints the rulebases from the Standard package.&lt;/P&gt;&lt;P&gt;Please note that this is only an example script from&amp;nbsp;3 years ago to show&amp;nbsp;management API capabilities.&lt;/P&gt;&lt;P&gt;If you've some Python scripting knowledge, you can add a package parameter to make it work.&lt;/P&gt;&lt;P&gt;If not, I can do this for you next week.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Aug 2018 20:05:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40136#M2608</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2018-08-09T20:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40137#M2609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My python skills are 0 but I will give it a go when I get five minutes no time like the present to learn.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:07:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40137#M2609</guid>
      <dc:creator>SDE_License_Acc</dc:creator>
      <dc:date>2018-08-10T15:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: Export a rulebase as a CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40138#M2610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Check out&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.checkpoint.com/docs/DOC-3472"&gt;SmartConsole Extensions&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;platform&amp;nbsp;to integrate&amp;nbsp;this as a web page&amp;nbsp;inside SmartConsole&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2019 05:48:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Export-a-rulebase-as-a-CSV-file/m-p/40138#M2610</guid>
      <dc:creator>Ron_Izraeli</dc:creator>
      <dc:date>2019-01-29T05:48:41Z</dc:date>
    </item>
  </channel>
</rss>

