<?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: mgmt_cli / mgmt API - command failing in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81461#M5689</link>
    <description>If a restart or reboot doesn't clear the issue, then you may need to get the TAC involved.</description>
    <pubDate>Thu, 09 Apr 2020 15:09:27 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-04-09T15:09:27Z</dc:date>
    <item>
      <title>mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81427#M5687</link>
      <description>&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;On an MDS, just 1 CMA/Customer has a locked session causing an issue. It's a session that is not viewable from within the MDS Session OR the CMA Sessions, so not a case of just discarding it like normal.&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="uiOutputText"&gt;1. This seemed to have happened when the customer/CMA reverted back to a previous installed policy.&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN class="uiOutputText"&gt;I.e. They reverted back to a 2nd April 2020 Policy. The 2 objects we can see locked are Network Properties (eth1 and eth2) . This is causing a fairly big problem as those objects are locked, 2 things we're trying to are failing with errors - "Get Interfaces with/without Topology" or even manually add an interface in.&lt;BR /&gt;&lt;BR /&gt;2. From the MDS, running a psql_client SEARCH command, the eth1 and eth2 objid's both show, and they both have the same lockingsessionid. So I've tried mgmt API command below to discard it:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&lt;BR /&gt;[Expert@MDS:0]#&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN class="uiOutputText"&gt;mgmt_cli -s id.txt discard uid xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="uiOutputText"&gt;But we get error:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="uiOutputText"&gt;code: "generic_server_error"&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN class="uiOutputText"&gt;message: "Management server failed to execute command"&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="uiOutputText"&gt;Anyone able to advise of what we can try? Commands? Etc.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="uiOutputText"&gt;Because this is an MDS with a lot of customers, we can't simply reboot it.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you in advance!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Apr 2020 10:13:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81427#M5687</guid>
      <dc:creator>beneaton</dc:creator>
      <dc:date>2020-04-09T10:13:27Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81450#M5688</link>
      <description>What does "api status" show you? Maybe simply restarting the API service is going to solve your problem.</description>
      <pubDate>Thu, 09 Apr 2020 13:36:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81450#M5688</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2020-04-09T13:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81461#M5689</link>
      <description>If a restart or reboot doesn't clear the issue, then you may need to get the TAC involved.</description>
      <pubDate>Thu, 09 Apr 2020 15:09:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/81461#M5689</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-04-09T15:09:27Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82633#M5690</link>
      <description>&lt;P&gt;Hi Phone Boy,&lt;/P&gt;&lt;P&gt;The MDS was rebooted (had planned work on it a few days after the issue) but no change.&lt;BR /&gt;&lt;BR /&gt;I do have a ticket open with TAC now. They've got MDS backup and I believe they intend to replicate it&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:50:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82633#M5690</guid>
      <dc:creator>beneaton</dc:creator>
      <dc:date>2020-04-21T14:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82635#M5691</link>
      <description>&lt;P&gt;Hi Maik,&lt;BR /&gt;&lt;BR /&gt;Accessibility: Require all granted&lt;BR /&gt;Automatic Start: Enabled&lt;BR /&gt;&lt;BR /&gt;Processes:&lt;BR /&gt;API&amp;nbsp; Started&lt;BR /&gt;CPM&amp;nbsp; Started&lt;BR /&gt;FWM&amp;nbsp; Started&lt;BR /&gt;APACHE&amp;nbsp; Started&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I will discuss with the team that deals with our MDS about if an API service restart could be tried.&lt;BR /&gt;&lt;BR /&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:53:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82635#M5691</guid>
      <dc:creator>beneaton</dc:creator>
      <dc:date>2020-04-21T14:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82638#M5692</link>
      <description>&lt;P&gt;Is there any chance your server is listening on a port other than 443? I believe I ran into this once on an SMS that had Endpoint management installed and the WebUI/API port was moved to 4434? In which case, I believe I just had to specify the port number as a parameter on the mgmt_cli command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 14:57:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82638#M5692</guid>
      <dc:creator>Daniel_Taney</dc:creator>
      <dc:date>2020-04-21T14:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82643#M5693</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I do believe it's 443.&lt;BR /&gt;# api status shows Port Details: "APACHE Gaia Port: 443"&lt;BR /&gt;&lt;BR /&gt;I also ran the command&lt;BR /&gt;# mgmt_cli --port 443 discard uid &amp;lt;UID&amp;gt;&lt;BR /&gt;and&lt;BR /&gt;#mgmt_cli --port 4434 discard uid &amp;lt;UID&amp;gt;&lt;BR /&gt;&lt;BR /&gt;When I specified 4434 it advised "Couldn't connect to server".&lt;BR /&gt;Where as leaving as blank/default or setting to 443 it says "code: "generic_server_error"&lt;BR /&gt;message: "Management server failed to execute command".&lt;BR /&gt;&lt;BR /&gt;Thanks for the reply!</description>
      <pubDate>Tue, 21 Apr 2020 15:07:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82643#M5693</guid>
      <dc:creator>beneaton</dc:creator>
      <dc:date>2020-04-21T15:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82644#M5694</link>
      <description>&lt;P&gt;Oh well, was worth a shot! If only it could have been that easy&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_steam_from_nose:"&gt;😤&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2020 15:09:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82644#M5694</guid>
      <dc:creator>Daniel_Taney</dc:creator>
      <dc:date>2020-04-21T15:09:54Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82646#M5695</link>
      <description>Exactly - would have been nice! Thanks again</description>
      <pubDate>Tue, 21 Apr 2020 15:19:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/82646#M5695</guid>
      <dc:creator>beneaton</dc:creator>
      <dc:date>2020-04-21T15:19:53Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/86341#M5696</link>
      <description>&lt;P&gt;Did you get a fix from their end ?&lt;/P&gt;</description>
      <pubDate>Tue, 26 May 2020 13:34:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/86341#M5696</guid>
      <dc:creator>Dyslexic155</dc:creator>
      <dc:date>2020-05-26T13:34:33Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/113935#M5697</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have the same issue with R80.40 T77, Single MGMT, no MDS. Did you get a fix to solve this issue?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 18 Mar 2021 13:15:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/113935#M5697</guid>
      <dc:creator>zsigmondrichard</dc:creator>
      <dc:date>2021-03-18T13:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli / mgmt API - command failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/131584#M6324</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I was receiving the same error message when I was doing "logout" via the python requests library.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"code" : "generic_server_error",&lt;BR /&gt;"message" : "Management server failed to execute command"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;The order of my actions were: 1) login 2) create object 3)set-session 4) publish 5) logout&lt;/P&gt;&lt;P&gt;The problem as I mention was the logout (everything else was executed). I ended up of adding a little "pause" (time.sleep(5))after publish and the logout function worked perfectly fine.&amp;nbsp; What I think happened is that the code is executing too fast while some of the actions like publish needs some time for digestion.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 18:37:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-mgmt-API-command-failing/m-p/131584#M6324</guid>
      <dc:creator>Vince_Marinov</dc:creator>
      <dc:date>2021-10-12T18:37:56Z</dc:date>
    </item>
  </channel>
</rss>

