<?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: Python tool for exporting/importing a policy package or parts of it in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/61027#M3823</link>
    <description>&lt;P&gt;Hi all.&lt;/P&gt;&lt;P&gt;I was trying to import a policy package from R80.20 take 87 to a different server with the same software version. Most of the objects are imported successfully, but some are not. Error message is:&lt;/P&gt;&lt;PRE&gt;Management server failed to execute command&lt;BR /&gt;code: generic_server_error&lt;/PRE&gt;&lt;P&gt;Looking at api.elg, I get a more precise message, indicating that locking did not work properly. See spoiler for details.&lt;/P&gt;&lt;LI-SPOILER&gt;&lt;PRE&gt;--------------------------------------&lt;BR /&gt;2019-08-23 11:35:44,242 INFO org.apache.cxf.interceptor.LoggingInInterceptor.log:250 [qtp-1644921743-33] - Inbound Message&lt;BR /&gt;----------------------------&lt;BR /&gt;ID: 273&lt;BR /&gt;Address: http://127.0.0.1:50276/web_api/v1.3/add-service-udp&lt;BR /&gt;Encoding: ISO-8859-1&lt;BR /&gt;Http-Method: POST&lt;BR /&gt;Content-Type: application/json&lt;BR /&gt;Headers: {Accept=[*/*], accept-encoding=[identity], connection=[keep-alive], Content-Length=[607], content-type=[application/json], Host=[127.0.0.1:50276], User-Agent=[python-api-wrapper], X-chkp-sid=[70qoJaI5i1Nyal8Ew9aXr8B5vtSBATz70sXn&lt;BR /&gt;z1izBPo], X-Forwarded-For=[127.0.0.1], X-Forwarded-Host=[127.0.0.1], X-Forwarded-Host-Port=[443], X-Forwarded-Server=[10.10.10.180]}&lt;BR /&gt;Payload: {"match-by-protocol-signature": "false", "aggressive-aging": {"use-default-timeout": "true", "enable": "true", "timeout": "15", "default-timeout": "0"}, "ignore-warnings": true, "name": "NAME_COLLISION_RESOLVED_36_udp-49152-6553&lt;BR /&gt;5", "override-default-settings": "false", "color": "black", "sync-connections-on-cluster": "true", "comments": " udp-49152-65535", "match-for-any": "false", "keep-connections-open-after-policy-installation": "false", "session-timeout": "&lt;BR /&gt;40", "accept-replies": "true", "use-default-session-timeout": "true", "port": "49152-65535", "tags": ["dcaa4621-3a34-479e-ad88-8d5da19200df"]}&lt;BR /&gt;--------------------------------------&lt;BR /&gt;2019-08-23 11:35:44,249 INFO com.checkpoint.management.web_api_is.utils.helpers.ApiCache.:21 [qtp-1644921743-33] - Cache created and initialized&lt;BR /&gt;2019-08-23 11:35:44,250 INFO com.checkpoint.management.web_api.web_services.WebApiEntryPoint.logRequestedCommandInfo:51 [qtp-1644921743-33] - Executing [add-service-udp] of version 1.3 (references 1.1)&lt;BR /&gt;2019-08-23 11:35:44,318 ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:47 [qtp-1644921743-33] - Server has thrown GeneralRemoteFault exception errorCode [CP_ERR_OBJECT_CANNOT_BE_LOCKED] errorFamil&lt;BR /&gt;y [null] message [An internal error has occurred.]&lt;BR /&gt;2019-08-23 11:35:44,318 WARN com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:190 [qtp-1644921743-33] - Unhandled GeneralRemoteFault error code [CP_ERR_OBJECT_CANNOT_BE_LOCKED]&lt;BR /&gt;2019-08-23 11:35:44,319 ERROR com.checkpoint.management.web_api.utils.WebApiCommandExceptionUtils.getErrorReply:94 [qtp-1644921743-33] -&lt;BR /&gt;com.checkpoint.web_services.faults.GeneralRemoteFault: An internal error has occurred.&lt;BR /&gt;at sun.reflect.GeneratedConstructorAccessor249.newInstance(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)&lt;BR /&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:437)&lt;BR /&gt;at org.apache.cxf.interceptor.ClientFaultConverter.processFaultDetail(ClientFaultConverter.java:182)&lt;BR /&gt;at org.apache.cxf.interceptor.ClientFaultConverter.handleMessage(ClientFaultConverter.java:82)&lt;BR /&gt;at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)&lt;BR /&gt;at org.apache.cxf.interceptor.AbstractFaultChainInitiatorObserver.onMessage(AbstractFaultChainInitiatorObserver.java:113)&lt;BR /&gt;at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:69)&lt;BR /&gt;at org.apache.cxf.binding.soap.interceptor.CheckFaultInterceptor.handleMessage(CheckFaultInterceptor.java:34)&lt;BR /&gt;at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)&lt;BR /&gt;at org.apache.cxf.endpoint.ClientImpl.onMessage(ClientImpl.java:802)&lt;BR /&gt;at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponseInternal(HTTPConduit.java:1642)&lt;BR /&gt;at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.handleResponse(HTTPConduit.java:1533)&lt;BR /&gt;at org.apache.cxf.transport.http.HTTPConduit$WrappedOutputStream.close(HTTPConduit.java:1336)&lt;BR /&gt;at org.apache.cxf.transport.AbstractConduit.close(AbstractConduit.java:56)&lt;BR /&gt;at org.apache.cxf.transport.http.HTTPConduit.close(HTTPConduit.java:652)&lt;BR /&gt;at org.apache.cxf.interceptor.MessageSenderInterceptor$MessageSenderEndingInterceptor.handleMessage(MessageSenderInterceptor.java:62)&lt;BR /&gt;at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)&lt;BR /&gt;at org.apache.cxf.endpoint.ClientImpl.doInvoke(ClientImpl.java:516)&lt;BR /&gt;at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:425)&lt;BR /&gt;at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:326)&lt;BR /&gt;at org.apache.cxf.endpoint.ClientImpl.invoke(ClientImpl.java:279)&lt;BR /&gt;at org.apache.cxf.frontend.ClientProxy.invokeSync(ClientProxy.java:96)&lt;BR /&gt;at org.apache.cxf.jaxws.JaxWsClientProxy.invoke(JaxWsClientProxy.java:139)&lt;BR /&gt;at com.sun.proxy.$Proxy244.updateObjectWithReturnControlErrorLevel(Unknown Source)&lt;BR /&gt;at com.checkpoint.management.web_api_is.utils.managers.RemoteObjectCrudManager.updateObjectWithReturn_aroundBody30(RemoteObjectCrudManager.java:24)&lt;BR /&gt;at com.checkpoint.management.web_api_is.utils.managers.RemoteObjectCrudManager$AjcClosure31.run(RemoteObjectCrudManager.java:1)&lt;BR /&gt;at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)&lt;BR /&gt;at com.checkpoint.management.web_api_is.aspects.logging.WebApiMethodLoggerAspect.aroundMethodLoggerTest(WebApiMethodLoggerAspect.java:13)&lt;BR /&gt;at com.checkpoint.management.web_api_is.utils.managers.RemoteObjectCrudManager.updateObjectWithReturn(RemoteObjectCrudManager.java:72)&lt;BR /&gt;at com.checkpoint.management.web_api_is.core.handler.base.ApiObjectRequestHandler.doUpdateObjectForAdd(ApiObjectRequestHandler.java:34)&lt;BR /&gt;at com.checkpoint.management.web_api_is.core.handler.base.ApiCrudRequestHandler.add_aroundBody0(ApiCrudRequestHandler.java:19)&lt;BR /&gt;at com.checkpoint.management.web_api_is.core.handler.base.ApiCrudRequestHandler$AjcClosure1.run(ApiCrudRequestHandler.java:1)&lt;BR /&gt;at org.aspectj.runtime.reflect.JoinPointImpl.proceed(JoinPointImpl.java:149)&lt;BR /&gt;at com.checkpoint.management.web_api_is.aspects.logging.WebApiMethodLoggerAspect.aroundMethodLoggerTest(WebApiMethodLoggerAspect.java:13)&lt;BR /&gt;at com.checkpoint.management.web_api_is.core.handler.base.ApiCrudRequestHandler.add(ApiCrudRequestHandler.java:52)&lt;BR /&gt;at com.checkpoint.management.web_api.core.handler.objects.network_objects.services.service.advanced.ip.v1_1.IPServiceRequestHandler.add(IPServiceRequestHandler.java:5)&lt;BR /&gt;at com.checkpoint.management.web_api.core.handler.objects.network_objects.services.service.advanced.ip.udp.v1_1.UdpServiceRequestHandler.add(UdpServiceRequestHandler.java:2)&lt;BR /&gt;at sun.reflect.GeneratedMethodAccessor151.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:508)&lt;BR /&gt;at com.checkpoint.management.web_api_is.utils.WebApiReflectionUtils.invoke(WebApiReflectionUtils.java:7)&lt;BR /&gt;at com.checkpoint.management.web_api.web_services.WebApiEntryPoint.postEntryPoint(WebApiEntryPoint.java:81)&lt;BR /&gt;at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Method.java:508)&lt;BR /&gt;at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:181)&lt;BR /&gt;at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:97)&lt;BR /&gt;at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:204)&lt;BR /&gt;at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:101)&lt;BR /&gt;at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)&lt;BR /&gt;at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)&lt;BR /&gt;at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:307)&lt;BR /&gt;at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)&lt;BR /&gt;at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)&lt;BR /&gt;at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)&lt;BR /&gt;at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)&lt;BR /&gt;at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)&lt;BR /&gt;at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:171)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)&lt;BR /&gt;at javax.servlet.http.HttpServlet.service(HttpServlet.java:755)&lt;BR /&gt;at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:686)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1494)&lt;BR /&gt;at org.eclipse.jetty.servlets.CrossOriginFilter.handle(CrossOriginFilter.java:247)&lt;BR /&gt;at org.eclipse.jetty.servlets.CrossOriginFilter.doFilter(CrossOriginFilter.java:210)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1482)&lt;BR /&gt;at com.checkpoint.management.web_api.core.filter.LogCustomDebugFieldFilter.doFilter(LogCustomDebugFieldFilter.java:19)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1474)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:499)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)&lt;BR /&gt;at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086)&lt;BR /&gt;at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428)&lt;BR /&gt;at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)&lt;BR /&gt;at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)&lt;BR /&gt;at org.eclipse.jetty.server.handler.IPAccessHandler.handle(IPAccessHandler.java:203)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)&lt;BR /&gt;at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)&lt;BR /&gt;at org.eclipse.jetty.server.Server.handle(Server.java:370)&lt;BR /&gt;at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)&lt;BR /&gt;at org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:960)&lt;BR /&gt;at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1021)&lt;BR /&gt;at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:865)&lt;BR /&gt;at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)&lt;BR /&gt;at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)&lt;BR /&gt;at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:668)&lt;BR /&gt;at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)&lt;BR /&gt;at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)&lt;BR /&gt;at java.lang.Thread.run(Thread.java:785)&lt;/PRE&gt;&lt;/LI-SPOILER&gt;&lt;P&gt;Essentially, the error message is:&lt;/P&gt;&lt;PRE&gt;Server has thrown GeneralRemoteFault exception errorCode [CP_ERR_OBJECT_CANNOT_BE_LOCKED] errorFamil
