<?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 newly add objects to install-on in bulk/batch using mgmt_cli? in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275653#M46020</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/9372"&gt;@Tomer_Noy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I cannot thank you enough, for much detailed, informative answer.&lt;/P&gt;
&lt;P&gt;Actually "Replace" method in WhereUsed is a life saver!!!&lt;/P&gt;
&lt;P&gt;That is the easiest way to achieve what I need to do. Much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saitoh&lt;/P&gt;</description>
    <pubDate>Fri, 17 Apr 2026 00:39:36 GMT</pubDate>
    <dc:creator>saitoh</dc:creator>
    <dc:date>2026-04-17T00:39:36Z</dc:date>
    <item>
      <title>how to newly add objects to install-on in bulk/batch using mgmt_cli?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275618#M46011</link>
      <description>&lt;P&gt;Hi experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;R82 vm management server with JHF Take 60&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to know the easiest method to add newly added gateway object to Install On of more than 1000 rules of access control policy.&lt;/P&gt;
&lt;P&gt;Adding them to each rule in front of our customers is nightmare &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I tried is:&lt;/P&gt;
&lt;P&gt;1. create csv file which looks like&lt;/P&gt;
&lt;P&gt;command,layer,position,install-on.add&lt;/P&gt;
&lt;P&gt;set access-rule,testpolicy.1.newly_added_gateway&lt;/P&gt;
&lt;P&gt;set access-rule,testpolicy.2.newly_added_gateway ... and so on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. import, and move it to /home/admin/&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. mgmt_cli login&lt;/P&gt;
&lt;P&gt;#mgmt_cli login -u admin -p &amp;gt; id.txt&lt;/P&gt;
&lt;P&gt;pass password prompt&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;4. try mgmt_cli set access-rule --batch&lt;/P&gt;
&lt;P&gt;but it says:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;# mgmt_cli set access-rule --batch /home/admin/installon_add.csv -s id.txt&lt;/SPAN&gt;&lt;SPAN&gt;Line 2: code: "generic_err_invalid_parameter_name"&lt;/SPAN&gt;&lt;SPAN&gt;message: "Unrecognized parameter [command]"&lt;/SPAN&gt;&lt;SPAN&gt;Line 3: code: "generic_err_invalid_parameter_name"&lt;/SPAN&gt;&lt;SPAN&gt;message: "Unrecognized parameter [command]"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;also tried mgmt_cli --batch, but&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;# mgmt_cli --batch /home/admin/installon_add.csv -s id.txt&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Error: No command name was specified!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No idea what to try next.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any comments would be highly appreciated!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Saitoh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:10:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275618#M46011</guid>
      <dc:creator>saitoh</dc:creator>
      <dc:date>2026-04-16T14:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to newly add objects to install-on in bulk/batch using mgmt_cli?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275621#M46014</link>
      <description>&lt;P&gt;Usually i would use a python script for that but if you want to create a csv, i guess the file should look like this:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;layer,rule-number,install-on.add
testpolicy,1,newly_added_gateway
testpolicy,2,newly_added_gateway
testpolicy,3,newly_added_gateway&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;and then something like that:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -r true set access-rule --batch /path/file.csv&lt;/LI-CODE&gt;
&lt;P&gt;&lt;BR /&gt;or so. Hope i have it in mind correctly&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:28:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275621#M46014</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-04-16T14:28:30Z</dc:date>
    </item>
    <item>
      <title>Re: how to newly add objects to install-on in bulk/batch using mgmt_cli?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275625#M46015</link>
      <description>&lt;P&gt;Technically, there are multiple ways to script what you are trying to do.&lt;/P&gt;
&lt;P&gt;But, I would consider looking at the way you manage your target gateways and the Install On column. It's possible that with some changes, you can greatly simplify things and avoid having to do all this work every time you add another gateway.&lt;/P&gt;
&lt;P&gt;In general, every policy package has a definition for the potential installation targets. By default it's set to "All Gateways", but you can (and usually should) set the specific gateways that should get this policy.&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 716px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/34033iDA4A117B1F0428CE/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;When editing your actual FW rulebase, there is &lt;U&gt;no need&lt;/U&gt; to explicitly put your gateways in the Install On column. You can leave the default of "Policy Targets" and your rules will be applied to all gateways that are installed with this package.&lt;/P&gt;
&lt;P&gt;There are of course legitimate cases for applying specific rules only to a subset of the gateways that get this policy. Usually this doesn't include all rules, but can still include a large number.&lt;BR /&gt;In such cases, it's advised to create a Network Object group and place the relevant gateways in that group. Then put that group in the Install On column. When you have another gateway that should get the same rules, just add that gateway to the group. Using groups keeps the entire policy more organized (also for Source and Destination columns).&lt;/P&gt;
&lt;P&gt;Make sure to only place gateways in that group, otherwise it won't let you put that group in the Install On cell.&lt;/P&gt;
&lt;P&gt;You might want to create a script to identify all the rules that currently reference the set of gateways and modify the Install On to reference the new group. This would be a one-time effort.&lt;/P&gt;
&lt;P&gt;You can also use the "Where Used" dialog with the "Replace" option and choose one of the gateways and replace all references to it with the group. Just do it carefully since you may not want to accidentally replace references in other contexts.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Replace Where Used.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/34034i1F8642232B62E8AB/image-size/large?v=v2&amp;amp;px=999" role="button" title="Replace Where Used.png" alt="Replace Where Used.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;You can double-check your changes before you publish with the Changes Report.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Changes Report.png" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/34035i9ADEBAE2F17EDB32/image-size/large?v=v2&amp;amp;px=999" role="button" title="Changes Report.png" alt="Changes Report.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:48:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275625#M46015</guid>
      <dc:creator>Tomer_Noy</dc:creator>
      <dc:date>2026-04-16T14:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to newly add objects to install-on in bulk/batch using mgmt_cli?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275626#M46016</link>
      <description>&lt;P&gt;I’d originally included ‘Install on’ in my post as well, but somehow I deleted a paragraph before sending it.&lt;/P&gt;
&lt;P&gt;Head —&amp;gt; Table&lt;/P&gt;</description>
      <pubDate>Thu, 16 Apr 2026 14:59:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275626#M46016</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-04-16T14:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to newly add objects to install-on in bulk/batch using mgmt_cli?</title>
      <link>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275653#M46020</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/9372"&gt;@Tomer_Noy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I cannot thank you enough, for much detailed, informative answer.&lt;/P&gt;
&lt;P&gt;Actually "Replace" method in WhereUsed is a life saver!!!&lt;/P&gt;
&lt;P&gt;That is the easiest way to achieve what I need to do. Much appreciated!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Saitoh&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2026 00:39:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/how-to-newly-add-objects-to-install-on-in-bulk-batch-using-mgmt/m-p/275653#M46020</guid>
      <dc:creator>saitoh</dc:creator>
      <dc:date>2026-04-17T00:39:36Z</dc:date>
    </item>
  </channel>
</rss>

