Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear services sessions

Syntax

Description

Clear services sessions currently active on the embedded PIC or MIC. When you enter this command, the sessions are marked for deletion and are cleared thereafter. The time that is taken to clear the currently active sessions varies, depending on the scaled nature of the environment.

Options

none

Clear all sessions.

application-protocol protocol

(Optional) Clear sessions 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

  • ip—IP

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

destination-prefix destination-prefix

(Optional) Clear sessions for the specified destination prefix.

interface interface-name

(Optional) Clear sessions for the specified interface. On M Series and T Series routers, the interface-name can be ms-fpc/ pic/ port or rspnumber.

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 protocol

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

source-port source-port

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

source-prefix source-prefix

(Optional) Clear sessions for the specified source prefix.

Required Privilege Level

clear

Output Fields

Table 1 lists the output fields for the clear services sessions command. Output fields are listed in the approximate order in which they appear.

Table 1: clear services sessions Output Fields

Field Name

Field Description

Interface

Name of an interface.

Service set

Name of the service set from which sessions are being cleared.

Sessions marked for deletion

Number of sessions that are marked for deletion and are subsequently cleared.

Sample Output

clear services sessions

Release Information

Command introduced in Junos OS Release 13.1.