<?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 API 1.9 run-script ignores the timeout setting in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189034#M7940</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;FW1 build number:&lt;BR /&gt;This is Check Point Security Management Server R81.20 - Build 440&lt;BR /&gt;This is Check Point's software version R81.20 - Build 703&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I've recently come across something I assume is a bug or at least a limitation of the API run-script call.&lt;/P&gt;&lt;P&gt;My use case is invoking a script that uploads log files ( *.log and *.adtlog ) from an MDS running R81.20 to a remote server using the &lt;U&gt;rsync&lt;/U&gt; command. This can easily require a very long time, since daily we will need to upload several GB of data from several firewalls.&lt;/P&gt;&lt;P&gt;This server is a fresh install used only for testing.&lt;/P&gt;&lt;P data-unlink="true"&gt;My previous tests with API 1.8 on an older R81.10 failed because of the &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-timeout/td-p/52741" target="_blank" rel="noopener"&gt;5 minutes hardcoded API timeout&lt;/A&gt; but since the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/run-script~v1.9%20" target="_self"&gt;1.9 version claims the timeout is now configurable&lt;/A&gt;, I thought it could provide an elegant solution to this problem.&lt;/P&gt;&lt;P data-unlink="true"&gt;I wrote two scripts, the first talks to the MDS API, the second is uploaded to the server and run using the run-script endpoint.&lt;/P&gt;&lt;P data-unlink="true"&gt;the relevant snippets from the first script are:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function do_login {
    echo login to server
    SID=$(https ${HTTPS_OPTS} POST ${checkpoint_host}/web_api/login user="$username" password="$password" session-timeout:=3600 | jq '.sid' -r)
    https --offline ${HTTPS_OPTS_WITH_SESSION} ${checkpoint_host} X-chkp-sid:"$SID" Content-Type:application/json Accept:application/json
}&lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;This is simple login logic with a session timeout of one hour, the SID is then set to the variable $HTTPS_OPTS_WITH_SESSION, which is used throughout the rest of the script.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function do_run_script () {
    TASKID=$(https ${HTTPS_OPTS_WITH_SESSION} \
        POST ${checkpoint_host}/web_api/run-script \
        script-name=checkpoint-log-backup \
        targets="$checkpoint_object_name" \
        script=@${script_file} \
        timeout:=3600 \
        args="some_secret '$RSYNCD_ARGS_BASE64'" | \
        tee script-log | \
        jq --raw-output '.tasks[0]["task-id"]'
    )

    echo "created task: $TASKID"
    while true; do
        https ${HTTPS_OPTS_WITH_SESSION} POST ${checkpoint_host}/web_api/show-task \
            task-id="$TASKID" details-level=full | \
            jq '.tasks[0]' &amp;gt; out.json
        status=$(cat out.json | jq --raw-output '.status')
        progress=$(cat out.json | jq --raw-output '.["progress-percentage"]')
        echo "$status... ${progress}%"
        if [[ "$status" == "in progress" ]]; then
            https ${HTTPS_OPTS_WITH_SESSION} POST ${checkpoint_host}/web_api/keepalive &amp;amp;&amp;gt; /dev/null
            sleep 3
        else
            cat out.json | jq --from-file show_task_log.jq --raw-output
            break
        fi
    done
}&lt;/LI-CODE&gt;&lt;P&gt;This creates the task, takes the task_id, and then loops while the task is in progress. The timeout is set to 3600 seconds, and the API accepts it as such, however this always fails with a timeout status if the uploaded script takes more than 5 minutes to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output of the trial runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ time bash test.sh
...snipped
created task: 823d93fd-f643-4c62-b018-dd6d3fc80c07
in progress... 10%
...snipped
in progress... 10%
failed... 100%
STDOUT
Operation timed out
END STDOUT

STDERR

END STDERR
logout from server

real    5m5.171s
user    0m36.334s
sys     0m3.925s&lt;/LI-CODE&gt;&lt;P&gt;Notice how the progress is always set to 10%. I assume that the API is calculating the progress using the timeout of 3600.&lt;/P&gt;&lt;P&gt;However when the 5 minute mark is reached, the status is set to timeout, even though the script continues to run in the server.&lt;/P&gt;&lt;P&gt;In fact I found that the upload always completes, regardless of the time it takes. This suggests that something in the API code is ignoring the timeout setting and eagerly marking the process as timed-out, but not killing it...&lt;/P&gt;&lt;P&gt;I've confirmed this also happens with the mgmt_cli:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli --format json --user admin --password some_password run-script script-name teste script "sleep 600" timeout 1200 targets.1 mds-target 


