Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear services flows

Syntax

Description

Clear flow session table entries.

Options

none

Clear all flows.

application-protocol 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 the specified destination port. The range of values is from 0 to 65535.

destination-prefix destination-prefix

(Optional) Clear flows for the specified destination prefix.

interface interface-name

(Optional) Clear flows for the specified 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.

protocol 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 the specified service set.

source-port source-port

(Optional) Clear flows for the specified source port. The range of values is from 0 through 65535.

source-prefix source-prefix

(Optional) Clear flows for the specified source prefix.

Required Privilege Level

clear

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

clear services flows ip-action

Release Information

Command introduced in Junos OS Release 9.5.

application-protocol option introduced in Junos OS Release 11.1.