<?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: API - Error in Show Route output in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154971#M7051</link>
    <description>&lt;P&gt;You can also try SmartConsole's built-in Scripts &amp;gt; One Time Script... function, which also works via CPRID and is a little less manual than cprid_util.&lt;/P&gt;</description>
    <pubDate>Sat, 13 Aug 2022 13:43:39 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2022-08-13T13:43:39Z</dc:date>
    <item>
      <title>API - Error in Show Route output</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154807#M7045</link>
      <description>&lt;P&gt;I'm trying to get routes via the API from a Check Point CMA (R80.40), with the following command:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k --request POST 'https://CMAIP:443/web_api/v1/run-script' --header 'X-chkp-sid: SESSIONID' --header 'Content-Type: application/json' --data-raw '{"script-name": "Script Example: Show Routes", "script": "netstat -rnv", "targets": ["FW"]}'&lt;/LI-CODE&gt;&lt;P&gt;However, one of the output shows an error:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;     "statusCode" : "failed",
      "statusDescription" : "Connection failed for , Make sure that the machine is up and running,  and that SIC has been established",

&lt;/LI-CODE&gt;&lt;P&gt;The machine is definitely up and running, and I'm not sure how to troubleshoot this issue. Some guidance would be much appreciated and thank you in advance!&lt;/P&gt;&lt;P&gt;Below is the full response:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{
  "tasks" : [ {
    "uid" : "98a39a99-7d86-4d4d-b995-77099af3b114",
    "name" : *** - Script Example: Show Routes",
    "type" : "CdmTaskNotification",
    "domain" : {
      "uid" : "1bef76ee-4451-204b-af0c-454d7ea1881f",
      "name" : "***",
      "domain-type" : "domain"
    },
    "task-id" : "0e65ace3-2b1d-4e1e-a49e-7f3d9ea9c50e",
    "task-name" : "*** - Script Example: Show Routes",
    "status" : "failed",
    "progress-percentage" : 100,
    "start-time" : {
      "posix" : 1659960504467,
      "iso-8601" : "2022-08-08T21:08+0900"
    },
    "last-update-time" : {
      "posix" : 1659960528421,
      "iso-8601" : "2022-08-08T21:08+0900"
    },
    "suppressed" : false,
    "task-details" : [ {
      "uid" : "7c20abe6-9a71-481d-a40e-d789ad3800d3",
      "name" : null,
      "domain" : {
        "uid" : "1bef76ee-4451-204b-af0c-454d7ea1881f",
        "name" : "***",
        "domain-type" : "domain"
      },
      "color" : "black",
      "statusCode" : "failed",
      "statusDescription" : "Connection failed for , Make sure that the machine is up and running,  and that SIC has been established",
      "taskNotification" : "98a39a99-7d86-4d4d-b995-77099af3b114",
      "gatewayId" : "052fd37d-02b5-4a98-af7f-6372ae7cf164",
      "gatewayName" : "",
      "transactionId" : 491755923,
      "responseMessage" : "Q29ubmVjdGlvbiBmYWlsZWQgZm9yIApNYWtlIHN1cmUgdGhhdCB0aGUgbWFjaGluZSBpcyB1cCBhbmQgcnVubmluZywgYW5kIHRoYXQgU0lDIGhhcyBiZWVuIGVzdGFibGlzaGVk\n",
      "responseError" : "",
      "meta-info" : {
        "validation-state" : "ok",
        "last-modify-time" : {
          "posix" : 1659960529872,
          "iso-8601" : "2022-08-08T21:08+0900"
        },
        "last-modifier" : "***",
        "creation-time" : {
          "posix" : 1659960504598,
          "iso-8601" : "2022-08-08T21:08+0900"
        },
        "creator" : "***"
      },
      "tags" : [ ],
      "icon" : "General/globalsNa",
      "comments" : "",
      "display-name" : "",
      "customFields" : null
    } ],
    "comments" : "Failed",
    "color" : "black",
    "icon" : "General/globalsNa",
    "tags" : [ ],
    "meta-info" : {
      "lock" : "unlocked",
      "validation-state" : "ok",
      "last-modify-time" : {
        "posix" : 1659960528451,
        "iso-8601" : "2022-08-08T21:08+0900"
      },
      "last-modifier" : "***",
      "creation-time" : {
        "posix" : 1659960504524,
        "iso-8601" : "2022-08-08T21:08+0900"
      },
      "creator" : "***"
    },
    "read-only" : false
  } ]
} 
&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2022 05:48:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154807#M7045</guid>
      <dc:creator>minamikaze</dc:creator>
      <dc:date>2022-08-10T05:48:35Z</dc:date>
    </item>
    <item>
      <title>Re: API - Error in Show Route output</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154960#M7047</link>
      <description>&lt;P&gt;Perhaps&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;can confirm, but I assume run-script is leveraging cprid underneath.&lt;BR /&gt;You might try checking if you can perform the same query from the management CLI using the cprid_util to see if that works:&amp;nbsp;&lt;A href="https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047" target="_blank"&gt;https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&amp;amp;solutionid=sk101047&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2022 17:40:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154960#M7047</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2022-08-12T17:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: API - Error in Show Route output</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154971#M7051</link>
      <description>&lt;P&gt;You can also try SmartConsole's built-in Scripts &amp;gt; One Time Script... function, which also works via CPRID and is a little less manual than cprid_util.&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2022 13:43:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-Error-in-Show-Route-output/m-p/154971#M7051</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-08-13T13:43:39Z</dc:date>
    </item>
  </channel>
</rss>