---------------------------------------------
Time: [14:44:39] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  


---------------------------------------------
Time: [14:44:49] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  
...
---------------------------------------------
Time: [14:49:30] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  


---------------------------------------------
Time: [14:49:40] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  failed  (100%)  
{
  "tasks" : [ {
    "uid" : "1144c12c-8b16-4888-b45d-a23199578739",
    "name" : "mds-target - teste",
    "type" : "CdmTaskNotification",
    "domain" : {
      "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
      "name" : "System Data",
      "domain-type" : "mds"
    },
    "task-id" : "4cf21a37-cdbd-4860-9cfb-9907eed08540",
    "task-name" : "mds-target - teste",
    "status" : "failed",
    "progress-percentage" : 100,
    "start-time" : {
      "posix" : 1691502278741,
      "iso-8601" : "2023-08-08T14:44+0100"
    },
    "last-update-time" : {
      "posix" : 1691502578913,
      "iso-8601" : "2023-08-08T14:49+0100"
    },
    "suppressed" : false,
    "task-details" : [ {
      "uid" : "8c03189b-f28a-49d4-8e83-7848d98041d0",
      "domain" : {
        "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
        "name" : "System Data",
        "domain-type" : "mds"
      },
      "color" : "black",
      "statusCode" : "failed",
      "statusDescription" : "Operation timed out",
      "taskNotification" : "1144c12c-8b16-4888-b45d-a23199578739",
      "gatewayId" : "7ea4f133-9497-0d43-8c8d-736a85da2e53",
      "gatewayName" : "",
      "transactionId" : 713187613,
      "responseMessage" : "T3BlcmF0aW9uIHRpbWVkIG91dA==\n",
      "responseError" : "",
      "meta-info" : {
        "validation-state" : "ok",
        "last-modify-time" : {
          "posix" : 1691502579540,
          "iso-8601" : "2023-08-08T14:49+0100"
        },
        "last-modifier" : "admin",
        "creation-time" : {
          "posix" : 1691502278774,
          "iso-8601" : "2023-08-08T14:44+0100"
        },
        "creator" : "admin"
      },
      "tags" : [ ],
      "icon" : "General/globalsNa",
      "comments" : "",
      "display-name" : ""
    } ],
    "comments" : "Failed",
    "color" : "black",
    "icon" : "General/globalsNa",
    "tags" : [ ],
    "meta-info" : {
      "lock" : "unlocked",
      "validation-state" : "ok",
      "last-modify-time" : {
        "posix" : 1691502578940,
        "iso-8601" : "2023-08-08T14:49+0100"
      },
      "last-modifier" : "admin",
      "creation-time" : {
        "posix" : 1691502278768,
        "iso-8601" : "2023-08-08T14:44+0100"
      },
      "creator" : "admin"
    },
    "read-only" : false,
    "available-actions" : {
      "edit" : "true",
      "delete" : "true",
      "clone" : "false"
    }
  } ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This is the process tree on the server while the script is running:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;1 init&lt;BR /&gt;244 `- udevd&lt;BR /&gt;7305 `- auditd&lt;BR /&gt;9991 `- pm&lt;BR /&gt;10009 `- confd&lt;BR /&gt;10010 `- searchd&lt;BR /&gt;10012 `- rconfd&lt;BR /&gt;6179 `- rconfd-temp-scr&lt;BR /&gt;6464 `- rsync&lt;/LI-SPOILER&gt;&lt;P&gt;the long running command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;rsync \&lt;BR /&gt;--password-file=${RSYNC_PASSWORD_FILE} \&lt;BR /&gt;--stats \&lt;BR /&gt;--itemize-changes \&lt;BR /&gt;--out-format="%n" \&lt;BR /&gt;--delete \&lt;BR /&gt;--delete-after \&lt;BR /&gt;--archive \&lt;BR /&gt;--bwlimit=500000 \&lt;BR /&gt;"${STAGING_DIR}" ${RSYNC_USER}@${RSYNC_HOST}::${RSYNC_MODULE} &amp;amp;&amp;amp; \&lt;BR /&gt;retval=0 || retval=1&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;BR /&gt;Is there something I'm missing?&lt;/P&gt;&lt;P&gt;any help is appreciated, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Aug 2023 09:49:15 GMT</pubDate>
    <dc:creator>ClaranetPT</dc:creator>
    <dc:date>2023-08-09T09:49:15Z</dc:date>
    <item>
      <title>API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189034#M7940</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;P&gt;&amp;nbsp;FW1 build number:&lt;BR /&gt;This is Check Point Security Management Server R81.20 - Build 440&lt;BR /&gt;This is Check Point's software version R81.20 - Build 703&lt;/P&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;I've recently come across something I assume is a bug or at least a limitation of the API run-script call.&lt;/P&gt;&lt;P&gt;My use case is invoking a script that uploads log files ( *.log and *.adtlog ) from an MDS running R81.20 to a remote server using the &lt;U&gt;rsync&lt;/U&gt; command. This can easily require a very long time, since daily we will need to upload several GB of data from several firewalls.&lt;/P&gt;&lt;P&gt;This server is a fresh install used only for testing.&lt;/P&gt;&lt;P data-unlink="true"&gt;My previous tests with API 1.8 on an older R81.10 failed because of the &lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion/Web-API-timeout/td-p/52741" target="_blank" rel="noopener"&gt;5 minutes hardcoded API timeout&lt;/A&gt; but since the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/run-script~v1.9%20" target="_self"&gt;1.9 version claims the timeout is now configurable&lt;/A&gt;, I thought it could provide an elegant solution to this problem.&lt;/P&gt;&lt;P data-unlink="true"&gt;I wrote two scripts, the first talks to the MDS API, the second is uploaded to the server and run using the run-script endpoint.&lt;/P&gt;&lt;P data-unlink="true"&gt;the relevant snippets from the first script are:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function do_login {
    echo login to server
    SID=$(https ${HTTPS_OPTS} POST ${checkpoint_host}/web_api/login user="$username" password="$password" session-timeout:=3600 | jq '.sid' -r)
    https --offline ${HTTPS_OPTS_WITH_SESSION} ${checkpoint_host} X-chkp-sid:"$SID" Content-Type:application/json Accept:application/json
}&lt;/LI-CODE&gt;&lt;P data-unlink="true"&gt;This is simple login logic with a session timeout of one hour, the SID is then set to the variable $HTTPS_OPTS_WITH_SESSION, which is used throughout the rest of the script.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;function do_run_script () {
    TASKID=$(https ${HTTPS_OPTS_WITH_SESSION} \
        POST ${checkpoint_host}/web_api/run-script \
        script-name=checkpoint-log-backup \
        targets="$checkpoint_object_name" \
        script=@${script_file} \
        timeout:=3600 \
        args="some_secret '$RSYNCD_ARGS_BASE64'" | \
        tee script-log | \
        jq --raw-output '.tasks[0]["task-id"]'
    )

    echo "created task: $TASKID"
    while true; do
        https ${HTTPS_OPTS_WITH_SESSION} POST ${checkpoint_host}/web_api/show-task \
            task-id="$TASKID" details-level=full | \
            jq '.tasks[0]' &amp;gt; out.json
        status=$(cat out.json | jq --raw-output '.status')
        progress=$(cat out.json | jq --raw-output '.["progress-percentage"]')
        echo "$status... ${progress}%"
        if [[ "$status" == "in progress" ]]; then
            https ${HTTPS_OPTS_WITH_SESSION} POST ${checkpoint_host}/web_api/keepalive &amp;amp;&amp;gt; /dev/null
            sleep 3
        else
            cat out.json | jq --from-file show_task_log.jq --raw-output
            break
        fi
    done
}&lt;/LI-CODE&gt;&lt;P&gt;This creates the task, takes the task_id, and then loops while the task is in progress. The timeout is set to 3600 seconds, and the API accepts it as such, however this always fails with a timeout status if the uploaded script takes more than 5 minutes to run.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the output of the trial runs:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ time bash test.sh
...snipped
created task: 823d93fd-f643-4c62-b018-dd6d3fc80c07
in progress... 10%
...snipped
in progress... 10%
failed... 100%
STDOUT
Operation timed out
END STDOUT

STDERR

END STDERR
logout from server

real    5m5.171s
user    0m36.334s
sys     0m3.925s&lt;/LI-CODE&gt;&lt;P&gt;Notice how the progress is always set to 10%. I assume that the API is calculating the progress using the timeout of 3600.&lt;/P&gt;&lt;P&gt;However when the 5 minute mark is reached, the status is set to timeout, even though the script continues to run in the server.&lt;/P&gt;&lt;P&gt;In fact I found that the upload always completes, regardless of the time it takes. This suggests that something in the API code is ignoring the timeout setting and eagerly marking the process as timed-out, but not killing it...&lt;/P&gt;&lt;P&gt;I've confirmed this also happens with the mgmt_cli:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;mgmt_cli --format json --user admin --password some_password run-script script-name teste script "sleep 600" timeout 1200 targets.1 mds-target 


---------------------------------------------
Time: [14:44:39] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  


---------------------------------------------
Time: [14:44:49] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  
...
---------------------------------------------
Time: [14:49:30] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  in progress  (10%)  


---------------------------------------------
Time: [14:49:40] 8/8/2023
---------------------------------------------
"tlx-mds-lab - teste"  failed  (100%)  
{
  "tasks" : [ {
    "uid" : "1144c12c-8b16-4888-b45d-a23199578739",
    "name" : "mds-target - teste",
    "type" : "CdmTaskNotification",
    "domain" : {
      "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
      "name" : "System Data",
      "domain-type" : "mds"
    },
    "task-id" : "4cf21a37-cdbd-4860-9cfb-9907eed08540",
    "task-name" : "mds-target - teste",
    "status" : "failed",
    "progress-percentage" : 100,
    "start-time" : {
      "posix" : 1691502278741,
      "iso-8601" : "2023-08-08T14:44+0100"
    },
    "last-update-time" : {
      "posix" : 1691502578913,
      "iso-8601" : "2023-08-08T14:49+0100"
    },
    "suppressed" : false,
    "task-details" : [ {
      "uid" : "8c03189b-f28a-49d4-8e83-7848d98041d0",
      "domain" : {
        "uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
        "name" : "System Data",
        "domain-type" : "mds"
      },
      "color" : "black",
      "statusCode" : "failed",
      "statusDescription" : "Operation timed out",
      "taskNotification" : "1144c12c-8b16-4888-b45d-a23199578739",
      "gatewayId" : "7ea4f133-9497-0d43-8c8d-736a85da2e53",
      "gatewayName" : "",
      "transactionId" : 713187613,
      "responseMessage" : "T3BlcmF0aW9uIHRpbWVkIG91dA==\n",
      "responseError" : "",
      "meta-info" : {
        "validation-state" : "ok",
        "last-modify-time" : {
          "posix" : 1691502579540,
          "iso-8601" : "2023-08-08T14:49+0100"
        },
        "last-modifier" : "admin",
        "creation-time" : {
          "posix" : 1691502278774,
          "iso-8601" : "2023-08-08T14:44+0100"
        },
        "creator" : "admin"
      },
      "tags" : [ ],
      "icon" : "General/globalsNa",
      "comments" : "",
      "display-name" : ""
    } ],
    "comments" : "Failed",
    "color" : "black",
    "icon" : "General/globalsNa",
    "tags" : [ ],
    "meta-info" : {
      "lock" : "unlocked",
      "validation-state" : "ok",
      "last-modify-time" : {
        "posix" : 1691502578940,
        "iso-8601" : "2023-08-08T14:49+0100"
      },
      "last-modifier" : "admin",
      "creation-time" : {
        "posix" : 1691502278768,
        "iso-8601" : "2023-08-08T14:44+0100"
      },
      "creator" : "admin"
    },
    "read-only" : false,
    "available-actions" : {
      "edit" : "true",
      "delete" : "true",
      "clone" : "false"
    }
  } ]
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;This is the process tree on the server while the script is running:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;1 init&lt;BR /&gt;244 `- udevd&lt;BR /&gt;7305 `- auditd&lt;BR /&gt;9991 `- pm&lt;BR /&gt;10009 `- confd&lt;BR /&gt;10010 `- searchd&lt;BR /&gt;10012 `- rconfd&lt;BR /&gt;6179 `- rconfd-temp-scr&lt;BR /&gt;6464 `- rsync&lt;/LI-SPOILER&gt;&lt;P&gt;the long running command:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-SPOILER&gt;rsync \&lt;BR /&gt;--password-file=${RSYNC_PASSWORD_FILE} \&lt;BR /&gt;--stats \&lt;BR /&gt;--itemize-changes \&lt;BR /&gt;--out-format="%n" \&lt;BR /&gt;--delete \&lt;BR /&gt;--delete-after \&lt;BR /&gt;--archive \&lt;BR /&gt;--bwlimit=500000 \&lt;BR /&gt;"${STAGING_DIR}" ${RSYNC_USER}@${RSYNC_HOST}::${RSYNC_MODULE} &amp;amp;&amp;amp; \&lt;BR /&gt;retval=0 || retval=1&lt;/LI-SPOILER&gt;&lt;P&gt;&lt;BR /&gt;Is there something I'm missing?&lt;/P&gt;&lt;P&gt;any help is appreciated, thank you&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Aug 2023 09:49:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189034#M7940</guid>
      <dc:creator>ClaranetPT</dc:creator>
      <dc:date>2023-08-09T09:49:15Z</dc:date>
    </item>
    <item>
      <title>Re: API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189246#M7942</link>
      <description>&lt;P&gt;Please open a TAC request for this: &lt;A href="https://help.checkpoint.com" target="_blank"&gt;https://help.checkpoint.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 10:30:16 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189246#M7942</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2023-08-11T10:30:16Z</dc:date>
    </item>
    <item>
      <title>Re: API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189250#M7943</link>
      <description>&lt;P&gt;I am not sure why you would run such a script from the API directly.&lt;/P&gt;
&lt;P&gt;In Ansible I have created jobs that copy such scripts to the target and configure the scripts and the cron entry on a daily basis.&lt;/P&gt;
&lt;P&gt;So Ansible is in control of HOW it is done exactly and it makes sure it is there on each node that qualifies (say on each SmartCenter that we manage).&lt;/P&gt;
&lt;P&gt;The unit itself takes care of doing the job as insctructed. Like making a backup file daily.&lt;/P&gt;
&lt;P&gt;The Ansible comes in and collects the results.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A siimilar approach can be done through the API as you can copy a script file to the unit.&lt;/P&gt;
&lt;P&gt;So rethinking the workflow might be the better solution.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 10:41:26 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189250#M7943</guid>
      <dc:creator>Hugo_vd_Kooij</dc:creator>
      <dc:date>2023-08-11T10:41:26Z</dc:date>
    </item>
    <item>
      <title>Re: API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189265#M7944</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/918"&gt;@Hugo_vd_Kooij&lt;/a&gt;, thanks for taking the time to respond,&lt;BR /&gt;&lt;BR /&gt;I understand your suggestion and I also considered ansible for this, however I wanted to try the leanest possible approach first.&lt;/P&gt;&lt;P&gt;Usage of the API alone fits our environment perfectly, since the jobs would be triggered from our CI/CD platform, which is already tightly integrated with our daily workflows (our single pane of glass).&lt;/P&gt;&lt;P&gt;This would also require only HTTPS access to the boxes, whereas with ansible we will need SSH.&lt;/P&gt;&lt;P&gt;With ansible we would need to provision and manage more than what I currently think is reasonable for such a simple task.&lt;/P&gt;&lt;P&gt;The API docs clearly state a timeout script and I assume the sort of behaviour I encountered is unexpected, and this is why I posted this.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 12:34:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189265#M7944</guid>
      <dc:creator>ClaranetPT</dc:creator>
      <dc:date>2023-08-11T12:34:24Z</dc:date>
    </item>
    <item>
      <title>Re: API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189266#M7945</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/181"&gt;@_Val_&lt;/a&gt; thanks for your reply,&lt;BR /&gt;&lt;BR /&gt;I'll return from vacation on the 21st of August and open the TAC request then&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2023 12:36:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189266#M7945</guid>
      <dc:creator>ClaranetPT</dc:creator>
      <dc:date>2023-08-11T12:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: API 1.9 run-script ignores the timeout setting</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189384#M7946</link>
      <description>&lt;P&gt;Run script command timeout is 5 minutes.&lt;BR /&gt;You can't set it to more than 5 minutes.&lt;/P&gt;
&lt;P&gt;If the script on the GW takes a lot of time, maybe alternatives should be examined.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Aug 2023 10:02:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/API-1-9-run-script-ignores-the-timeout-setting/m-p/189384#M7946</guid>
      <dc:creator>Youssef_Obeidal</dc:creator>
      <dc:date>2023-08-14T10:02:48Z</dc:date>
    </item>
  </channel>
</rss>

