<?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: dbedit Script for bulk object creation in Firewall and Security Management</title>
    <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31970#M94691</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/47831"&gt;Kaspars Zibarts&lt;/A&gt;‌ show it correctly. You have right syntaxe, but problem must be in execution. I usually pushing configuration from file, so I'm able to add thousands rows at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In case you want to run script from file, make sure that you have there UNIX end of lines (when you copied file from different filesystem)&lt;/LI&gt;&lt;LI&gt;In production make database revision first!&lt;/LI&gt;&lt;LI&gt;DBEDIT fails and stop in case of first error in your code. This could be annoying when you are using&amp;nbsp;&lt;STRONG&gt;update_all&lt;/STRONG&gt;. For better visibility where the problem is you can update each element separately (you'll see which update line failed). It takes you much more time especially if you run something really big, but it is best for troubleshooting.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to run file?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On localhost:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s localhost -f /somepath/import-file.txt&amp;nbsp;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Under MDS on certain domain:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s &amp;lt;domain server IP&amp;gt; -f /somepath/import-file.txt&amp;nbsp;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In case you need to add more objects, but some with same names already exist in your database, then you can ingnore errors:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s localhost -f /somepath/import-file.txt&amp;nbsp;‍-ignore_script_failure&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here are some simple object code examples (host, network, ip range, group):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Create host 10.0.0.3&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create host_plain host10.0.0.3&lt;BR /&gt;modify network_objects host10.0.0.3 ipaddr 10.0.0.3&lt;BR /&gt;modify network_objects host10.0.0.3 comments "Company Host"&lt;BR /&gt;update network_objects host10.0.0.3&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create network 10.0.0.128/25&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create network net10.0.0.128m25&lt;BR /&gt;modify network_objects net10.0.0.128m25 ipaddr 10.0.0.128&lt;BR /&gt;modify network_objects net10.0.0.128m25 netmask 255.255.255.128&lt;BR /&gt;modify network_objects net10.0.0.128m25 comments "Company network"&lt;BR /&gt;update network_objects net10.0.0.128m25&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create IP range 10.0.0.2-10.0.0.25&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create address_range range10.0.0.2-10.0.0.25&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 ipaddr_first 10.0.0.2&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 ipaddr_last 10.0.0.25&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 comments "server range"&lt;BR /&gt;update network_objects range10.0.0.2-10.0.0.25&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Put all previous to simple group:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create network_object_group branchSubnetGroup&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:host10.0.0.3&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:net10.0.0.128m25&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:range10.0.0.2-10.0.0.25&lt;BR /&gt;modify network_objects branchSubnetGroup comments "Group of objects"&lt;BR /&gt;update network_objects branchSubnetGroup&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More examples you can find in&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/R77/CP_R77_Multi-DomainSecurityManagement_WebAdminGuide/105997.htm#o102260"&gt;Multi-Domain Security Management R77 Versions Administration Guide&lt;/A&gt;&amp;nbsp;. There are examples of rules, renaming, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jun 2018 06:13:46 GMT</pubDate>
    <dc:creator>Petr_Hantak</dc:creator>
    <dc:date>2018-06-19T06:13:46Z</dc:date>
    <item>
      <title>dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31968#M94689</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Hello&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Does anybody have a script to create Network Objects in bulk via CLI using dbedit?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;I have used the below script to create hosts and it did not work. My device is Smart 1-50 running Gaia R77.30&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;create host_plain web_server&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;modify network_objects web_server ipaddr 192.168.1.1&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;update network_objects web_server&lt;/SPAN&gt;&lt;BR style="color: #333333; background-color: #fafafa; font-size: 13px;" /&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;update_all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #fafafa; font-size: 13px;"&gt;Thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 15:35:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31968#M94689</guid>
      <dc:creator>Ravindra_Katrag</dc:creator>
      <dc:date>2018-06-18T15:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31969#M94690</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actual dbedit commands look correct. The question is how do you execute them and what error do you get.&lt;/P&gt;&lt;P&gt;Hopefully you have read the SK&amp;nbsp;&lt;A class="link-titled" href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301" title="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=skI3301"&gt;Editing the objects_5_0.C file via Check Point database editing utilities&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's output of your own commands:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;[Expert@ms01:0]# dbedit&lt;BR /&gt;Enter Server name (ENTER for 'localhost'):&lt;BR /&gt;Please enter a command, -h for help or -q to quit:&lt;BR /&gt;&lt;BR /&gt;dbedit&amp;gt; create host_plain web_server&lt;BR /&gt;&lt;BR /&gt;dbedit&amp;gt; modify network_objects web_server ipaddr 192.168.1.111&lt;BR /&gt;&lt;BR /&gt;dbedit&amp;gt; update network_objects web_server&lt;BR /&gt;web_server updated successfully.&lt;BR /&gt;&lt;BR /&gt;dbedit&amp;gt; update_all&lt;BR /&gt;&lt;BR /&gt;dbedit&amp;gt; print network_objects web_server&lt;BR /&gt;Object Name: web_server&lt;BR /&gt;Object UID: {D864991F-7B18-B641-A6E1-503D440952F2}&lt;BR /&gt;Class Name: host_plain&lt;BR /&gt;Table Name: network_objects&lt;BR /&gt;Last Modified by: System&lt;BR /&gt;Last Modified from: localhost&lt;BR /&gt;Last Modification time: Mon Jun 18 22:05:21 2018&lt;BR /&gt;Fields Details&lt;BR /&gt;--------------&lt;BR /&gt; ‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 20:08:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31969#M94690</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-06-18T20:08:12Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31970#M94691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/migrated-users/47831"&gt;Kaspars Zibarts&lt;/A&gt;‌ show it correctly. You have right syntaxe, but problem must be in execution. I usually pushing configuration from file, so I'm able to add thousands rows at once.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In case you want to run script from file, make sure that you have there UNIX end of lines (when you copied file from different filesystem)&lt;/LI&gt;&lt;LI&gt;In production make database revision first!&lt;/LI&gt;&lt;LI&gt;DBEDIT fails and stop in case of first error in your code. This could be annoying when you are using&amp;nbsp;&lt;STRONG&gt;update_all&lt;/STRONG&gt;. For better visibility where the problem is you can update each element separately (you'll see which update line failed). It takes you much more time especially if you run something really big, but it is best for troubleshooting.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How to run file?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;On localhost:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s localhost -f /somepath/import-file.txt&amp;nbsp;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Under MDS on certain domain:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s &amp;lt;domain server IP&amp;gt; -f /somepath/import-file.txt&amp;nbsp;‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In case you need to add more objects, but some with same names already exist in your database, then you can ingnore errors:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;dbedit -s localhost -f /somepath/import-file.txt&amp;nbsp;‍-ignore_script_failure&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Here are some simple object code examples (host, network, ip range, group):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;Create host 10.0.0.3&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create host_plain host10.0.0.3&lt;BR /&gt;modify network_objects host10.0.0.3 ipaddr 10.0.0.3&lt;BR /&gt;modify network_objects host10.0.0.3 comments "Company Host"&lt;BR /&gt;update network_objects host10.0.0.3&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create network 10.0.0.128/25&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create network net10.0.0.128m25&lt;BR /&gt;modify network_objects net10.0.0.128m25 ipaddr 10.0.0.128&lt;BR /&gt;modify network_objects net10.0.0.128m25 netmask 255.255.255.128&lt;BR /&gt;modify network_objects net10.0.0.128m25 comments "Company network"&lt;BR /&gt;update network_objects net10.0.0.128m25&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Create IP range 10.0.0.2-10.0.0.25&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create address_range range10.0.0.2-10.0.0.25&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 ipaddr_first 10.0.0.2&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 ipaddr_last 10.0.0.25&lt;BR /&gt;modify network_objects range10.0.0.2-10.0.0.25 comments "server range"&lt;BR /&gt;update network_objects range10.0.0.2-10.0.0.25&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Put all previous to simple group:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;create network_object_group branchSubnetGroup&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:host10.0.0.3&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:net10.0.0.128m25&lt;BR /&gt;addelement network_objects branchSubnetGroup '' network_objects:range10.0.0.2-10.0.0.25&lt;BR /&gt;modify network_objects branchSubnetGroup comments "Group of objects"&lt;BR /&gt;update network_objects branchSubnetGroup&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More examples you can find in&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/R77/CP_R77_Multi-DomainSecurityManagement_WebAdminGuide/105997.htm#o102260"&gt;Multi-Domain Security Management R77 Versions Administration Guide&lt;/A&gt;&amp;nbsp;. There are examples of rules, renaming, etc.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 06:13:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31970#M94691</guid>
      <dc:creator>Petr_Hantak</dc:creator>
      <dc:date>2018-06-19T06:13:46Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31971#M94692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Best is wait and see what&amp;nbsp;&lt;A href="https://community.checkpoint.com/migrated-users/48468"&gt;Ravindra Katragadda&lt;/A&gt;&amp;nbsp;has to say &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;i suspected the same but it's good to give people some time to chew on info provided as in turn if you can suss out the problem yourself you might actually remember it instead of someone serving you answer on the plate &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;But yes all info you provided is correct and helpful of course&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 06:21:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31971#M94692</guid>
      <dc:creator>Kaspars_Zibarts</dc:creator>
      <dc:date>2018-06-19T06:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31972#M94693</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Petr Hantak&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you so much for such a detailed explanation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used the below lines to create a script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit;"&gt;create host_plain Block_80.80.80.80&lt;BR /&gt;modify network_objects Block_80.80.80.80 ipaddr 80.80.80.80&lt;BR /&gt;update network_objects Block_80.80.80.80&lt;BR /&gt;update_all&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I saved this into a text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I copied this file to /var/log/ in the MDS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then, I log into MDS, went to the CMA context using mdsenv&amp;nbsp;xx.xx.xx.xx command. Then I ran the below commands&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dos2unix /var/log/test.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dbedit -local -globallock -f /var/log/test.txt &amp;amp;&amp;gt; test_output.txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The output file shows the below error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create &amp;lt;object_type&amp;gt; &amp;lt;object_name&amp;gt;&lt;BR /&gt;Error in line: 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please help me why am I seeing this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 13:52:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31972#M94693</guid>
      <dc:creator>Ravindra_Katrag</dc:creator>
      <dc:date>2018-06-19T13:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31973#M94694</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;First of all, try to execute the commands manually and see if you get the same error, could it be that object already exists?&lt;/P&gt;&lt;P&gt;SK30383:&lt;/P&gt;&lt;UL style="color: #000000; background-color: #ffffff; font-size: 14px;"&gt;&lt;LI&gt;When using the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;&amp;#150;globallock&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;flag,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;savedb&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;should be added at the end of the script (like save button in SmartDashboard).&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 15:17:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31973#M94694</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-06-19T15:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31974#M94695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That Object doesn't exist. It's a new one.&lt;/P&gt;&lt;P&gt;if I change the update_all to savedb, will it work?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 16:16:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31974#M94695</guid>
      <dc:creator>Ravindra_Katrag</dc:creator>
      <dc:date>2018-06-19T16:16:20Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31975#M94696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is an additional command, not a replacement, however it will not remove the error&lt;/P&gt;&lt;P&gt;we recently added a lot of Office 365 hosts and networks and used this format for the host:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create host_plain O365-H-94.245.88.28&lt;BR /&gt;modify network_objects O365-H-94.245.88.28 ipaddr 94.245.88.28&lt;BR /&gt;update network_objects O365-H-94.245.88.28&lt;BR /&gt;update_all&lt;BR /&gt;savedb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this for the networks:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;create network O365-N-94.245.120.64_26&lt;BR /&gt;modify network_objects O365-N-94.245.120.64_26 ipaddr 94.245.120.64&lt;BR /&gt;modify network_objects O365-N-94.245.120.64_26 netmask 255.255.255.192&lt;BR /&gt;update network_objects O365-N-94.245.120.64_26&lt;BR /&gt;update_all&lt;BR /&gt;savedb&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are just the single host and a single network, but if you copy the text above and use VI on the MDS instead of notepad or make sure to use notepad++ or a similar product that can store the file as a linux file so you dont have strange characters in the file.&lt;/P&gt;&lt;P&gt;Double check by doing a cat of you text file on the MDS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jun 2018 17:35:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31975#M94696</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2018-06-19T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: dbedit Script for bulk object creation</title>
      <link>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31976#M94697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried exactly on MDS R77.30 your object and it worked without issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I created file for import on the MDS as new file via VIM editor, paste commands from clipboard and save it.&lt;/LI&gt;&lt;LI&gt;Make sure that there are no special characters there or unexpected spaces&lt;/LI&gt;&lt;LI&gt;I switched MDS context with &lt;EM&gt;mdsenv&lt;/EM&gt; as well.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;It worked fine with&amp;nbsp;&lt;EM style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px;"&gt;–globallock&lt;/EM&gt;&lt;SPAN style="color: #000000; background-color: #ffffff; border: 0px; font-size: 14px; margin: 0px;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;flag and&amp;nbsp;&lt;EM style="color: #333333;"&gt;savedb&lt;/EM&gt;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Jun 2018 11:03:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Firewall-and-Security-Management/dbedit-Script-for-bulk-object-creation/m-p/31976#M94697</guid>
      <dc:creator>Petr_Hantak</dc:creator>
      <dc:date>2018-06-21T11:03:28Z</dc:date>
    </item>
  </channel>
</rss>

