clear services flows
Syntax
Release Information
Command introduced in Junos OS Release 9.5.
ip-action option introduced in Junos OS Release 10.0.
application-protocol option introduced in Junos OS Release 11.1.
Description
Clear flow session table entries.
Options
none | — | Clear all flows. |
application-protocol | — | (Optional) Clear flows for one of the following application protocols:
|
destination-port destination-port | — | (Optional) Clear flows for a particular destination port. The range of values is from 0 to 65535. |
destination-prefix destination-prefix | — | (Optional) Clear flows for a particular destination prefix. |
interface interface-name | — | (Optional) Clear flows for a particular interface. On M Series and T Series routers, the interface-name can be ms-fpc/pic/port or rspnumber. On J Series routers, the interface-name is ms-pim/0/port. |
ip-action | — | (Optional) Clear ip-action entries generated by the router to log, drop, or block traffic based on previous matches. The IP action options and targets are configured at the [edit security idp idp-policy policy-name rulebase-ips rule rule-name then] hierarchy level. |
protocol | — | (Optional) Clear flows for one of the following IP types:
|
service-set service-set | — | (Optional) Clear flows for a particular service set. |
source-port source-port | — | (Optional) Clear flows for a particular source port. The range of values is from 0 through 65535. |
source-prefix source-prefix | — | (Optional) Clear flows for a particular source prefix. |
Required Privilege Level
clear
List of Sample Output
clear services flowsclear services flows ip-action
Output Fields
Table 1 lists the output fields for the clear services flows command. Output fields are listed in the approximate order in which they appear.
Table 1: clear services flows Output Fields
Field Name | Field Description |
---|---|
Interface | Name of an interface. |
Service set | Name of the service set from which flows are being cleared. |
Flows removed | Number of flows removed. |
Sample Output
clear services flows
user@host> clear services flows
Interface Service set Flows removed ms-2/0/0 IDP 1
clear services flows ip-action
user@host> clear services flows ip-action
Interface Service set Flows removed ms-4/0/0 idp-service 1