<?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: PAN-OS-PHP Script issue while replacing services from lower device group to shared in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-php-script-issue-while-replacing-services-from-lower/m-p/510163#M3079</link>
    <description>&lt;P&gt;Hi,&lt;BR /&gt;this was fixed in March 2022, with version&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2.0.32&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This issue was tracked with:&lt;BR /&gt;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-php/issues/524" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-php/issues/524&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;also possible to place questions there:&lt;BR /&gt;&lt;A class="CoveoResultLink" tabindex="0" title="" href="https://live.paloaltonetworks.com/t5/api-articles/pan-os-php-scripting-library-and-utilities/ta-p/404396" target="_blank" rel="noopener" data-always-open-in-new-window="true"&gt;&lt;SPAN class="coveo-highlight"&gt;PAN-OS-PHP&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Scripting Library and Utilities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Sven&lt;/P&gt;</description>
    <pubDate>Thu, 28 Jul 2022 09:16:38 GMT</pubDate>
    <dc:creator>swaschkut</dc:creator>
    <dc:date>2022-07-28T09:16:38Z</dc:date>
    <item>
      <title>PAN-OS-PHP Script issue while replacing services from lower device group to shared</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-php-script-issue-while-replacing-services-from-lower/m-p/468594#M2951</link>
      <description>&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working right now with PHP scripting to merge the services (in lower device group)&amp;nbsp; to shared services and replace it service groups and rules by shared service.&lt;/P&gt;&lt;P&gt;For example, I have a service (TCP-443) in lower device group which I want to merge with the service (tcp_443) from shared in Panorama.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using the below script which has worked fine most of the time but in one case it caused issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;p&lt;STRONG&gt;hp pan-os-php.php type=service-merger in=api://lab_panorama.com location=PHPTEST allowMergingWithUpperLevel 'pickFilter=(name regex /^tcp_/) or (name regex /^udp_/)'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example output:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;value 'TCP-443'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;* using object from upper level : '/PanoramaConf:/ServiceStore/Service:tcp_443'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;- replacing '/DC08-DT-App01/ServiceStore/Service:www_TCP' ...&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;- deleting '/DC08-DT-App01/ServiceStore/Service:www_TCP'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;While running the script for whole device group to match with the pick filter and merge with upper level, it instead of merging the service with the upper level service, it went to delete it first. Due to which the service being used in rules/service objects were never replaced and was deleted, which cause traffic block on that service.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I confirmed the config log and found the service was deleted during the same time by the same API admin account.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I dont feel safe to use this PHP script as it might do this again and could cause big issue.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone has experienced the similar issue while running the PHP script or if anyone has idea, what could be the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 13:36:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-php-script-issue-while-replacing-services-from-lower/m-p/468594#M2951</guid>
      <dc:creator>Gaurav.Singh</dc:creator>
      <dc:date>2022-02-25T13:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: PAN-OS-PHP Script issue while replacing services from lower device group to shared</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-php-script-issue-while-replacing-services-from-lower/m-p/510163#M3079</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;this was fixed in March 2022, with version&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;2.0.32&lt;/PRE&gt;
&lt;P&gt;&lt;BR /&gt;This issue was tracked with:&lt;BR /&gt;&lt;A href="https://github.com/PaloAltoNetworks/pan-os-php/issues/524" target="_blank"&gt;https://github.com/PaloAltoNetworks/pan-os-php/issues/524&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;also possible to place questions there:&lt;BR /&gt;&lt;A class="CoveoResultLink" tabindex="0" title="" href="https://live.paloaltonetworks.com/t5/api-articles/pan-os-php-scripting-library-and-utilities/ta-p/404396" target="_blank" rel="noopener" data-always-open-in-new-window="true"&gt;&lt;SPAN class="coveo-highlight"&gt;PAN-OS-PHP&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Scripting Library and Utilities&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;regards&lt;BR /&gt;Sven&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2022 09:16:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/pan-os-php-script-issue-while-replacing-services-from-lower/m-p/510163#M3079</guid>
      <dc:creator>swaschkut</dc:creator>
      <dc:date>2022-07-28T09:16:38Z</dc:date>
    </item>
  </channel>
</rss>

