<?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: Gaia API access for Maestro/ElasticXL from SmartConsole CLI in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-access-for-Maestro-ElasticXL-from-SmartConsole-CLI/m-p/274003#M9402</link>
    <description>&lt;P&gt;Well, on my R82 VSNext cluster, it seems the Gaia API is just broken:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSC]# mgmt_cli -f json -r true gaia-api/show-hostname target a9cf9cc1-ba92-4dc4-8d4f-14fc70facf1f
{
  "code" : "err_gaia_api_login_failed",
  "message" : "Cannot login to the Gateway: a9cf9cc1-ba92-4dc4-8d4f-14fc70facf1f"
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[Expert@DallasticXL-s01-01:0]# tail -f /var/log/gaia_api_server.log
23/03/26 18:21:44: Thread-1 (socketListener): server_util.udsListener: INFO: Internal request for 'login'
23/03/26 18:21:44: Thread-1 (socketListener): objects.sessions: INFO: Remote authentication succeed for user:admin
23/03/26 18:21:44: Thread-1 (socketListener): server_util.udsListener: INFO: Local login for user 'admin' SUCCEEDED
23/03/26 18:21:45: MainThread: server_util.udsListener: INFO: remote_addr IP = 10.0.1.251
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Handle request: &amp;lt;class 'requests.hostname.ShowHostNameRequest'&amp;gt;
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Execute validators
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Verify permissions
23/03/26 18:21:45: MainThread: clish: ERROR: Error running clish command '"show hostname"', error: ''
23/03/26 18:21:45: MainThread: infra.pipeline: ERROR: Failed to handle request, reason: 'Error running clish command '"show hostname"''
23/03/26 18:21:45: MainThread: infra.pipeline: ERROR: Error running clish command '"show hostname"'
Traceback (most recent call last):
  File "/rest_api/ckp/infra/urlGeneratorIS.py", line 68, in actor
    res = execute(inst, requestData)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/infra/pipeline.py", line 271, in execute
    ret = inst.Handler_RESPONSE().serialize()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/objects/hostname.py", line 14, in __init__
    self.populate()
  File "/rest_api/ckp/objects/hostname.py", line 23, in populate
    self.setHostname(clish.runClish("show hostname", lock).strip())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/libs/clish.py", line 181, in runClish
    raise runClishException("Error running clish command '{}'".format(cmd),output)
clish.runClishException: Error running clish command '"show hostname"'
23/03/26 18:21:45: MainThread: server_util.udsListener: INFO: Request for endpoint /show-hostname [method: POST], for source 10.0.1.251, FAILED [duration 338ms]
23/03/26 18:21:49: Thread-1 (socketListener): server_util.udsListener: INFO: Internal request for 'login'
23/03/26 18:21:49: Thread-1 (socketListener): objects.sessions: INFO: Remote authentication succeed for user:admin
23/03/26 18:21:49: Thread-1 (socketListener): server_util.udsListener: INFO: Local login for user 'admin' SUCCEEDED
23/03/26 18:21:49: MainThread: server_util.udsListener: INFO: remote_addr IP = 10.0.1.251
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Handle request: &amp;lt;class 'requests.hostname.ShowHostNameRequest'&amp;gt;
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Execute validators
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Verify permissions
23/03/26 18:21:49: MainThread: clish: ERROR: Error running clish command '"show hostname"', error: ''
23/03/26 18:21:49: MainThread: infra.pipeline: ERROR: Failed to handle request, reason: 'Error running clish command '"show hostname"''
23/03/26 18:21:49: MainThread: infra.pipeline: ERROR: Error running clish command '"show hostname"'
Traceback (most recent call last):
  File "/rest_api/ckp/infra/urlGeneratorIS.py", line 68, in actor
    res = execute(inst, requestData)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/infra/pipeline.py", line 271, in execute
    ret = inst.Handler_RESPONSE().serialize()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/objects/hostname.py", line 14, in __init__
    self.populate()
  File "/rest_api/ckp/objects/hostname.py", line 23, in populate
    self.setHostname(clish.runClish("show hostname", lock).strip())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/libs/clish.py", line 181, in runClish
    raise runClishException("Error running clish command '{}'".format(cmd),output)
clish.runClishException: Error running clish command '"show hostname"'
23/03/26 18:21:49: MainThread: server_util.udsListener: INFO: Request for endpoint /show-hostname [method: POST], for source 10.0.1.251, FAILED [duration 460ms]&lt;/LI-CODE&gt;</description>
    <pubDate>Mon, 23 Mar 2026 18:27:23 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2026-03-23T18:27:23Z</dc:date>
    <item>
      <title>Gaia API access for Maestro/ElasticXL from SmartConsole CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-access-for-Maestro-ElasticXL-from-SmartConsole-CLI/m-p/273721#M9401</link>
      <description>&lt;P&gt;I'd like to access my&amp;nbsp;Maestro/ElasticXL systems via SmartConsole CLI.&lt;BR /&gt;When I try to access an API that &lt;U&gt;is not&lt;/U&gt; listed for &lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-maestro-gateway" target="_self"&gt;Maestro/ElasticXL&lt;/A&gt;, the following error is shown:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;gaia-api/&lt;STRONG&gt;show-hostname&lt;/STRONG&gt; target "10.10.0.1" --format json&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"code" : "err_gaia_api_login_failed",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"message" : "&lt;STRONG&gt;Cannot login&lt;/STRONG&gt; to the Gateway: 10.10.0.1"&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;When I try to access an API that &lt;U&gt;is&lt;/U&gt; listed for &lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#web/show-maestro-gateway" target="_self"&gt;Maestro/ElasticXL&lt;/A&gt;, the following error is shown:&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;gaia-api/&lt;STRONG&gt;show-maestro-gateway&lt;/STRONG&gt;&amp;nbsp;target "10.10.0.1" --format json&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"code" : "err_gaia_api_send_command_failed",&lt;BR /&gt;&amp;nbsp; &amp;nbsp;"message" : "&lt;STRONG&gt;Cannot send&lt;/STRONG&gt; the command to the gateway: 10.10.0.1 "&lt;BR /&gt;}&lt;/CODE&gt;&lt;BR /&gt;&lt;BR /&gt;Of course, &lt;A href="https://sc1.checkpoint.com/documents/latest/GaiaAPIs/#api_access" target="_self"&gt;Gaia API access&lt;/A&gt; was enabled for user 'admin' on Maestro.&lt;BR /&gt;I'm also using 'admin' with SuperUser permissions in SmartConsole.&lt;BR /&gt;&lt;BR /&gt;Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 18 Mar 2026 14:23:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-access-for-Maestro-ElasticXL-from-SmartConsole-CLI/m-p/273721#M9401</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2026-03-18T14:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: Gaia API access for Maestro/ElasticXL from SmartConsole CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-access-for-Maestro-ElasticXL-from-SmartConsole-CLI/m-p/274003#M9402</link>
      <description>&lt;P&gt;Well, on my R82 VSNext cluster, it seems the Gaia API is just broken:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@DallasSC]# mgmt_cli -f json -r true gaia-api/show-hostname target a9cf9cc1-ba92-4dc4-8d4f-14fc70facf1f
{
  "code" : "err_gaia_api_login_failed",
  "message" : "Cannot login to the Gateway: a9cf9cc1-ba92-4dc4-8d4f-14fc70facf1f"
}&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;[Expert@DallasticXL-s01-01:0]# tail -f /var/log/gaia_api_server.log
23/03/26 18:21:44: Thread-1 (socketListener): server_util.udsListener: INFO: Internal request for 'login'
23/03/26 18:21:44: Thread-1 (socketListener): objects.sessions: INFO: Remote authentication succeed for user:admin
23/03/26 18:21:44: Thread-1 (socketListener): server_util.udsListener: INFO: Local login for user 'admin' SUCCEEDED
23/03/26 18:21:45: MainThread: server_util.udsListener: INFO: remote_addr IP = 10.0.1.251
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Handle request: &amp;lt;class 'requests.hostname.ShowHostNameRequest'&amp;gt;
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Execute validators
23/03/26 18:21:45: MainThread: infra.urlGeneratorIS: INFO: Verify permissions
23/03/26 18:21:45: MainThread: clish: ERROR: Error running clish command '"show hostname"', error: ''
23/03/26 18:21:45: MainThread: infra.pipeline: ERROR: Failed to handle request, reason: 'Error running clish command '"show hostname"''
23/03/26 18:21:45: MainThread: infra.pipeline: ERROR: Error running clish command '"show hostname"'
Traceback (most recent call last):
  File "/rest_api/ckp/infra/urlGeneratorIS.py", line 68, in actor
    res = execute(inst, requestData)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/infra/pipeline.py", line 271, in execute
    ret = inst.Handler_RESPONSE().serialize()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/objects/hostname.py", line 14, in __init__
    self.populate()
  File "/rest_api/ckp/objects/hostname.py", line 23, in populate
    self.setHostname(clish.runClish("show hostname", lock).strip())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/libs/clish.py", line 181, in runClish
    raise runClishException("Error running clish command '{}'".format(cmd),output)
