<?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 Delete IP Addresses from many policies in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/delete-ip-addresses-from-many-policies/m-p/1000221#M2726</link>
    <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We got one decom request, which contains IP removal, from all address groups and in rules. We have hundreds of rules one of this ip included. as of now we are doing manually, searching policy and removing that IP . Could you please any one help to remove one IP from bulk rules which are mapped to rules.&lt;/P&gt;</description>
    <pubDate>Tue, 07 Jan 2025 06:07:31 GMT</pubDate>
    <dc:creator>vkvinodin</dc:creator>
    <dc:date>2025-01-07T06:07:31Z</dc:date>
    <item>
      <title>Delete IP Addresses from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/delete-ip-addresses-from-many-policies/m-p/1000221#M2726</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We got one decom request, which contains IP removal, from all address groups and in rules. We have hundreds of rules one of this ip included. as of now we are doing manually, searching policy and removing that IP . Could you please any one help to remove one IP from bulk rules which are mapped to rules.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2025 06:07:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/delete-ip-addresses-from-many-policies/m-p/1000221#M2726</guid>
      <dc:creator>vkvinodin</dc:creator>
      <dc:date>2025-01-07T06:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Delete IP Addresses from many policies</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/delete-ip-addresses-from-many-policies/m-p/1000309#M2731</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/354431163"&gt;@vkvinodin&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The easiest way that I know is via CLI.&amp;nbsp; Run the following commands with the IP that you are looking for.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;you@yourfw&amp;gt; set cli config-output-format set
you@yourfw&amp;gt; configure
you@yourfw# show | match ip.ad.dr.ess&lt;/LI-CODE&gt;
&lt;P&gt;You will get a list of all of the commands in which your IP address is used.&amp;nbsp; Paste these into your text editor.&amp;nbsp; Change (1) all the ^set to delete and (2) any list inside a bracket to the single IP address, e.g. [ object1 ipaddress1 ... ] to [ ip.ad.dr.ess ].&amp;nbsp; Paste into the CLI configuration.&amp;nbsp; (^ = regex beginning of line in case the pattern exists elsewhere.)&amp;nbsp; (The regex \[.*ip.ad.dr.ess.*\] will match all the existing groups in which the IP exists for a fast search and replace for #2.)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;These commands will delete the IP address from everywhere it is used in the configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless you enable scripting mode, you can only paste 40 or so commands at a time.&amp;nbsp; I &lt;U&gt;definitely&lt;/U&gt; would test the different types of commands before using them all.&amp;nbsp; If something gets messed up, the command "revert config" will erase the candidate configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;IF the IP address is also an address object, follow the same process with the object name instead of the IP address.&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>Tue, 07 Jan 2025 21:57:52 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/delete-ip-addresses-from-many-policies/m-p/1000309#M2731</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2025-01-07T21:57:52Z</dc:date>
    </item>
  </channel>
</rss>

