23
reset session
Syntax
reset session
[
vd-name
vd-name
] [
source-ip
source-ip
] [
destination-ip
destination-ip
] [
protocol-type
{
icmp
|
raw-ip
|
tcp
|
udp
} ] [
source-port
source-port
] [
destination-port
destination-port
]
[
vpn-instance
vpn-instance-name
]
View
User view
Default level
2: System level
Parameters
vd-name
vd-name
: Clears the sessions on the specified virtual device. The
vd-name
argument specifies
the name of a virtual device. It is a case-insensitive string of 1 to 20 characters, which can be only
numerals, letters and underlines.
source-ip
source-ip
: Clears the sessions with the specified source IP address of the initiator.
destination-ip
destination-ip
: Clears the sessions with the specified destination IP address of the initiator.
protocol-type
{
icmp
|
raw-ip
|
tcp
|
udp
}: Clears the sessions of the specified protocol type. The
protocol types include ICMP, Raw IP, TCP, and UDP.
source-port
source-port
: Clears the sessions with the specified source port of the initiator.
destination-port
destination-port
: Clears the sessions with the specified destination port of the initiator.
vpn-instance
vpn-instance-name
: Clears the sessions of the specified VPN. The
vpn-instance-name
argument is a case-sensitive string of 1 to 31 characters.
Description
Use the
reset session
command to clear sessions.
•
If no virtual device is specified, the command clears the sessions on all virtual devices.
•
If no VPN instance is specified, the command clears the sessions on the public network.
•
If no parameter is specified, the command clears all sessions.
Examples
# Clear all sessions.
<Sysname> reset session
# Clear all sessions with the source IP address as 10.10.10.10 of the initiator.
<Sysname> reset session source-ip 10.10.10.10
reset session statistics
Syntax
reset session statistics
[
vd-name
vd-name
]
View
User view