y [null] message [An internal error has occurred.]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anybody have a clue why this error occurs only for some objects? I do not see anything they have in common. Same issue occurs for "udp-9679", so it's not the length &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steffen&lt;/P&gt;</description>
    <pubDate>Fri, 23 Aug 2019 10:52:44 GMT</pubDate>
    <dc:creator>steffenkoelsch</dc:creator>
    <dc:date>2019-08-23T10:52:44Z</dc:date>
    <item>
      <title>Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829</link>
      <description>&lt;H2&gt;Overview&lt;/H2&gt;
&lt;P&gt;ExportImportPolicyPackage tool enables you to export a policy package from a R80.x management database to a .tar.gz file, which can then be imported into any other R8x management database.&lt;/P&gt;
&lt;P&gt;This tool can be used for backups, database transfers, testing, and more.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;In the case you are exporting a policy package from a CMA, please verify that a global policy was NOT assigned to that CMA.&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;The tool doesn't support exporting a policy with global policy assigned!&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;The tool is referenced in&amp;nbsp;&lt;A href="https://support.checkpoint.com/results/sk/sk180923" target="_blank" rel="noopener"&gt;https://support.checkpoint.com/results/sk/sk180923&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;Description&lt;/H2&gt;
&lt;P&gt;This tool enables you to export a policy package (Access Policy, Threat Policy or both) from a management server into a .tar.gz file.&lt;/P&gt;
&lt;H2&gt;&lt;STRONG&gt;Notice&lt;/STRONG&gt;&lt;/H2&gt;
&lt;P&gt;There are some types of objects that the script might not be able to export.&lt;BR /&gt;In such a case, an appropriate dummy object will be exported instead, and a message will be logged into the log files to notify you of this.&lt;BR /&gt;In the Check Point SmartConsole you can easily replace each of these objects by searching "export_error" in the search field, see where each object is used, create the necessary object manually, then replace it.&lt;/P&gt;
&lt;H2&gt;Instructions&lt;/H2&gt;
&lt;P&gt;Download the latest version from our GitHub repository:&amp;nbsp;&lt;A class="link-titled" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;First, make sure you have [2.7.9 &amp;lt;= Python &amp;lt;= 2.7.14] installed on the machine running the script.&lt;BR /&gt;To export a package, run the import_export_package.py script. An interactive menu will guide you the rest of the way.&lt;BR /&gt;Command line flags may also be set in order to skip some or all of the menu.&lt;BR /&gt;&lt;STRONG&gt;A lot more details can of course be accessed with the [-h] option. This option also prints the current version of the tool.&lt;/STRONG&gt;&lt;/P&gt;
&lt;H2&gt;Limitations&lt;/H2&gt;
&lt;P&gt;This export/import script does not gather all data from a given management server/CMA.&lt;BR /&gt;In general, it is limited by the R8x Management APIs available on your version.&lt;BR /&gt;Specifically, this means:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;CMAs with a Global Policy assigned cannot be exported
&lt;UL&gt;
&lt;LI&gt;Workaround: unassign the Global Policy prior to export&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Gateway/Cluster objects have to be recreated
&lt;UL&gt;
&lt;LI&gt;Placeholder objects will&amp;nbsp;be created&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;UserCheck messages have to be recreated
&lt;UL&gt;
&lt;LI&gt;Placeholder objects will&amp;nbsp;be created&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;The Internal Certificate Authority will not be copied. This means:
&lt;UL&gt;
&lt;LI&gt;Re-establishing SIC with the appropriate gateways&lt;/LI&gt;
&lt;LI&gt;Re-generating VPN certificates&lt;/LI&gt;
&lt;LI&gt;Manually recreating HTTPS Inspection and DLP Rules&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Other objects not currently readable/writable via the R8x API will not be copied&lt;/LI&gt;
&lt;/UL&gt;
&lt;H2&gt;Tested on version&lt;/H2&gt;
&lt;P&gt;R8x&lt;BR /&gt;Releases earlier than R80 lack the necessary API support and are not supported.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG style="color: inherit; font-family: inherit; font-size: 30px;"&gt;Source Code Availability&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;The source code is available through GitHub:&amp;nbsp;&lt;A class="link-titled" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" href="https://github.com/CheckPointSW/ExportImportPolicyPackage" target="_blank" rel="noopener"&gt;https://github.com/CheckPointSW/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;FAQ&lt;/H2&gt;
&lt;P&gt;Replies to this thread have locked.&lt;BR /&gt;Please refer to the FAQ below before you create a new post with your question.&lt;/P&gt;
&lt;H4&gt;When I run this tool, I get the message: APIResponse received a response which is not a valid JSON.&lt;/H4&gt;
&lt;P&gt;This most likely means you haven't enabled the API server yet.&lt;BR /&gt;See:&amp;nbsp;&lt;A href="https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/m-p/32641" target="_blank" rel="noopener"&gt;https://community.checkpoint.com/t5/API-CLI-Discussion-and-Samples/Enabling-web-api/m-p/32641&lt;/A&gt;&lt;/P&gt;
&lt;H4&gt;I get an error message related to server fingerprint&lt;/H4&gt;
&lt;P&gt;Use the --unsafe option to ignore this error.&lt;/P&gt;
&lt;H4&gt;Can this tool export more than one policy package at a time?&lt;/H4&gt;
&lt;P&gt;Not currently, but you could call the tool in a script multiple times.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 20:30:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41100#M2829</guid>
      <dc:creator>Inbar_Moskovich</dc:creator>
      <dc:date>2025-02-26T20:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41129#M2858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This source code is now an open source on GitHub repository:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage" title="https://github.com/CheckPoint-APIs-Team/ExportImportPolicyPackage"&gt;GitHub - CheckPoint-APIs-Team/ExportImportPolicyPackage&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 27 Aug 2017 13:04:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41129#M2858</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-08-27T13:04:52Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41130#M2859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Is there a way to export all packages from 1 domain instead of exporting each package 1 by 1?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 05:21:05 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41130#M2859</guid>
      <dc:creator>Julien_Tissot</dc:creator>
      <dc:date>2017-08-30T05:21:05Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41131#M2860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the moment no, but it might be added in the near future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 06:21:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41131#M2860</guid>
      <dc:creator>Adam_Galmor</dc:creator>
      <dc:date>2017-08-30T06:21:28Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41132#M2861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;I have an error when there is a special character (in my case 'é' or 'è' or others) in the rule name. Is there a way to just ignore this character but to let the export continue? The logs are attached&lt;/P&gt;&lt;P&gt;Thanks you&lt;/P&gt;&lt;P&gt;Julien&lt;/P&gt;&lt;P&gt;----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Retrieved 384 out of 384 rules (100%)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "import_export_package.py", line 44, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; export_package(client, args)&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_package.py", line 38, in export_package&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; = export_access_rulebase(access_layer["name"], client, timestamp, tar_file)&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_access_rulebase.py", line 16, in export_access_rulebase&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; get_query_rulebase_data(client, "access-rulebase", {"name": layer})&lt;BR /&gt;&amp;nbsp; File "/import_export_V2.0/exporting/export_objects.py", line 122, in get_query_rulebase_data&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; rulebase_item else "???", rule["name"] if "name" in rule else "")&lt;BR /&gt;UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 7: ordinal not in range(128)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Aug 2017 15:03:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41132#M2861</guid>
      <dc:creator>Julien_Tissot</dc:creator>
      <dc:date>2017-08-30T15:03:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41133#M2862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I'm trying to make&amp;nbsp;an export by running&amp;nbsp;this utility but don't get what should I put as the package name, because from what I'm seeing it's not the&amp;nbsp;the name that the policy has on the SMS server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 16:48:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41133#M2862</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-11T16:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41134#M2863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien,&lt;/P&gt;&lt;P&gt;Our team will check this problem and update the community once resolved.&lt;/P&gt;&lt;P&gt;Robert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:11:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41134#M2863</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-09-12T09:11:33Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41135#M2864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Our team will check this problem and update the community once resolved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Robert.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 09:13:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41135#M2864</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-09-12T09:13:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41136#M2865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Olivia,&lt;/P&gt;&lt;P&gt;You're supposed to put the name of the policy package as seen here:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Image of &amp;quot;Manage Policy packages&amp;quot; screen" class="image-1 jive-image j-img-original" src="https://community.checkpoint.com/legacyfs/online/checkpoint/58512_SmartConsole_2017-09-12_15-13-45.png" style="width: 620px; height: 384px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't help, please explain further what you are trying to do and how, and what is the output of the tool?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 12:17:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41136#M2865</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-12T12:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41137#M2866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Julien,&lt;/P&gt;&lt;P&gt;The issue should be fixed now, reclone the repo and try again.&lt;/P&gt;&lt;P&gt;If there are any further issues, please tell us.&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 09:26:38 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41137#M2866</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-13T09:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41138#M2867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Adam and guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did some testing and here are my findings:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case 1:&lt;/P&gt;&lt;P&gt;not possible to import objects with tags, looks its a problem with exported data and parameters tags.0.X&lt;/P&gt;&lt;P&gt;debug msg: &lt;BR /&gt;Failed to import network with name [net_SIP-provider-broadsoft_XXXXX_21]. Error: Invalid parameter for [tags]. Invalid value&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;json data: &lt;BR /&gt; {&lt;BR /&gt; "subnet4": "XXX", &lt;BR /&gt; "nat-settings.auto-rule": false, &lt;BR /&gt; "color": "black", &lt;BR /&gt; "comments": "", &lt;BR /&gt; "name": "net_SIP-provider-broadsoft_XXX", &lt;BR /&gt; "broadcast": "allow", &lt;BR /&gt; "tags.0.name": "PUBLIC-INTERNET-LAB", &lt;BR /&gt; "mask-length4": 21, &lt;BR /&gt; "tags.0.comments": "", &lt;BR /&gt; "tags.0.color": "black", &lt;BR /&gt; "tags.0.type": "tag"&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;csv data:&lt;BR /&gt;broadcast,color,comments,mask-length4,mask-length6,name,nat-settings.auto-rule,nat-settings.hide-behind,nat-settings.install-on,nat-settings.ipv4-address,nat-settings.ipv6-address,nat-settings.method,subnet4,subnet6,tags.0.color,tags.0.comments,tags.0.name,tags.0.type,tags.1.color,tags.1.comments,tags.1.name,tags.1.type&lt;BR /&gt;allow,black,,21,,net_SIP-provider-broadsoft_x.x.x.x_21,false,,,,,,x.x.x.X,,black,,PUBLIC-INTERNET-LAB,tag,,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;####&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case2:&lt;/P&gt;&lt;P&gt;having two ordered layers Network and App on source mgmt - in Network layer I have rules where are defined inline layers - looks code does not count with this and all inline layers are loaded as ordered layers&lt;/P&gt;&lt;P&gt;debug msg:&lt;/P&gt;&lt;P&gt;IN ad OUT rules are defined with action inline layer&lt;BR /&gt;Failed to import access-rule with name [INT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [OUT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [INT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;BR /&gt;Failed to import access-rule with name [OUT]. Error: Request for Apply Layer may not change Action Settings or User Check parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;###&lt;/P&gt;&lt;P&gt;case3:&lt;/P&gt;&lt;P&gt;data export/import for non r80.10 gw is bad, I have few 1450 boxes -77.20 emdededGaia and look for definition below in json -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;{&lt;BR /&gt; "bladesInfo.1.sortOrder": 3, &lt;BR /&gt; "versionName": "R77.20", &lt;BR /&gt; "bladesInfo.4.comments": null, &lt;BR /&gt; "ipv4-address": "81.91.220.11", &lt;BR /&gt; "bladesInfo.5.sortOrder": 14, &lt;BR /&gt; "bladesInfo.6.sortOrder": 15, &lt;BR /&gt; "bladesInfo.5.display-name": "IPS", &lt;BR /&gt; "bladesInfo.3.comments": null, &lt;BR /&gt; "bladesInfo.6.comments": null, &lt;BR /&gt; "bladesInfo.1.customFields": null, &lt;BR /&gt; "bladesInfo.5.bladeCategory": "threat blades", &lt;BR /&gt; "bladesInfo.6.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.7.comments": null, &lt;BR /&gt; "bladesInfo.3.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.5.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.1.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.7.bladeCategory": "threat blades", &lt;BR /&gt; "bladesInfo.4.display-name": "QoS", &lt;BR /&gt; "name": "partial_export_error_simple-gateway_86fc2467-e0a1-4db3-8efc-c50996c4ccf4_XXX", &lt;BR /&gt; "bladesInfo.0.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.5.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.0.customFields": null, &lt;BR /&gt; "bladesInfo.4.name": null, &lt;BR /&gt; "bladesInfo.3.bladeState.changeable": false, &lt;BR /&gt; "macAddress": "", &lt;BR /&gt; "sicExists": true, &lt;BR /&gt; "bladesInfo.4.sortOrder": 9, &lt;BR /&gt; "bladesInfo.7.display-name": "Anti-Virus", &lt;BR /&gt; "bladesInfo.0.sortOrder": 0, &lt;BR /&gt; "bladesInfo.2.bladeState.changeable": false, &lt;BR /&gt; "accessLicense": false, &lt;BR /&gt; "bladesInfo.3.bladeState.activationState": "on", &lt;BR /&gt; "comments": "", &lt;BR /&gt; "bladesInfo.5.comments": null, &lt;BR /&gt; "bladesInfo.7.customFields": null, &lt;BR /&gt; "bladesInfo.2.comments": null, &lt;BR /&gt; "bladesInfo.6.name": null, &lt;BR /&gt; "bladesInfo.1.name": null, &lt;BR /&gt; "bladesInfo.5.customFields": null, &lt;BR /&gt; "bladesInfo.7.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.6.customFields": null, &lt;BR /&gt; "osName": "Gaia Embedded", &lt;BR /&gt; "bladesInfo.0.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.3.customFields": null, &lt;BR /&gt; "bladesInfo.7.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.7.sortOrder": 16, &lt;BR /&gt; "bladesInfo.4.customFields": null, &lt;BR /&gt; "color": "black", &lt;BR /&gt; "bladesInfo.6.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.1.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.4.bladeState.changeable": false, &lt;BR /&gt; "connectionState": "communicating", &lt;BR /&gt; "primaryManagement": false, &lt;BR /&gt; "bladesInfo.4.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.4.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.7.name": null, &lt;BR /&gt; "bladesInfo.3.name": null, &lt;BR /&gt; "bladesInfo.1.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.2.sortOrder": 4, &lt;BR /&gt; "natSummaryText": "None", &lt;BR /&gt; "customFields": null, &lt;BR /&gt; "bladesInfo.2.display-name": "URL Filtering", &lt;BR /&gt; "bladesInfo.1.display-name": "Application Control", &lt;BR /&gt; "proxyAddress": "Default Proxy Settings", &lt;BR /&gt; "bladesInfo.3.sortOrder": 7, &lt;BR /&gt; "bladesInfo.2.customFields": null, &lt;BR /&gt; "bladesInfo.3.bladeState.valid": false, &lt;BR /&gt; "bladesInfo.2.name": null, &lt;BR /&gt; "bladesInfo.6.display-name": "Anti-Bot", &lt;BR /&gt; "bladesInfo.6.bladeCategory": "threat blades", &lt;BR /&gt; "overallStatus": true, &lt;BR /&gt; "bladesInfo.0.display-name": "Firewall", &lt;BR /&gt; "bladesInfo.0.name": null, &lt;BR /&gt; "bladesInfo.5.bladeState.changeable": false, &lt;BR /&gt; "bladesInfo.2.bladeState.valid": false, &lt;BR /&gt; "licenseSKU": "CPSG-EVAL-P1207-30/1", &lt;BR /&gt; "bladesInfo.6.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.2.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.4.bladeCategory": "access blades", &lt;BR /&gt; "bladesInfo.1.bladeCategory": "access blades", &lt;BR /&gt; "bladeMgmtWorkflowOn": false, &lt;BR /&gt; "bladesInfo.2.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.5.name": null, &lt;BR /&gt; "bladesInfo.0.bladeCategory": "access blades", &lt;BR /&gt; "display-name": "", &lt;BR /&gt; "bladesInfo.3.display-name": "Identity Awareness", &lt;BR /&gt; "bladesInfo.0.comments": null, &lt;BR /&gt; "hwName": "1100 Appliances", &lt;BR /&gt; "bladesInfo.0.bladeState.activationState": "on", &lt;BR /&gt; "bladesInfo.7.bladeState.valid": false, &lt;BR /&gt; "ipv6-address": "", &lt;BR /&gt; "bladesInfo.1.comments": null, &lt;BR /&gt; "threatLicense": false&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for example "hwName": "1100 Appliances" does not seems to be correct &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;BR /&gt;1450 are not imported and I have these logs:&lt;BR /&gt;Failed to import simple-gateway with name [partial_export_error_simple-gateway_d992da76-783b-4f50-ae1f-327701158bf0_XXX]. Error: Unrecognized parameter [natSummaryText]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Sep 2017 20:14:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41138#M2867</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2017-09-15T20:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41139#M2868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ivo,&lt;/P&gt;&lt;P&gt;I tried reproducing your first and second problems, but couldn't. Make sure you are on the latest version of the tool (clone it from the&amp;nbsp;GitHub link above). If the problem persists, please reply with more details so I can reproduce the problem on my side.&lt;/P&gt;&lt;P&gt;This tool works for exporting/importing from R80.10 machines to R80.10 machines, nothing before, as there is no API support. So you can't export from or import to&amp;nbsp;R77.20 machines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shoham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 08:38:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41139#M2868</guid>
      <dc:creator>Shoham_Halevi</dc:creator>
      <dc:date>2017-09-18T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41140#M2869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have latest version.. is there a way how I can share with you exported data?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand its for exporting from/to R80.10 machine, but event R80.10 mgmt can orchestrate r77.x gateways.. specially 1400 boxes could be there since its just 77.20.x.x or something like that &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://community.checkpoint.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&amp;nbsp;and those machines are normally in R80.10 database &lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/laugh.png" /&gt;&amp;nbsp;so why they should not be exported to another R80.10 machine?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ivo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Sep 2017 09:02:06 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41140#M2869</guid>
      <dc:creator>Ivo_Hrbacek</dc:creator>
      <dc:date>2017-09-18T09:02:06Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41141#M2870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks! it&amp;nbsp;seems&amp;nbsp;I had wrong&amp;nbsp;typed the policy name many times!&amp;nbsp;&lt;IMG src="https://community.checkpoint.com/legacyfs/online/checkpoint/emoticons/alert.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:52:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41141#M2870</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-25T13:52:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41142#M2871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, resolved, package name was a typo.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2017 13:53:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41142#M2871</guid>
      <dc:creator>OliviaMocellini</dc:creator>
      <dc:date>2017-09-25T13:53:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41147#M2876</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not successful with the tool. Trying to export the configuration from R80.10 mgmt.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;python import_export_package.py -m x.x.x.x -op export -n Lab -o conf.out -u xxxxyyyyyy -p xxxxyyyyy --all&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "import_export_package.py", line 30, in &amp;lt;module&amp;gt;&lt;BR /&gt; payload={"read-only": "true" if args.operation == "export" else "false"})&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 154, in login&lt;BR /&gt; login_res = self.api_call("login", credentials)&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 225, in api_call&lt;BR /&gt; self.check_fingerprint()&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 522, in check_fingerprint&lt;BR /&gt; server_fingerprint = self.get_server_fingerprint()&lt;BR /&gt; File "/cygdrive/d/Python scripts/ExportImportPolicyPackage-master/cp_mgmt_api_python_sdk/lib/mgmt_api.py", line 414, in get_server_fingerprint&lt;BR /&gt; context = ssl.create_default_context()&lt;BR /&gt;AttributeError: 'module' object has no attribute 'create_default_context'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:05:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41147#M2876</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-10-25T11:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41148#M2877</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Which version of python are you using?&lt;/P&gt;&lt;P&gt;It should be at least 2.7.9...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Nov 2017 09:16:25 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41148#M2877</guid>
      <dc:creator>Robert_Decker</dc:creator>
      <dc:date>2017-11-02T09:16:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41149#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2.7.14.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Nov 2017 12:24:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41149#M2878</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-06T12:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41150#M2879</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I managed to resolve the issue. First I tried with python 2.7.9. and didn't get the error message anymore, but got this one:&lt;/P&gt;&lt;P&gt;Login to management server failed. lib::APIResponse&lt;BR /&gt;{&lt;BR /&gt; "data": null,&lt;BR /&gt; "error_message": "APIResponse received a response which is not a valid JSON.",&lt;BR /&gt; "res_obj": {},&lt;BR /&gt; "status_code": 403,&lt;BR /&gt; "success": false&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution was to enable API access from all IP's.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 11:10:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41150#M2879</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-07T11:10:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python tool for exporting/importing a policy package or parts of it</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41151#M2880</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that the export is done, does anyone have a&amp;nbsp;suggestion for a bulk rename of the objects/networks before importing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also, I can't seem to find NAT rules in the export files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2017 11:11:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Python-tool-for-exporting-importing-a-policy-package-or-parts-of/m-p/41151#M2880</guid>
      <dc:creator>Borut</dc:creator>
      <dc:date>2017-11-07T11:11:54Z</dc:date>
    </item>
  </channel>
</rss>

