<?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 import R80.X policy pack by perl script import_policy_pack.pl in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/38973#M2385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear CheckMates I create a perl script that helps me to import an R80.X policy from an CSV file exported from my R80.10 management upgradaded from R77.30.&lt;/P&gt;&lt;P&gt;the most important thing is that you must export an csv file from R80.X smartconsole following this example:&lt;/P&gt;&lt;P&gt;No.,Type,Name,Source,Destination,VPN,Services &amp;amp; Applications,Content,Time,Action,Track,Install On,Comments&lt;/P&gt;&lt;P&gt;Comments can be un-exported..&lt;/P&gt;&lt;P&gt;and delete the first 2 rows ( the file must start with the rule n1)&lt;/P&gt;&lt;P&gt;copy the script and the file exported on a TMP folder&lt;/P&gt;&lt;P&gt;create a directory called "file_import"&lt;/P&gt;&lt;P&gt;open the perl script "import_policy_pack.pl" and under "print CREA_RULES "prova" modify prova with the name of your layer od insert a variable.&lt;/P&gt;&lt;P&gt;then you can exec "./import_policy_pack.pl&amp;nbsp; file_exported.csv"&lt;/P&gt;&lt;P&gt;it creates 4 files into directory "file_import":&lt;/P&gt;&lt;P&gt;1 creare_regole.csv - the first file to be executed (read inside the file creare_regole.csv the USAGE)&lt;/P&gt;&lt;P&gt;2 add_obj_destinations.csv&lt;/P&gt;&lt;P&gt;3 add_obj_sources.csv&lt;/P&gt;&lt;P&gt;4 add_services.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these files popolate the "destination" - "source" , and "services"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB.. the exported file can't contains INLINE LAYERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 10:00:57 GMT</pubDate>
    <dc:creator>Gabriele_Di_Gia</dc:creator>
    <dc:date>2017-08-23T10:00:57Z</dc:date>
    <item>
      <title>import R80.X policy pack by perl script import_policy_pack.pl</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/38973#M2385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear CheckMates I create a perl script that helps me to import an R80.X policy from an CSV file exported from my R80.10 management upgradaded from R77.30.&lt;/P&gt;&lt;P&gt;the most important thing is that you must export an csv file from R80.X smartconsole following this example:&lt;/P&gt;&lt;P&gt;No.,Type,Name,Source,Destination,VPN,Services &amp;amp; Applications,Content,Time,Action,Track,Install On,Comments&lt;/P&gt;&lt;P&gt;Comments can be un-exported..&lt;/P&gt;&lt;P&gt;and delete the first 2 rows ( the file must start with the rule n1)&lt;/P&gt;&lt;P&gt;copy the script and the file exported on a TMP folder&lt;/P&gt;&lt;P&gt;create a directory called "file_import"&lt;/P&gt;&lt;P&gt;open the perl script "import_policy_pack.pl" and under "print CREA_RULES "prova" modify prova with the name of your layer od insert a variable.&lt;/P&gt;&lt;P&gt;then you can exec "./import_policy_pack.pl&amp;nbsp; file_exported.csv"&lt;/P&gt;&lt;P&gt;it creates 4 files into directory "file_import":&lt;/P&gt;&lt;P&gt;1 creare_regole.csv - the first file to be executed (read inside the file creare_regole.csv the USAGE)&lt;/P&gt;&lt;P&gt;2 add_obj_destinations.csv&lt;/P&gt;&lt;P&gt;3 add_obj_sources.csv&lt;/P&gt;&lt;P&gt;4 add_services.csv&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;these files popolate the "destination" - "source" , and "services"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NB.. the exported file can't contains INLINE LAYERS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 10:00:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/38973#M2385</guid>
      <dc:creator>Gabriele_Di_Gia</dc:creator>
      <dc:date>2017-08-23T10:00:57Z</dc:date>
    </item>
    <item>
      <title>Re: import R80.X policy pack by perl script import_policy_pack.pl</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/127869#M6172</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I have tried to do as explained and the error I get is that the file doesn't exist even I'm in the working directory. It looks like there is no pearl interpreter. I have Check_Point_R80.40_T294 fresh installed on a VM in VMware Workstation, 8GB RAm, 2 CPU 8Cores, 60GB HDD.&lt;/P&gt;&lt;P&gt;then I have copied via Mobaxterm the desired csv file and the extracted import_policy_pack.pl file under /tmp/file_import.&lt;/P&gt;&lt;P&gt;By runnig the "./import_policy_pack.pl" policy-td.csv" I end up with a "&amp;gt;" where nothing happens. What should I do?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;[Expert@SMS-template:0]# "./import_policy_pack.pl" policy-td.csv"&lt;BR /&gt;&amp;gt;&lt;BR /&gt;&amp;gt; ^C&lt;/P&gt;&lt;P&gt;I have changed the number of quotes and spaces and place, but I get this:&lt;/P&gt;&lt;P&gt;[Expert@SMS-template:0]# "./import_policy_pack.pl" "policy-td.csv"&lt;/P&gt;&lt;P&gt;-bash: ./import_policy_pack.pl: /usr/bin/perl: bad interpreter: No such file or directory&lt;BR /&gt;[Expert@SMS-template:0]# "./import_policy_pack.pl" policy-td.csv&lt;BR /&gt;-bash: ./import_policy_pack.pl: /usr/bin/perl: bad interpreter: No such file or directory&lt;BR /&gt;[Expert@SMS-template:0]# ""./import_policy_pack.pl" policy-td.csv"&lt;BR /&gt;-bash: ./import_policy_pack.pl policy-td.csv: No such file or directory&lt;BR /&gt;[Expert@SMS-template:0]# " ./import_policy_pack.pl policy-td.csv"&lt;BR /&gt;-bash: ./import_policy_pack.pl policy-td.csv: No such file or directory&lt;BR /&gt;[Expert@SMS-template:0]# "./import_policy_pack.pl policy-td.csv"&lt;BR /&gt;-bash: ./import_policy_pack.pl policy-td.csv: No such file or directory&lt;BR /&gt;[Expert@SMS-template:0]# ls-la&lt;BR /&gt;-bash: ls-la: command not found&lt;BR /&gt;[Expert@SMS-template:0]# ls -la&lt;BR /&gt;total 1880&lt;BR /&gt;drwxrwx--- 2 admin root 56 Aug 24 15:40 .&lt;BR /&gt;drwxrwxrwt 8 admin root 4096 Aug 24 15:46 ..&lt;BR /&gt;-rwxr-xr-x 1 admin root 2742 Aug 24 11:46 import_policy_pack.pl&lt;BR /&gt;-rw-rw---- 1 admin root 1909823 Aug 24 11:50 policy-td.csv&lt;/P&gt;&lt;P&gt;Please let me know what I am doing wrong here.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Adrian&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:15:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/127869#M6172</guid>
      <dc:creator>ab-cyber</dc:creator>
      <dc:date>2021-08-24T15:15:51Z</dc:date>
    </item>
    <item>
      <title>Re: import R80.X policy pack by perl script import_policy_pack.pl</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/127870#M6173</link>
      <description>&lt;P&gt;We do not include a perl interpreter on the Check Point management.&lt;BR /&gt;I believe this must be run on another system.&lt;BR /&gt;For something you can run on the management itself that serves a similar purpose:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-API-Example-for-exporting-importing-and-deleting-different/m-p/40850#M2766&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 15:15:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/import-R80-X-policy-pack-by-perl-script-import-policy-pack-pl/m-p/127870#M6173</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-08-24T15:15:43Z</dc:date>
    </item>
  </channel>
</rss>