clish.runClishException: Error running clish command '"show hostname"'
23/03/26 18:21:45: MainThread: server_util.udsListener: INFO: Request for endpoint /show-hostname [method: POST], for source 10.0.1.251, FAILED [duration 338ms]
23/03/26 18:21:49: Thread-1 (socketListener): server_util.udsListener: INFO: Internal request for 'login'
23/03/26 18:21:49: Thread-1 (socketListener): objects.sessions: INFO: Remote authentication succeed for user:admin
23/03/26 18:21:49: Thread-1 (socketListener): server_util.udsListener: INFO: Local login for user 'admin' SUCCEEDED
23/03/26 18:21:49: MainThread: server_util.udsListener: INFO: remote_addr IP = 10.0.1.251
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Handle request: &amp;lt;class 'requests.hostname.ShowHostNameRequest'&amp;gt;
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Execute validators
23/03/26 18:21:49: MainThread: infra.urlGeneratorIS: INFO: Verify permissions
23/03/26 18:21:49: MainThread: clish: ERROR: Error running clish command '"show hostname"', error: ''
23/03/26 18:21:49: MainThread: infra.pipeline: ERROR: Failed to handle request, reason: 'Error running clish command '"show hostname"''
23/03/26 18:21:49: MainThread: infra.pipeline: ERROR: Error running clish command '"show hostname"'
Traceback (most recent call last):
  File "/rest_api/ckp/infra/urlGeneratorIS.py", line 68, in actor
    res = execute(inst, requestData)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/infra/pipeline.py", line 271, in execute
    ret = inst.Handler_RESPONSE().serialize()
          ^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/ckp/objects/hostname.py", line 14, in __init__
    self.populate()
  File "/rest_api/ckp/objects/hostname.py", line 23, in populate
    self.setHostname(clish.runClish("show hostname", lock).strip())
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/rest_api/libs/clish.py", line 181, in runClish
    raise runClishException("Error running clish command '{}'".format(cmd),output)
clish.runClishException: Error running clish command '"show hostname"'
23/03/26 18:21:49: MainThread: server_util.udsListener: INFO: Request for endpoint /show-hostname [method: POST], for source 10.0.1.251, FAILED [duration 460ms]&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 23 Mar 2026 18:27:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Gaia-API-access-for-Maestro-ElasticXL-from-SmartConsole-CLI/m-p/274003#M9402</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2026-03-23T18:27:23Z</dc:date>
    </item>
  </channel>
</rss>

