<?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 Removal of Targets from Policy in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/612188#M2556</link>
    <description>&lt;P&gt;I have a number of firewalls managed in Panorama that are to be decommissioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some of these firewalls are in Device Groups with several thousand policy entries.&amp;nbsp; Annoyingly they have been assigned the firewalls in the target column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have a documented method as to how to remove targets from a Device Group in Panorama quickly and/or efficiently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Tue, 22 Oct 2024 13:36:56 GMT</pubDate>
    <dc:creator>GrantCampbell4</dc:creator>
    <dc:date>2024-10-22T13:36:56Z</dc:date>
    <item>
      <title>Removal of Targets from Policy</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/612188#M2556</link>
      <description>&lt;P&gt;I have a number of firewalls managed in Panorama that are to be decommissioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Some of these firewalls are in Device Groups with several thousand policy entries.&amp;nbsp; Annoyingly they have been assigned the firewalls in the target column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does anyone have a documented method as to how to remove targets from a Device Group in Panorama quickly and/or efficiently?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 22 Oct 2024 13:36:56 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/612188#M2556</guid>
      <dc:creator>GrantCampbell4</dc:creator>
      <dc:date>2024-10-22T13:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Removal of Targets from Policy</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/614118#M2565</link>
      <description>&lt;P&gt;We've had a scenario where we had to change hundreds of rules from targeting specific firewalls to target 'any'.&lt;/P&gt;
&lt;P&gt;In Panorama CLI you can use:&lt;BR /&gt;#show | match "target devices &amp;lt;serial&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;This will get you an output of 1000s of policies with that firewall as a target.&lt;/P&gt;
&lt;P&gt;#set device-group &amp;lt;deviceGroup&amp;gt; post-rulebase security rules &amp;lt;ruleName&amp;gt; target devices &amp;lt;serial&amp;gt; vsys vsys&amp;lt;X&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Using that output you can edit in notepad to be for example: (really just need to change set to delete and remove the trailing vsys vsysX)&lt;/P&gt;
&lt;P&gt;#delete device-group &amp;lt;deviceGroup&amp;gt; post-rulebase security rules &amp;lt;ruleName&amp;gt; target devices &amp;lt;serial&amp;gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you get rid of all firewall targets on a rule, the rule target reverts to 'any' which sounds like what you're after.&lt;/P&gt;
&lt;P&gt;Bang the thousands of lines into CLI, if you haven't already, you may need to use the 'set cli config-output-format set' command&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 00:57:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/614118#M2565</guid>
      <dc:creator>chris.short</dc:creator>
      <dc:date>2024-10-24T00:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Removal of Targets from Policy</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/614120#M2566</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/185420"&gt;@GrantCampbell4&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Simplifying what &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/102192"&gt;@chris.short&lt;/a&gt; said:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;user@panorama&amp;gt; set cli config-output-format set
user@panorama&amp;gt; configure
user@panorama# show | match "target devices &amp;lt;serial&amp;gt;"&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Copy output to notepad.&amp;nbsp; Replace 'set' with 'delete' and paste into the CLI.&amp;nbsp; The docs say if you want to paste more than 20 lines at a time, use the 'set cli scripting-mode on' command in operational mode.&amp;nbsp; Then turn it off with 'set cli scripting-mode off'.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can omit the S/N in the show command to see all of the targets in the configuration.&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;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 01:32:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/removal-of-targets-from-policy/m-p/614120#M2566</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2024-10-24T01:32:33Z</dc:date>
    </item>
  </channel>
</rss>

