<?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: fw.refresh_ha_active() functionality in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313956#M2201</link>
    <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&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;Thanks for your help . It's working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
    <pubDate>Mon, 02 Mar 2020 18:01:38 GMT</pubDate>
    <dc:creator>deepak12</dc:creator>
    <dc:date>2020-03-02T18:01:38Z</dc:date>
    <item>
      <title>fw.refresh_ha_active() functionality</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/312611#M2186</link>
      <description>&lt;P&gt;Hi&amp;nbsp;@&lt;A href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544" target="_blank"&gt;gfreeman&amp;nbsp; and all&amp;nbsp;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use refresh_ha_active() functionality so that script always run on active device.&amp;nbsp; As per my understanding once i set the peer it will check internally and run it on active box or my understanding is wrong here ? I am trying to run test route cmd to pull interface details and then later run test security cmd and in order that we need to always connect to active box to pull details . I am trying below . Could you please suggest on below&amp;nbsp; :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp; If i am giving device1 IP active device member and device2 IP standby IP , this works fine . However if i am giving device1 IP as standby and device2 IP as active , then its failing as from standby its not pulling interface details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;deviceip1 = input('Enter device FQDN/IP: ')&lt;BR /&gt;deviceip2 = input('Enter device2 FQDN/IP: ')&lt;BR /&gt;user = input('Enter username: ')&lt;/P&gt;&lt;P&gt;fw = Firewall(deviceip1, user, getpass())&lt;BR /&gt;fw.set_ha_peers(Firewall(deviceip2,user,getpass()))&lt;/P&gt;&lt;P&gt;fw.refresh_ha_active()&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;srcip = input ('Enter SOURCE IP: ')&lt;BR /&gt;dstip = input ('Enter DEST IP: ')&lt;BR /&gt;dstport = input ('Enter dstport: ')&lt;BR /&gt;proto = input('Enter protocol number: ')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;z1 = fw.xapi.op(cmd='&amp;lt;test&amp;gt;&amp;lt;routing&amp;gt;&amp;lt;fib-lookup&amp;gt;&amp;lt;virtual-router&amp;gt;default&amp;lt;/virtual-router&amp;gt;&amp;lt;ip&amp;gt;{}&amp;lt;/ip&amp;gt;&amp;lt;/fib-lookup&amp;gt;&amp;lt;/routing&amp;gt;&amp;lt;/test&amp;gt;'.format(srcip) , cmd_xml=False)&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;lt; truncated output&amp;nbsp; &amp;gt;&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Feb 2020 17:40:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/312611#M2186</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-02-24T17:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: fw.refresh_ha_active() functionality</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313356#M2193</link>
      <description>&lt;P&gt;So when you do &lt;CODE&gt;fw.xapi.(whatever)&lt;/CODE&gt; you are bypassing all the stuff pandevice can do for you.&amp;nbsp; Since you are wanting pandevice to intervene, you should stick with &lt;CODE&gt;fw.op()&lt;/CODE&gt; instead of doing &lt;CODE&gt;fw.xapi.op()&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, &lt;CODE&gt;fw.op()&lt;/CODE&gt; has a param &lt;CODE&gt;retry_on_peer&lt;/CODE&gt; that defaults to False.&amp;nbsp; I'm not sure, but try setting that to True and see if it works?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 18:30:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313356#M2193</guid>
      <dc:creator>gfreeman</dc:creator>
      <dc:date>2020-02-27T18:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: fw.refresh_ha_active() functionality</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313379#M2194</link>
      <description>&lt;P&gt;Agree with &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt; .&amp;nbsp; Also, I responded with details on your GitHub issue over here:&amp;nbsp; &lt;A href="https://github.com/PaloAltoNetworks/pandevice/issues/210" target="_blank"&gt;https://github.com/PaloAltoNetworks/pandevice/issues/210&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 20:32:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313379#M2194</guid>
      <dc:creator>btorresgil</dc:creator>
      <dc:date>2020-02-27T20:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: fw.refresh_ha_active() functionality</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313520#M2199</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will test it and update you .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 14:18:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313520#M2199</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-02-28T14:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: fw.refresh_ha_active() functionality</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313956#M2201</link>
      <description>&lt;P&gt;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/15566"&gt;@btorresgil&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/46544"&gt;@gfreeman&lt;/a&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;Thanks for your help . It's working now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 18:01:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/fw-refresh-ha-active-functionality/m-p/313956#M2201</guid>
      <dc:creator>deepak12</dc:creator>
      <dc:date>2020-03-02T18:01:38Z</dc:date>
    </item>
  </channel>
</rss>

