<?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: Can I login to web_api with same user from 3 python scripts simultaneously. in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85943#M4885</link>
    <description>Prior to R80.20, no, as the same user is unable to create multiple sessions.&lt;BR /&gt;Even in R80.20+ only one Install Policy action is allowed to take place at a time, but the other operations can happen in parallel.</description>
    <pubDate>Wed, 20 May 2020 21:05:55 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2020-05-20T21:05:55Z</dc:date>
    <item>
      <title>Can I login to web_api with same user from 3 python scripts simultaneously.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85817#M4882</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Can I login to web_api with same user from 3 python scripts simultaneously.&lt;/P&gt;&lt;P&gt;These 3 scripts will do - &lt;STRONG&gt;login --&amp;gt; add host --&amp;gt; add access rule --&amp;gt; publish --&amp;gt; install policy --&amp;gt; logout.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;can 3 python scripts trigger this series of operations parallelly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 May 2020 20:51:22 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85817#M4882</guid>
      <dc:creator>appyens</dc:creator>
      <dc:date>2020-05-19T20:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can I login to web_api with same user from 3 python scripts simultaneously.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85943#M4885</link>
      <description>Prior to R80.20, no, as the same user is unable to create multiple sessions.&lt;BR /&gt;Even in R80.20+ only one Install Policy action is allowed to take place at a time, but the other operations can happen in parallel.</description>
      <pubDate>Wed, 20 May 2020 21:05:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85943#M4885</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-05-20T21:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: Can I login to web_api with same user from 3 python scripts simultaneously.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85953#M4886</link>
      <description>So is there any way via web_api to know that user is already logged in or user has logged out. so that I can trigger these scripts one by one. (only web_api)</description>
      <pubDate>Wed, 20 May 2020 22:29:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85953#M4886</guid>
      <dc:creator>appyens</dc:creator>
      <dc:date>2020-05-20T22:29:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can I login to web_api with same user from 3 python scripts simultaneously.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85954#M4887</link>
      <description>You'd have to query the show sessions API with a different user to get the active sessions, then iterate over each one to see if there are any sessions by the user in question.&lt;BR /&gt;Seriously, though, if you're running R80 or R80.10, you should really upgrade.&lt;BR /&gt;&lt;BR /&gt;If you're running R80.20+, assuming the scripts are modifying different objects/rules, you should have no trouble running the scripts concurrently.&lt;BR /&gt;The only command that is not supported in parallel is install policy.&lt;BR /&gt;You should be error-checking for policy install failures.&lt;BR /&gt;If it's because another policy is already installing, you should be able to determine this by reviewing the error you get and/or reviewing the running tasks.&lt;BR /&gt;&lt;BR /&gt;That said, I'm not sure what you are doing is the correct approach.&lt;BR /&gt;Are all of these policy installs to the same gateway or different ones?&lt;BR /&gt;And keep in mind that policy installs can be disruptive to running traffic depending on a number of factors, so you want to keep plicy pushes to a minimum.&lt;BR /&gt;</description>
      <pubDate>Wed, 20 May 2020 23:16:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Can-I-login-to-web-api-with-same-user-from-3-python-scripts/m-p/85954#M4887</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-05-20T23:16:58Z</dc:date>
    </item>
  </channel>
</rss>

