<?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 Python Script in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/python-script/m-p/262204#M74306</link>
    <description>&lt;P&gt;From Pan-OS 8.0 - 8.1.6, there is a bug when using FQDN's in rule sets.&amp;nbsp; Until we're ready to upgrade, I need to run a script to force a FQDN refresh, cli is "request system fqdn refresh force yes".&amp;nbsp; I'm really new to Python, but have created my API Keys.&amp;nbsp; Anyone have some guidance to pass along on how I can build this script?&lt;/P&gt;</description>
    <pubDate>Fri, 24 May 2019 16:38:30 GMT</pubDate>
    <dc:creator>Brad.Herbert</dc:creator>
    <dc:date>2019-05-24T16:38:30Z</dc:date>
    <item>
      <title>Python Script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/python-script/m-p/262204#M74306</link>
      <description>&lt;P&gt;From Pan-OS 8.0 - 8.1.6, there is a bug when using FQDN's in rule sets.&amp;nbsp; Until we're ready to upgrade, I need to run a script to force a FQDN refresh, cli is "request system fqdn refresh force yes".&amp;nbsp; I'm really new to Python, but have created my API Keys.&amp;nbsp; Anyone have some guidance to pass along on how I can build this script?&lt;/P&gt;</description>
      <pubDate>Fri, 24 May 2019 16:38:30 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/python-script/m-p/262204#M74306</guid>
      <dc:creator>Brad.Herbert</dc:creator>
      <dc:date>2019-05-24T16:38:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python Script</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/python-script/m-p/262222#M74310</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/80673"&gt;@Brad.Herbert&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;You could do this easiest with a simple requests script through the XML API. Something like the below would work&lt;/P&gt;&lt;PRE&gt;import requests
key = 'ReplaceWithAPIKey'
firewall = 'ReplaceWithFirewall'
#########
request_refresh = requests.get('https://' + str(firewall) + '/api/?type=op&amp;amp;cmd=&amp;lt;request&amp;gt;&amp;lt;system&amp;gt;&amp;lt;fqdn&amp;gt;&amp;lt;refresh&amp;gt;&amp;lt;/refresh&amp;gt;&amp;lt;/fqdn&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/request&amp;gt;&amp;amp;key=' + str(key), verify=False)&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 May 2019 17:49:33 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/python-script/m-p/262222#M74310</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2019-05-24T17:49:33Z</dc:date>
    </item>
  </channel>
</rss>

