<?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 How to write a script in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/98827#M44158</link>
    <description>&lt;P&gt;Hello Support,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone show me how to compile a script that will delete a number of configurations. For example, I would like to delete the following configurations shown in the image. However, it will take a long time to issue the command delete ... &amp;nbsp;for all the lines shown. Alternatively, is there one delete command that will delete all configurations? (I don't want to do a factory reset).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlton&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deletepa.png" style="width: 523px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/4905i1969966519509B43/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="deletepa.png" alt="deletepa.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 14:54:37 GMT</pubDate>
    <dc:creator>cpatte7372</dc:creator>
    <dc:date>2016-07-20T14:54:37Z</dc:date>
    <item>
      <title>How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/98827#M44158</link>
      <description>&lt;P&gt;Hello Support,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone show me how to compile a script that will delete a number of configurations. For example, I would like to delete the following configurations shown in the image. However, it will take a long time to issue the command delete ... &amp;nbsp;for all the lines shown. Alternatively, is there one delete command that will delete all configurations? (I don't want to do a factory reset).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Carlton&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="deletepa.png" style="width: 523px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/4905i1969966519509B43/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="deletepa.png" alt="deletepa.png" /&gt;&lt;/span&gt;﻿&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 14:54:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/98827#M44158</guid>
      <dc:creator>cpatte7372</dc:creator>
      <dc:date>2016-07-20T14:54:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99428#M44183</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any thoughts on this question?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 11:23:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99428#M44183</guid>
      <dc:creator>cpatte7372</dc:creator>
      <dc:date>2016-07-22T11:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99443#M44187</link>
      <description>&lt;P&gt;I'm a little lost on what you are looking to do I guess. It sounds like you would like to delete all of the actual configuration changes on your device, much akin to what a factory reset would do; however you don't want to do an actual factory reset because of something correct?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unless my view of scripting for the Palo Alto is way out of line, which it very well could actually be, I don't think there is a way to do this effectively without typing out everything once anyways. Your screenshot displays everything you could actually delete with the delete command, so unless you forgot to include another screenshot then it doesn't give anybody much insight to what you actually want to do besides the fact that you want to delete all of the configuration off of the device, but don't want to actually reset the device. If you give us the reason why you don't want to reset the device we may be able to help a little more.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 14:05:16 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99443#M44187</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2016-07-22T14:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99668#M44203</link>
      <description>&lt;P&gt;Hi BPry,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for responding. You have pretty much got it - I want wipe the entire configs on the PA VM but I don't want to do a factory reset because it would mean me wiping the license on the VM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way of achieving this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jul 2016 10:42:13 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/99668#M44203</guid>
      <dc:creator>cpatte7372</dc:creator>
      <dc:date>2016-07-24T10:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100012#M44235</link>
      <description>&lt;P&gt;maybe this is too simple. but you could download the config. used a text editor to remove everything you didn't want and then re-upload the config. once you apply it you will get errors if you missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jul 2016 22:12:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100012#M44235</guid>
      <dc:creator>ChrisThornton</dc:creator>
      <dc:date>2016-07-25T22:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100459#M44257</link>
      <description>&lt;P&gt;Chris,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thats a thought.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me check it out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:14:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100459#M44257</guid>
      <dc:creator>cpatte7372</dc:creator>
      <dc:date>2016-07-26T16:14:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100461#M44259</link>
      <description>&lt;P&gt;Chris,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is a snapshot of some of the downloaded configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&lt;BR /&gt;&amp;lt;config version="7.0.0" urldb="paloaltonetworks"&amp;gt;&lt;BR /&gt;&amp;lt;mgt-config&amp;gt;&lt;BR /&gt;&amp;lt;users&amp;gt;&lt;BR /&gt;&amp;lt;entry name="admin"&amp;gt;&lt;BR /&gt;&amp;lt;phash&amp;gt;fnRL/G5lXVMug&amp;lt;/phash&amp;gt;&lt;BR /&gt;&amp;lt;permissions&amp;gt;&lt;BR /&gt;&amp;lt;role-based&amp;gt;&lt;BR /&gt;&amp;lt;superuser&amp;gt;yes&amp;lt;/superuser&amp;gt;&lt;BR /&gt;&amp;lt;/role-based&amp;gt;&lt;BR /&gt;&amp;lt;/permissions&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;entry name="ip-admin"&amp;gt;&lt;BR /&gt;&amp;lt;permissions&amp;gt;&lt;BR /&gt;&amp;lt;role-based&amp;gt;&lt;BR /&gt;&amp;lt;custom&amp;gt;&lt;BR /&gt;&amp;lt;profile&amp;gt;Policy Admins&amp;lt;/profile&amp;gt;&lt;BR /&gt;&amp;lt;/custom&amp;gt;&lt;BR /&gt;&amp;lt;/role-based&amp;gt;&lt;BR /&gt;&amp;lt;/permissions&amp;gt;&lt;BR /&gt;&amp;lt;phash&amp;gt;$1$omitmqqh$cilyvM4o4JVbsIOHKbHkQ.&amp;lt;/phash&amp;gt;&lt;BR /&gt;&amp;lt;/entry&amp;gt;&lt;BR /&gt;&amp;lt;/users&amp;gt;&lt;BR /&gt;&amp;lt;/mgt-config&amp;gt;&lt;BR /&gt;&amp;lt;shared&amp;gt;&lt;BR /&gt;&amp;lt;application/&amp;gt;&lt;BR /&gt;&amp;lt;application-group/&amp;gt;&lt;BR /&gt;&amp;lt;service/&amp;gt;&lt;BR /&gt;&amp;lt;service-group/&amp;gt;&lt;BR /&gt;&amp;lt;botnet&amp;gt;&lt;BR /&gt;&amp;lt;configuration&amp;gt;&lt;BR /&gt;&amp;lt;http&amp;gt;&lt;BR /&gt;&amp;lt;dynamic-dns&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;threshold&amp;gt;5&amp;lt;/threshold&amp;gt;&lt;BR /&gt;&amp;lt;/dynamic-dns&amp;gt;&lt;BR /&gt;&amp;lt;malware-sites&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;threshold&amp;gt;5&amp;lt;/threshold&amp;gt;&lt;BR /&gt;&amp;lt;/malware-sites&amp;gt;&lt;BR /&gt;&amp;lt;recent-domains&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;threshold&amp;gt;5&amp;lt;/threshold&amp;gt;&lt;BR /&gt;&amp;lt;/recent-domains&amp;gt;&lt;BR /&gt;&amp;lt;ip-domains&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;threshold&amp;gt;10&amp;lt;/threshold&amp;gt;&lt;BR /&gt;&amp;lt;/ip-domains&amp;gt;&lt;BR /&gt;&amp;lt;executables-from-unknown-sites&amp;gt;&lt;BR /&gt;&amp;lt;enabled&amp;gt;yes&amp;lt;/enabled&amp;gt;&lt;BR /&gt;&amp;lt;threshold&amp;gt;5&amp;lt;/threshold&amp;gt;&lt;BR /&gt;&amp;lt;/executables-from-unknown-sites&amp;gt;&lt;BR /&gt;&amp;lt;/http&amp;gt;&lt;BR /&gt;&amp;lt;other-applications&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you show me how I would edit the file to remove all the configs?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 16:21:12 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100461#M44259</guid>
      <dc:creator>cpatte7372</dc:creator>
      <dc:date>2016-07-26T16:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to write a script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100496#M44262</link>
      <description>&lt;P&gt;You would need to right click on it and open it into something like notepad or wordpad on a windows machine, or really any basic text editor such as sublime. Once their you can delete out anything that you don't want (for example anything between &amp;lt;security&amp;gt; and &amp;lt;/security&amp;gt; would delete out your security policies)&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jul 2016 18:07:22 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/how-to-write-a-script/m-p/100496#M44262</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2016-07-26T18:07:22Z</dc:date>
    </item>
  </channel>
</rss>

