<?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: API for clearing session in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134021#M47293</link>
    <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case both egress interfaces are part of one main interface.&lt;/P&gt;&lt;P&gt;for ex: PBF egress interface ether 1/5.1&lt;/P&gt;&lt;P&gt;Routing table egress interface ethernet 1/5.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So only API with egress interface commnad is required&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Dec 2016 16:24:36 GMT</pubDate>
    <dc:creator>Roby_Sreejith</dc:creator>
    <dc:date>2016-12-21T16:24:36Z</dc:date>
    <item>
      <title>API for clearing session</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/133941#M47273</link>
      <description>&lt;P&gt;Can some one share some light on creating some API to do below steps:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) identify an application or port ( for ex: 5555 or backup app) when this traffic apprears on one egress interface , need to clear the sesion for this specified traffic.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;( situation: we use PBF for soem traffic to choose one path and when that line down , this traffic takes normal routing path. Even after our PBF line comes up, this will continue taking routing path untill we manually clear it)&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 10:07:35 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/133941#M47273</guid>
      <dc:creator>Roby_Sreejith</dc:creator>
      <dc:date>2016-12-21T10:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: API for clearing session</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134002#M47288</link>
      <description>&lt;P&gt;When your clearing session info you can't filter specifically by egress interface like you would with the show command, you are going to need to filter by hw-interface.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request would look something like&amp;nbsp;&lt;/P&gt;&lt;P&gt;https://&lt;EM&gt;firewall&lt;/EM&gt;/api/?type=op&amp;amp;cmd=&amp;lt;clear&amp;gt;&amp;lt;session&amp;gt;&amp;lt;all&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;hw-interface&amp;gt;ethernet1/2&amp;lt;/hw-interface&amp;gt;&amp;lt;destination-port&amp;gt;5555&amp;lt;/destination-port&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/session&amp;gt;&amp;lt;/clear&amp;gt;&amp;amp;key=&lt;EM&gt;key&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Likewise if you would be looking to clear it with the applicaiton specified you would just want to replace the destination-port information with application.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;https://&lt;/SPAN&gt;&lt;EM&gt;firewall&lt;/EM&gt;&lt;SPAN&gt;/api/?type=op&amp;amp;cmd=&amp;lt;clear&amp;gt;&amp;lt;session&amp;gt;&amp;lt;all&amp;gt;&amp;lt;filter&amp;gt;&amp;lt;hw-interface&amp;gt;ethernet1/2&amp;lt;/hw-interface&amp;gt;&amp;lt;application&amp;gt;backup&amp;lt;/application&amp;gt;&amp;lt;/filter&amp;gt;&amp;lt;/all&amp;gt;&amp;lt;/session&amp;gt;&amp;lt;/clear&amp;gt;&amp;amp;key=&lt;/SPAN&gt;&lt;EM&gt;key&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 15:04:17 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134002#M47288</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2016-12-21T15:04:17Z</dc:date>
    </item>
    <item>
      <title>Re: API for clearing session</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134021#M47293</link>
      <description>&lt;P&gt;Thank you for the reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my case both egress interfaces are part of one main interface.&lt;/P&gt;&lt;P&gt;for ex: PBF egress interface ether 1/5.1&lt;/P&gt;&lt;P&gt;Routing table egress interface ethernet 1/5.2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So only API with egress interface commnad is required&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:24:36 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134021#M47293</guid>
      <dc:creator>Roby_Sreejith</dc:creator>
      <dc:date>2016-12-21T16:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: API for clearing session</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134025#M47294</link>
      <description>&lt;P&gt;Why don't you just clear based by the pbf rule? You can filter by the pbf-rule name and clear all sessions related to that pbf-rule. I can't recall what the actual xpath would be for it, but if you&amp;nbsp;&lt;EM&gt;debug cli on&lt;/EM&gt; and then run the command it will spit out the xpath that you need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also I'm pretty sure the hw-interface can be sub-interfaces perfectly fine; when you are clearing session info the only filters that you have access to are listed below. Notice that egress and ingress options are not available when clearing, only when you are running the show command do you gain those options again.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;+ application Application name&lt;BR /&gt;+ destination destination IP address&lt;BR /&gt;+ destination-port Destination port&lt;BR /&gt;+ destination-user Destination user&lt;BR /&gt;+ dos-rule DoS protection rule name&lt;BR /&gt;+ from From zone&lt;BR /&gt;+ hw-interface hardware interface&lt;BR /&gt;+ min-kb minimum KB of byte count&lt;BR /&gt;+ nat If session is NAT&lt;BR /&gt;+ nat-rule NAT rule name&lt;BR /&gt;+ pbf-rule Policy-Based-Forwarding rule name&lt;BR /&gt;+ protocol IP protocol value&lt;BR /&gt;+ qos-class QoS class&lt;BR /&gt;+ qos-node-id QoS node-id value&lt;BR /&gt;+ qos-rule QoS rule name&lt;BR /&gt;+ rule Security rule name&lt;BR /&gt;+ source source IP address&lt;BR /&gt;+ source-port Source port&lt;BR /&gt;+ source-user Source user&lt;BR /&gt;+ ssl-decrypt session is decrypted&lt;BR /&gt;+ state flow state&lt;BR /&gt;+ to To zone&lt;BR /&gt;+ type flow type&lt;BR /&gt;+ vsys-name vsys-name&lt;BR /&gt;&amp;lt;Enter&amp;gt; Finish input&lt;/P&gt;</description>
      <pubDate>Wed, 21 Dec 2016 16:55:43 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134025#M47294</guid>
      <dc:creator>BPry</dc:creator>
      <dc:date>2016-12-21T16:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: API for clearing session</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134981#M47430</link>
      <description>&lt;P&gt;Unfortunately the preferred path one PBF rule.&lt;/P&gt;&lt;P&gt;However when that ISP is down it will choose the default route in Virtual router.&lt;/P&gt;&lt;P&gt;So I can not clear by PBF rule&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2016 12:46:03 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-for-clearing-session/m-p/134981#M47430</guid>
      <dc:creator>Roby_Sreejith</dc:creator>
      <dc:date>2016-12-29T12:46:03Z</dc:date>
    </item>
  </channel>
</rss>

