Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
 

Related Documentation

 

clear services flows

Syntax

clear services flows <application-protocol protocol> <destination-port destination-port> <destination-prefix destination-prefix> <interface interface-name> <ip-action> <protocol protocol> <service-set service-set><source-port source-port> <source-prefix source-prefix>

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:

  • bootp—Bootstrap protocol
  • dce-rpc—Distributed Computing Environment-Remote Procedure Call protocols
  • dce-rpc-portmap—Distributed Computing Environment-Remote Procedure Call protocols portmap service
  • dns—Domain Name System protocol
  • exec—Exec
  • ftp—File Transfer Protocol
  • h323—H.323 standards
  • icmp—Internet Control Message Protocol
  • iiop—Internet Inter-ORB Protocol
  • login—Login
  • netbios—NetBIOS
  • netshow—NetShow
  • pptp—Point-to-Point Tunneling Protocol
  • realaudio—RealAudio
  • rpc—Remote Procedure Call protocol
  • rpc-portmap—Remote Procedure Call protocol portmap service
  • rtsp—Real-Time Streaming Protocol
  • shell—Shell
  • sip—Session Initiation Protocol
  • snmp—Simple Network Management Protocol
  • sqlnet—SQLNet
  • talk—Talk Program
  • tftp—Trivial File Transfer Protocol
  • traceroute—Traceroute
  • winframe—WinFrame
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:

  • number—Numeric protocol value from 0 to 255
  • ah—IPsec Authentication Header protocol
  • egp—An exterior gateway protocol
  • esp—IPsec Encapsulating Security Payload protocol
  • gre—A generic routing encapsulation protocol
  • icmp—Internet Control Message Protocol
  • icmp6—Internet Control Message Protocol version 6
  • igmp—Internet Group Management Protocol
  • ipip—IP-over-IP Encapsulation Protocol
  • ospf—Open Shortest Path First protocol
  • pim—Protocol Independent Multicast protocol
  • rsvp—Resource Reservation Protocol
  • sctp—Stream Control Transmission Protocol
  • tcp—Transmission Control Protocol
  • udp—User Datagram Protocol
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

 

Related Documentation

 

List of Sample Output

clear services flows
clear 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

Published: 2013-01-30

 

Related Documentation

 

Published: 2013-01-30