387
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 MPLS L3VPN. The
vpn-instance-name
argument is a case-sensitive string of 1 to 31 characters.
Usage guidelines
If no slot number is specified, the command clears the sessions on all cards.
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
Use
reset session statistics
to clear session statistics.
Syntax
In standalone mode:
reset session statistics
[
slot
slot-number
]
In IRF mode:
reset session statistics
[
chassis
chassis-number
slot
slot-number
]
Views
User view
Default command level
2: System level
Parameters
slot
slot-number
: Specifies a card by its slot number. The
slot-number
argument specifies the slot
where the card resides. (In standalone mode)
chassis
chassis-number
slot
slot-number
: Specifies a card on a member device. The
chassis-number
argument specifies the ID of the IRF member device. The
slot-number
argument
specifies the number of the slot that holds the card. (In IRF mode)
Usage guidelines
If no slot number is specified, the command clears the session statistics on all cards.
Examples
# Clear all session statistics.