<?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: Management API adding multiple cluster interfaces different subnets issue in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116828#M5807</link>
    <description>&lt;P&gt;You can use -r true for single commands (in addition to creating a session for reuse).&lt;BR /&gt;I did get some confirmation from R&amp;amp;D this is a known bug (PMTR-68323) which currently doesn’t have a fix.&lt;BR /&gt;Current plan is to fix in R81.20 and backport to the various JHF.&lt;/P&gt;</description>
    <pubDate>Sun, 25 Apr 2021 17:44:55 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-04-25T17:44:55Z</dc:date>
    <item>
      <title>Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116735#M5802</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;We are prepping for a large edit involving around 350 VLAN interfaces on a cluster on R81. These interfaces are using different subnets then the cluster address that will be used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The interfaces have already been discovered and added, but not the cluster addresses. We are are facing an issue with the management api where if we edit more then one interface, when publishing we get the error "The interfaces of all the members in this network must be under the same subnet".&lt;/P&gt;&lt;P&gt;If we publish one interface change at a time it works...&lt;/P&gt;&lt;P&gt;Any ideas on how to A) push this change regardles of the error? or B) Create a script that publishes after every change?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is the example test in lab, you can see that the exact same commands will not work if you try to publish two changes, but if you publish in between them it works fine...&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;RK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXAMPLE - Multiple edits, one publish not working:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli set simple-cluster name ClusterXL-Lab interfaces.update.name eth2.2009 interfaces.update.ip-address 192.168.224.38 interfaces.update.ipv4-mask-length 30 interfaces.update.interface-type cluster interfaces.update.topology INTERNAL interfaces.update.anti-spoofing False interfaces.update.topology-settings.ip-address-behind-this-interface SPECIFIC interfaces.update.topology-settings.specific-network VLAN-2009-group -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:28:11] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;---------------------------------------------&lt;BR /&gt;Time: [12:28:41] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-a6df-896461f5c74e"&lt;BR /&gt;task-name: "set simple-cluster"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- message: "Successfully finished"&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli set simple-cluster name ClusterXL-Lab interfaces.update.name eth2.2010 interfaces.update.ip-address 192.168.224.42 interfaces.update.ipv4-mask-length 30 interfaces.update.interface-type cluster interfaces.update.topology INTERNAL interfaces.update.anti-spoofing False interfaces.update.topology-settings.ip-address-behind-this-interface SPECIFIC interfaces.update.topology-settings.specific-network VLAN-2010-group -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:29:47] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:30:27] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-9336-357fb2189bca"&lt;BR /&gt;task-name: "set simple-cluster"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- message: "Successfully finished"&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli publish -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:31:44] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" in progress (10%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:31:54] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" failed (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-9cc7-b22834c9b3c1"&lt;BR /&gt;task-name: "Publish operation"&lt;BR /&gt;status: "failed"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- fault-message: "The interfaces of all the members in this network must be under the same subnet"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EXAMPLE - One at a time - works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli set simple-cluster name ClusterXL-Lab interfaces.update.name eth2.2009 interfaces.update.ip-address 192.168.224.38 interfaces.update.ipv4-mask-length 30 interfaces.update.interface-type cluster interfaces.update.topology INTERNAL interfaces.update.anti-spoofing False interfaces.update.topology-settings.ip-address-behind-this-interface SPECIFIC interfaces.update.topology-settings.specific-network VLAN-2009-group -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:32:49] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:32:59] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:33:09] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:33:19] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-9080-c941abe633c1"&lt;BR /&gt;task-name: "set simple-cluster"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- message: "Successfully finished"&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli publish -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:34:03] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" in progress (10%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:34:13] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-9c4a-324faa169269"&lt;BR /&gt;task-name: "Publish operation"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- publishResponse:&lt;BR /&gt;numberOfPublishedChanges: 4&lt;BR /&gt;mode: "async"&lt;BR /&gt;revision: "de41ea20-2755-4659-99c3-618eca664f46"&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli set simple-cluster name ClusterXL-Lab interfaces.update.name eth2.2010 interfaces.update.ip-address 192.168.224.42 interfaces.update.ipv4-mask-length 30 interfaces.update.interface-type cluster interfaces.update.topology INTERNAL interfaces.update.anti-spoofing False interfaces.update.topology-settings.ip-address-behind-this-interface SPECIFIC interfaces.update.topology-settings.specific-network VLAN-2010-group -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:34:28] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" in progress (0%)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:35:08] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"set simple-cluster" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-9eb5-91432a7fe863"&lt;BR /&gt;task-name: "set simple-cluster"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- message: "Successfully finished"&lt;/P&gt;&lt;P&gt;[Expert@SMS:0]# mgmt_cli publish -s id.txt&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:35:15] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" in progress (10%)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [12:35:25] 23/4/2021&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" succeeded (100%)&lt;BR /&gt;tasks:&lt;BR /&gt;- task-id: "01234567-89ab-cdef-83d6-dcfe4270d043"&lt;BR /&gt;task-name: "Publish operation"&lt;BR /&gt;status: "succeeded"&lt;BR /&gt;progress-percentage: 100&lt;BR /&gt;suppressed: false&lt;BR /&gt;task-details:&lt;BR /&gt;- publishResponse:&lt;BR /&gt;numberOfPublishedChanges: 4&lt;BR /&gt;mode: "async"&lt;BR /&gt;revision: "9d421d71-21f4-40ee-81c6-4527786ae93e"&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 16:49:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116735#M5802</guid>
      <dc:creator>RKinsp</dc:creator>
      <dc:date>2021-04-23T16:49:54Z</dc:date>
    </item>
    <item>
      <title>Re: Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116741#M5803</link>
      <description>&lt;P&gt;Sounds like it might be a bug in the validation logic.&lt;BR /&gt;Paging&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;I suppose you could also just make each mgmt_cli call with -r true, which actually does a login as root before each command and a publish/logout after.&lt;BR /&gt;Generally not the most efficient approach but in this case, it might be a necessary workaround.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Apr 2021 21:47:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116741#M5803</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-04-23T21:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116826#M5806</link>
      <description>&lt;P&gt;Thanks PhoneBoy! I thought -r was only for login.&lt;/P&gt;&lt;P&gt;In the lab I ended using the script reference below to have it wait out the commands...&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Using-a-synchronous-commands-e-g-publish-install-policy-and-run/td-p/2120" target="_blank"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion/Using-a-synchronous-commands-e-g-publish-install-policy-and-run/td-p/2120&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On a side note, I also tried using --batch and that totally messed up all the ClusterXl Interfaces...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 17:28:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116826#M5806</guid>
      <dc:creator>RKinsp</dc:creator>
      <dc:date>2021-04-25T17:28:51Z</dc:date>
    </item>
    <item>
      <title>Re: Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116828#M5807</link>
      <description>&lt;P&gt;You can use -r true for single commands (in addition to creating a session for reuse).&lt;BR /&gt;I did get some confirmation from R&amp;amp;D this is a known bug (PMTR-68323) which currently doesn’t have a fix.&lt;BR /&gt;Current plan is to fix in R81.20 and backport to the various JHF.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Apr 2021 17:44:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/116828#M5807</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-04-25T17:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/117300#M5816</link>
      <description>&lt;P&gt;So, I've used the -r option and a script to add 350+ cluster interfaces. Took upwards of 5 hours, after already having discovered and published the interfaces without a cluster IP.&lt;/P&gt;&lt;P&gt;Any ideas on how I could speed the process up? Have another cluster to configure tonight....&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 00:54:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/117300#M5816</guid>
      <dc:creator>RKinsp</dc:creator>
      <dc:date>2021-04-30T00:54:50Z</dc:date>
    </item>
    <item>
      <title>Re: Management API adding multiple cluster interfaces different subnets issue</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/117302#M5817</link>
      <description>&lt;P&gt;You could recover some time by publishing after each change instead of using -r true for each change (i.e. reusing the same session instead of creating a new one).&lt;BR /&gt;That's probably it, at least while this bug still exists.&lt;/P&gt;</description>
      <pubDate>Fri, 30 Apr 2021 01:39:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Management-API-adding-multiple-cluster-interfaces-different/m-p/117302#M5817</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-04-30T01:39:43Z</dc:date>
    </item>
  </channel>
</rss>

