<?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: Error exporting Policy package with Python tool in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/11374#M854</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long does it take for the script to run?&lt;/P&gt;&lt;P&gt;Only thing I can think of is the session ID is timing out because it's taking too long between operations.&lt;/P&gt;&lt;P&gt;The default session timer (refreshable) is 600 seconds (10 minutes).&lt;/P&gt;&lt;P&gt;You could easily hack the script to support a longer timeout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Mar 2019 16:04:29 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2019-03-09T16:04:29Z</dc:date>
    <item>
      <title>Error exporting Policy package with Python tool</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/11373#M853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a customer using the Python script for export/importing Policy packages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They have already successfully move a few packages over with no issues but ran into some problems on 1 policy. This policy has over 5000 Rules but very little NAT rules.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are getting the following error which looks more related to the session closing or ending but not sure as to why:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;SPAN style="font-size: 11.0pt;"&gt;‘&lt;STRONG&gt;&lt;EM&gt;Failed to retrieve NAT rulebase! Error: message: Wrong session id [4CqUm2VkMbKBkxtD0PHS9J0qTjX4mC2xkf-M9Vy6xak]. Session may be expired. Please check session id and resend the request.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 11.0pt; "&gt;code: generic_err_wrong_session_id&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;STRONG&gt;&lt;EM style="font-size: 11.0pt; "&gt;. NAT rulebase was not exported!’&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;SPAN style="text-indent: 0px; font-weight: 400; font-size: 11.0pt; "&gt;Wondering if anybody has any ideas. I didn't see any logs to check for more detailed information but I haven't had much exposure to this script besides very recently so I may be missing something.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;/P&gt;&lt;P style="text-indent: .25in;"&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2019 07:44:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/11373#M853</guid>
      <dc:creator>Ryland_Denley</dc:creator>
      <dc:date>2019-03-08T07:44:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error exporting Policy package with Python tool</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/11374#M854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How long does it take for the script to run?&lt;/P&gt;&lt;P&gt;Only thing I can think of is the session ID is timing out because it's taking too long between operations.&lt;/P&gt;&lt;P&gt;The default session timer (refreshable) is 600 seconds (10 minutes).&lt;/P&gt;&lt;P&gt;You could easily hack the script to support a longer timeout.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Mar 2019 16:04:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/11374#M854</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-03-09T16:04:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error exporting Policy package with Python tool</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/46698#M3142</link>
      <description>&lt;P&gt;Taking well over an hour before failing.&amp;nbsp;&lt;BR /&gt;I think you are right as nothing else is really making sense in reference to the session ID.&lt;/P&gt;
&lt;P&gt;Will look into the script for that Timeout.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the direction on this!&lt;/P&gt;</description>
      <pubDate>Wed, 13 Mar 2019 07:55:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Error-exporting-Policy-package-with-Python-tool/m-p/46698#M3142</guid>
      <dc:creator>Ryland_Denley</dc:creator>
      <dc:date>2019-03-13T07:55:56Z</dc:date>
    </item>
  </channel>
</rss>

