<?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: What do you people's think of this script? in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562415#M113919</link>
    <description>&lt;P&gt;Yep, which is why I was playing with the restapi:&amp;nbsp; I saw some other scripts that modified the restapi output in depth, however getting it off the ground seemed a pain, especially with the token auth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any ideas of other good scripts, i wouldn't mind trying to write them to add to my resumé, seeing as I'm trying to move towards a job shift.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Oct 2023 13:10:45 GMT</pubDate>
    <dc:creator>hfakoor2</dc:creator>
    <dc:date>2023-10-19T13:10:45Z</dc:date>
    <item>
      <title>What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562247#M113879</link>
      <description>&lt;P&gt;I wrote a Python script that returns the differences in policies across firwealls. here's the github description:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Firewall policies contain object groups, hundreds of ip addresses and ACL's, services, address objects etc. This script compares a set of firewall policies with the same name, across many firewalls, and return differences in services, source/destination, address objects, ACL's etc, to a Python dictionary. We use a XML path api call to obtain the configuration files, so no need for token authentication. The script also returns object groups that exist in one firewall and not the other. So if your firewalls have similar named policies with dozens of rules, this script can save time in validating the policies by hand.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There's&amp;nbsp; video of the code running against 10.0.4 vm_eval editions.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/hfakoor222/Palo_Alto_Scripting/tree/master" target="_blank"&gt;https://github.com/hfakoor222/Palo_Alto_Scripting/tree/master&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;the code is under folder&amp;nbsp;&lt;A class="js-navigation-open Link--primary" title="compare_Object_ACL's" href="https://github.com/hfakoor222/Palo_Alto_Scripting/tree/master/compare_Object_ACL's" data-turbo-frame="repo-content-turbo-frame" target="_blank"&gt;compare_Object_ACL's&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let me know what you think, and where I can improve on.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also like or follow my github page for more scripts &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;</description>
      <pubDate>Wed, 18 Oct 2023 10:56:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562247#M113879</guid>
      <dc:creator>hfakoor2</dc:creator>
      <dc:date>2023-10-18T10:56:11Z</dc:date>
    </item>
    <item>
      <title>Re: What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562255#M113882</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/318102"&gt;@hfakoor2&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Well done!&amp;nbsp; You are now using the XML API!&amp;nbsp; That is a very nice script!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If someone were going to use your script in production, then I would store the username and password (or API keys) in local environment variables and not the script.&amp;nbsp; That is not required, but definitely a best practice especially if they use Git or another development platform where the code is shared.&amp;nbsp; Your scripts have the default usernames and passwords.&amp;nbsp; So, no sensitive information is exposed in your example.&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>Wed, 18 Oct 2023 12:11:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562255#M113882</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-10-18T12:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562256#M113883</link>
      <description>&lt;P&gt;Also,&amp;nbsp; don't forget to follow my github to support me and stay updated on scripts ^_^&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;please let me know where I can imporve on the current program. Currently it just returns differences for services/address/groups/ip addresses per similar named policies. I was thinking of maybe modifying it to have the user specify policy names as well,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Open to ideas&lt;/P&gt;</description>
      <pubDate>Wed, 18 Oct 2023 12:13:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562256#M113883</guid>
      <dc:creator>hfakoor2</dc:creator>
      <dc:date>2023-10-18T12:13:47Z</dc:date>
    </item>
    <item>
      <title>Re: What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562398#M113915</link>
      <description>&lt;P&gt;Oh hey, I just saw this,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks mucj I appreciate it!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I liked the XML API, it seems to bypass token requirements, even though it's a bit ugly. I can also use the same API link for different firewalls(I think the restapi could've used the same link as well with regards to Python, but I can't really remember)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 11:42:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562398#M113915</guid>
      <dc:creator>hfakoor2</dc:creator>
      <dc:date>2023-10-19T11:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562410#M113918</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/318102"&gt;@hfakoor2&lt;/a&gt; ,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That is good feedback! I have played a little with both.&amp;nbsp; The nicest thing is that in your script you can easily feed the results into ElementTree without having to screen scrape and format the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, the URL will be the same across all NGFWs.&amp;nbsp; One thing I do not like about both the XML and REST is that the URL is different for different options.&amp;nbsp; I would like the exact same URL and pass different options through the HTTP body.&amp;nbsp; That makes for a more scalable script.&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, 19 Oct 2023 13:00:58 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562410#M113918</guid>
      <dc:creator>TomYoung</dc:creator>
      <dc:date>2023-10-19T13:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: What do you people's think of this script?</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562415#M113919</link>
      <description>&lt;P&gt;Yep, which is why I was playing with the restapi:&amp;nbsp; I saw some other scripts that modified the restapi output in depth, however getting it off the ground seemed a pain, especially with the token auth.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you have any ideas of other good scripts, i wouldn't mind trying to write them to add to my resumé, seeing as I'm trying to move towards a job shift.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Oct 2023 13:10:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/what-do-you-people-s-think-of-this-script/m-p/562415#M113919</guid>
      <dc:creator>hfakoor2</dc:creator>
      <dc:date>2023-10-19T13:10:45Z</dc:date>
    </item>
  </channel>
</rss>

