clear services sessions
Syntax
clear services sessions <application-protocol protocol> <destination-port destination-port> <destination-prefix destination-prefix> <interface interface-name> <ip-action> <nat number> <nat-port-overload-index number> <protocol protocol> <service-set service-set> <source-nat-pool source-nat-pool-name> <source-port source-port> <source-prefix source-prefix>
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:
|
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 |
ip-action |
(Optional) Clear |
nat |
Clear sessions with network address translation. |
nat-port-overload-index | Clear NAT port overload index. |
protocol protocol |
(Optional) Clear sessions for one of the following IP types:
|
service-set service-set |
(Optional) Clear sessions for the specified service set. |
source-nat-pool | Clear the source NAT pool name. |
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.
Field Name |
Field Description |
---|---|
|
Name of an interface. |
|
Name of the service set from which sessions are being cleared. |
|
Number of sessions that are marked for deletion and are subsequently cleared. |
Sample Output
clear services sessions
user@host>clear services sessions Interface Service set Sessions marked for deletion ms-0/0/0 sset 10
Release Information
Command introduced in Junos OS Release 13.1.
The nat
, nat-port-overload-index
, and
source-nat-pool
are introduced in Junos OS Release 23.4R1.