<?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: R80.40 - can't cancel task in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106325#M5424</link>
    <description>&lt;P&gt;So looks like setting the log server via API will basically eff up the API on the CMA until I mdsstop. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is JH 87 BTW.&lt;/P&gt;</description>
    <pubDate>Wed, 23 Dec 2020 21:38:40 GMT</pubDate>
    <dc:creator>John_Fleming</dc:creator>
    <dc:date>2020-12-23T21:38:40Z</dc:date>
    <item>
      <title>R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106322#M5422</link>
      <description>&lt;P&gt;I started using the python SDK to set log servers. In my first attempt I was playing with setting the log server to a CLM for a given simple cluster. I noticed afterwards I didn't have anything in the API call to publish so I went to the gui and hit publish and disconnect now its just sitting at %10.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea how to cancel this task? Discard &amp;amp; disconnect rows "An internal error occurred."&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 20:54:07 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106322#M5422</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-23T20:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106325#M5424</link>
      <description>&lt;P&gt;So looks like setting the log server via API will basically eff up the API on the CMA until I mdsstop. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;This is JH 87 BTW.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Dec 2020 21:38:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106325#M5424</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-23T21:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106330#M5426</link>
      <description>&lt;P&gt;Ouch, sounds like a TAC case is in order.&lt;BR /&gt;Also tagging&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 01:57:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106330#M5426</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-12-24T01:57:18Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106332#M5428</link>
      <description>&lt;P&gt;I haven't had a chance to debug or bother diamond, which i'll wait until next week.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 04:26:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106332#M5428</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-24T04:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106341#M5429</link>
      <description>&lt;P&gt;Please specify more details, is this set-simple-cluster api? And what exactly did you try to do&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 09:33:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106341#M5429</guid>
      <dc:creator>Alex_Zelinsky</dc:creator>
      <dc:date>2020-12-24T09:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106359#M5430</link>
      <description>&lt;P&gt;I plan on creating a replication I just haven't had time. Yes set simple cluster and&amp;nbsp;send-logs-to-server. I set name and send-logs-to-server as a single member list.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The docs say its an object but others say string or list and description says Servers so i'm not %100 what I should be sending. I didn't try logs and alerts (or whatever that other one was).&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2020 17:31:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106359#M5430</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-24T17:31:47Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106394#M5433</link>
      <description>&lt;P&gt;I set it as follows:&lt;/P&gt;
&lt;PRE&gt;Here is an example of setting log server for a cluster:&lt;BR /&gt;mgmt_cli --session-id "$session_id" set-simple-cluster name "$CLUSTERNAME" ipv4-address "$CLUSTERMGMTIP" ipv6-address "$IPV6_CLUSTERMGMTIP" \
	version "$GWVERSION" os-name "Gaia" cluster-mode "opsec-ha" firewall true ips false vpn false \
	&lt;STRONG&gt;send-logs-to-server.0 "$MGMTNAME" send-alerts-to-server.0 "$MGMTNAME"&lt;/STRONG&gt;&lt;BR /&gt;It's network object name, and you can provide a few.&lt;BR /&gt;However the issue of cancelling task is not related.&lt;BR /&gt;Actually there is now way to cancel a task.&lt;BR /&gt;To better understand your issue I need more details and cpm.elg when you're getting INteranl Error.&lt;BR /&gt;I undertsatand you get that error when you try to discradand disconnect API session from SC, right?&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2020 06:24:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106394#M5433</guid>
      <dc:creator>Alex_Zelinsky</dc:creator>
      <dc:date>2020-12-27T06:24:53Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106451#M5434</link>
      <description>&lt;P&gt;Hi Alex, I haven't had a chance to put something meaningful in here yet. I can't send logs or anything as the customer will not allow this. Its a pretty strict env. I'll see if I can replicate and send is the smallest replication of the python code to trigger when I get a few. Should be this week.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 16:20:46 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106451#M5434</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-28T16:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106484#M5435</link>
      <description>&lt;P&gt;Test env is stood up. I'll start working on the code python code next.&lt;/P&gt;&lt;P&gt;First.. Nachos for they indeed rule.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 23:33:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106484#M5435</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-28T23:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106487#M5437</link>
      <description>&lt;P&gt;Eff.. couldn't replicate. I'm going to move this code back to the lab and see if it fails again. I'll check log files you pointed out and engage support if needed.&lt;/P&gt;&lt;P&gt;Any input on debugs I should turn on?&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 01:57:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106487#M5437</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-29T01:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106489#M5438</link>
      <description>&lt;P&gt;Here is the python code.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;from cpapi import APIClient, APIClientArgs
import pprint
pp = pprint.PrettyPrinter(indent=4)

api_server='10.1.18.100'
username='admin'
password='somepw'
domain_name='Test_Domain'

def main():
    client_args = APIClientArgs(server=api_server)
    with APIClient(client_args) as domain_client:
        login_res = domain_client.login(username, password, domain=domain_name)
        if login_res.success is False:
            print("Try upgrading to R81 maybe?")
            exit(81)
        json_data = { "name": "TestCluster",
                      "send-logs-to-server": "TestDomainLogServer" }
        print("Calling set cluster api")
        simple_cluster_output = domain_client.api_call("set-simple-cluster", json_data)
        pp.pprint(simple_cluster_output)
        print("Calling publish api")
        publish_output = domain_client.api_call("publish",{})
        pp.pprint(publish_output)

if __name__ == "__main__":
    main()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 02:02:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106489#M5438</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-29T02:02:08Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106495#M5439</link>
      <description>&lt;P&gt;turn on the following logs in $MDS_FWDIR/conf/tdlog.com&lt;/P&gt;
&lt;P&gt;log4j.logger.com.checkpoint.management.gateway_legacy.services.internal.LegacyGatewayObjectCrudSvcImpl=DEBUG&lt;BR /&gt;log4j.logger.com.checkpoint.management.gateway_legacy.objects.cluster.ClusterUtils=DEBUG&lt;BR /&gt;log4j.logger.com.checkpoint.management.gateway_legacy.web_services.internal.LegacyGatewayObjectCrudSvcRemoteImpl=DEBUG&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What version do you run? R80.40 jumbo?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 07:08:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106495#M5439</guid>
      <dc:creator>Alex_Zelinsky</dc:creator>
      <dc:date>2020-12-29T07:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106496#M5440</link>
      <description>&lt;P&gt;Python code seems pretty simple and straightforward.&lt;/P&gt;
&lt;P&gt;Do you see the following line printing:&lt;/P&gt;
&lt;PRE class="lia-code-sample  language-python"&gt;&lt;CODE&gt;pp.pprint(simple_cluster_output)&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;and what does it print?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 07:10:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106496#M5440</guid>
      <dc:creator>Alex_Zelinsky</dc:creator>
      <dc:date>2020-12-29T07:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106564#M5441</link>
      <description>&lt;P&gt;Everything ran clean on the replication so nothing useful other then http 200 etc.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2020 15:39:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106564#M5441</guid>
      <dc:creator>John_Fleming</dc:creator>
      <dc:date>2020-12-29T15:39:54Z</dc:date>
    </item>
    <item>
      <title>Re: R80.40 - can't cancel task</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106616#M5445</link>
      <description>&lt;P&gt;well, let me know if it happens again&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 08:13:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/R80-40-can-t-cancel-task/m-p/106616#M5445</guid>
      <dc:creator>Alex_Zelinsky</dc:creator>
      <dc:date>2020-12-30T08:13:19Z</dc:date>
    </item>
  </channel>
</rss>

