<?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: Can't add multiple hosts to a given group in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94355#M5113</link>
    <description>&lt;P&gt;It should not be necessary to publish in between your API activity.&lt;/P&gt;&lt;P&gt;What you are doing should be possible in a single session.&lt;/P&gt;&lt;P&gt;If you share your script, it may be possible to understand why it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note that in R80.40 you can also use batch APIs to add multiple hosts in a single call for better performance.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 13:11:01 GMT</pubDate>
    <dc:creator>Tomer_Noy</dc:creator>
    <dc:date>2020-08-17T13:11:01Z</dc:date>
    <item>
      <title>Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94279#M5103</link>
      <description>&lt;P&gt;Hey,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using R80.30 and I'm experiencing an odd problem.&amp;nbsp;I am adding multiple hosts using &lt;SPAN&gt;automated process&lt;/SPAN&gt; and the API and linking the hosts to a certain group. The output of all these adding commands indicated that all the hosts were added and the hosts are indeed in the group, but when I preform show group or just looking in the SmartConsole I see that only 3 out of 10 hosts were linked to the group (all the 10 hosts were created successfully, but without the group).&lt;/P&gt;&lt;P&gt;I can edit the hosts with the group afterwards without errors.&amp;nbsp; If I try to add the hosts manually one by one (not using an&amp;nbsp;&lt;SPAN&gt;automated process&lt;/SPAN&gt; or a tool), the hosts are created with the group.&lt;/P&gt;&lt;P&gt;Am I missing something? Is there a limitation to R80.30?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 10:54:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94279#M5103</guid>
      <dc:creator>Gill</dc:creator>
      <dc:date>2020-08-17T10:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94282#M5104</link>
      <description>&lt;P&gt;How do you perform this operations? At first glance, it seems like you don't publish the sessions after adding all objects...&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 17:09:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94282#M5104</guid>
      <dc:creator>FraP</dc:creator>
      <dc:date>2020-08-16T17:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94284#M5105</link>
      <description>&lt;P&gt;Please provide the precise script/code you used to perform these operations.&lt;BR /&gt;Tend to agree, a publish operation was missed somewhere.&lt;/P&gt;</description>
      <pubDate>Sun, 16 Aug 2020 19:07:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94284#M5105</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-08-16T19:07:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94304#M5107</link>
      <description>&lt;P&gt;Thanks for your response.&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the host objects are created successfully using one session, but only few of the host objects are created with groups value.&amp;nbsp;I don't think this problem is related to publish as the objects are created. Do I need to publish after every add host command? that does not seem right...&lt;/P&gt;&lt;P&gt;Could it be a CheckPoint limitation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 10:55:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94304#M5107</guid>
      <dc:creator>Gill</dc:creator>
      <dc:date>2020-08-17T10:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94306#M5108</link>
      <description>&lt;P&gt;Thanks for your response.&lt;/P&gt;&lt;P&gt;All the host objects are created successfully&amp;nbsp;&lt;SPAN&gt;using one session,&lt;/SPAN&gt; but only few of the host objects are created with groups value.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't think this could e a problem related to publish as the objects are created. Do I need to publish after every add host command? that does not seem right...&lt;/P&gt;&lt;P&gt;Could it be a CheckPoint limitation?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 07:51:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94306#M5108</guid>
      <dc:creator>Gill</dc:creator>
      <dc:date>2020-08-17T07:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94317#M5109</link>
      <description>&lt;P&gt;Just create the hosts separately and use the &lt;STRONG&gt;set-group&lt;/STRONG&gt; api to add hosts to an existing group or&amp;nbsp;&lt;STRONG&gt;add-group&lt;/STRONG&gt; to create a new one, both work with lists so you can add multiple hosts. This should work.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:50:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94317#M5109</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2020-08-17T08:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94318#M5110</link>
      <description>&lt;P&gt;This is what I do right now but I was wondering is there are reason that the straight forward way to add new hosts with groups is not working for me.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:52:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94318#M5110</guid>
      <dc:creator>Gill</dc:creator>
      <dc:date>2020-08-17T08:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94319#M5111</link>
      <description>&lt;P&gt;I think that you need to publish after each host that you create/add to a group, if you are using the add-host api.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 08:54:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94319#M5111</guid>
      <dc:creator>funkylicious</dc:creator>
      <dc:date>2020-08-17T08:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94334#M5112</link>
      <description>&lt;P&gt;I don't understand why. I am able to use the same session id to manually add 10 different hosts and add the hosts to a group and than publish. When I do that everything works fine and I am not publishing after every host that I create and add to a group.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Why can't I do this with an automated process? Is there a limitation to CheckPoint regarding adding many hosts to one group?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 10:53:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94334#M5112</guid>
      <dc:creator>Gill</dc:creator>
      <dc:date>2020-08-17T10:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Can't add multiple hosts to a given group</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94355#M5113</link>
      <description>&lt;P&gt;It should not be necessary to publish in between your API activity.&lt;/P&gt;&lt;P&gt;What you are doing should be possible in a single session.&lt;/P&gt;&lt;P&gt;If you share your script, it may be possible to understand why it's not working.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also note that in R80.40 you can also use batch APIs to add multiple hosts in a single call for better performance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 13:11:01 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-t-add-multiple-hosts-to-a-given-group/m-p/94355#M5113</guid>
      <dc:creator>Tomer_Noy</dc:creator>
      <dc:date>2020-08-17T13:11:01Z</dc:date>
    </item>
  </channel>
</rss>

