- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
11-17-2016 06:23 AM
I need to kill a session automatically for one appplication when this application appears on one egress interface.
We have PBF rule for forcing some application to one ISP and virtual router for other ISP.
once the PBF ISP is down, it goes to second ISP via virtual router.
For some application it stays in that ISP for a long time untill we manually kill it.
Is there any way to kill the these sessions everyday . Now we manually clear every day morning
11-30-2016 04:21 AM
12-21-2016 01:43 AM
The API job should be like this
1) identify the application or ort traffic
2 See if it comes on one egress interface
3) If come son this interface kill or clear the session.
Any idea
03-23-2017 12:36 AM
Lets make more simple what should be the manual api command to clear an application traffic which goes out through one specific interface. Then as next step i can think about automating this.
03-23-2017 05:55 AM
You'd do an XML API call for <show><session><all><filter></filter></all></session></show> for both application and egress-interface then pass the ID's into <clear><session><id></id></session></clear> in a for loop.
It'd be easy enough to automate it by querying once every n seconds and checking if the value of the first call returns any jobs.
04-03-2017 05:56 AM
How can i pass the session id automatically to this script of killing
04-04-2017 05:57 PM
Poll for matching sessions with your filter and pass it into a for loop through your favorite scripting language which clears each session.
04-18-2017 10:35 PM
May be a basic question , However i have never tred API in loop level is it possible to run this type of script in some interval like 4 hours etc. in Palo Alto, where we need to schedule this, any sample loop configuration which runs in every interval
Click Accept as Solution to acknowledge that the answer to your question has been provided.
The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!
These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!
The LIVEcommunity thanks you for your participation!