<?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: not able to set session timeout with mgmt_cli in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59437#M3764</link>
    <description>&lt;P&gt;I've just made it a habit to issue "unset TMOUT" when I first log into a CLI.&lt;/P&gt;&lt;P&gt;My fingers remember it down even though my brain doesn't always remember.&lt;/P&gt;</description>
    <pubDate>Thu, 01 Aug 2019 13:42:45 GMT</pubDate>
    <dc:creator>Tommy_Forrest</dc:creator>
    <dc:date>2019-08-01T13:42:45Z</dc:date>
    <item>
      <title>not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59406#M3760</link>
      <description>&lt;P&gt;I can't seem to set a longer then default session timeout using management cli at the moment. For example, if i wanted to increase it to 1200 second over the default 600 seconds i am using the command&lt;/P&gt;&lt;P&gt;mgmt_cli --root true login session-name test-session-timeout session-description test-session-timeout session-timeout 1200 --format json&lt;/P&gt;&lt;P&gt;But after logging in if i run a show session using the returned session id - session timeout still shows as 600seconds. Has anyone else experienced this? i also tried with mgmt_cli&amp;nbsp;--conn-timeout, same result&lt;/P&gt;&lt;P&gt;mgmt_cli --session-id $SID show session&lt;/P&gt;&lt;P&gt;uid: "819cd746-8cd7-4263-bc9b-773ee0a56f65"&lt;BR /&gt;name: "test-session-timeout"&lt;BR /&gt;type: "session"&lt;BR /&gt;domain:&lt;BR /&gt;uid: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxx"&lt;BR /&gt;name: "System Data"&lt;BR /&gt;domain-type: "mds"&lt;BR /&gt;state: "open"&lt;BR /&gt;user-name: "WEB_API"&lt;BR /&gt;description: "test-session-timeout"&lt;BR /&gt;last-login-time:&lt;BR /&gt;posix: 1564636139402&lt;BR /&gt;iso-8601: "2019-08-01T06:08+0100"&lt;BR /&gt;expired-session: false&lt;BR /&gt;application: "WEB_API"&lt;BR /&gt;changes: 0&lt;BR /&gt;in-work: true&lt;BR /&gt;ip-address: "127.0.0.1"&lt;BR /&gt;locks: 0&lt;BR /&gt;email: ""&lt;BR /&gt;phone-number: ""&lt;BR /&gt;connection-mode: "read write"&lt;BR /&gt;session-timeout: 600&lt;BR /&gt;comments: ""&lt;BR /&gt;color: "black"&lt;BR /&gt;icon: "Objects/worksession"&lt;BR /&gt;tags: []&lt;BR /&gt;meta-info:&lt;BR /&gt;lock: "unlocked"&lt;BR /&gt;validation-state: "ok"&lt;BR /&gt;last-modify-time:&lt;BR /&gt;posix: 1564636140597&lt;BR /&gt;iso-8601: "2019-08-01T06:09+0100"&lt;BR /&gt;last-modifier: "WEB_API"&lt;BR /&gt;creation-time:&lt;BR /&gt;posix: 1564636139796&lt;BR /&gt;iso-8601: "2019-08-01T06:08+0100"&lt;BR /&gt;creator: "WEB_API"&lt;BR /&gt;read-only: true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 05:16:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59406#M3760</guid>
      <dc:creator>Richard_Carson</dc:creator>
      <dc:date>2019-08-01T05:16:55Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59411#M3761</link>
      <description>&lt;P&gt;Hey Richard,&lt;/P&gt;&lt;P&gt;I have also experienced this in the past. My guess is that it's related to bug which occurs when somebody is using the "--root true" parameter. If you do not specify this part and instead log in "manually" with a user who has the required set of permissions it is working as expected. Once you want to use the root user - w/o further login steps - the session-timeout defaults to 600. If you still want to use the the root argument you could add the &lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/keepalive~v1.5%20" target="_self"&gt;"keepalive"&lt;/A&gt; command after a while in order to not let the session time out.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Maik&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 06:40:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59411#M3761</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-08-01T06:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59416#M3762</link>
      <description>&lt;P&gt;Thank Maik you are correct it works with a username and password. I see the session timeout is set correctly then.&lt;/P&gt;&lt;P&gt;I was actually testing with a certificate user and password rather then -r true using the mgmt_cli -c -p option - it would appear that this mechanism is also blighted by the same bug:( and does not set the session time out to the given length.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:12:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59416#M3762</guid>
      <dc:creator>Richard_Carson</dc:creator>
      <dc:date>2019-08-01T07:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59417#M3763</link>
      <description>&lt;P&gt;Hm, maybe&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/10726"&gt;@Robert_Decker&lt;/a&gt;&amp;nbsp;can help us in this case? &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 07:15:11 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59417#M3763</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-08-01T07:15:11Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59437#M3764</link>
      <description>&lt;P&gt;I've just made it a habit to issue "unset TMOUT" when I first log into a CLI.&lt;/P&gt;&lt;P&gt;My fingers remember it down even though my brain doesn't always remember.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Aug 2019 13:42:45 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59437#M3764</guid>
      <dc:creator>Tommy_Forrest</dc:creator>
      <dc:date>2019-08-01T13:42:45Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59525#M3765</link>
      <description>&lt;P&gt;What version are you trying this with?&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2019 19:08:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59525#M3765</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-02T19:08:06Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59549#M3766</link>
      <description>This is on R80.10 jumbo take 203. Support have confirmed replication now to.</description>
      <pubDate>Sat, 03 Aug 2019 00:23:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59549#M3766</guid>
      <dc:creator>Richard_Carson</dc:creator>
      <dc:date>2019-08-03T00:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: not able to set session timeout with mgmt_cli</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59581#M3767</link>
      <description>Looks like it is also an issue on R80.20.&lt;BR /&gt;Support ticket the way to go here.</description>
      <pubDate>Sun, 04 Aug 2019 17:52:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/not-able-to-set-session-timeout-with-mgmt-cli/m-p/59581#M3767</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-04T17:52:49Z</dc:date>
    </item>
  </channel>
</rss>

