Examples
# Clear all SAs.
<Sysname> reset ipsec sa
# Clear all SAs of IPsec policy template policy1.
<Sysname> reset ipsec sa policy policy1
# Clear the SA of the IPsec policy with the name of policy1 and sequence number of 10.
<Sysname> reset ipsec sa policy policy1 10
# Clear all SAs of IPsec profile policy1.
<Sysname> reset ipsec sa policy policy1
reset ipsec statistics
Syntax
reset ipsec statistics
View
User view
Default level
2: System level
Parameters
None
Description
Use the reset ipsec statistics command to clear IPsec message statistics, and set all the statistics to zero.
Related commands: display ipsec statistics.
Examples
# Clear IPsec message statistics.
<Sysname> reset ipsec statistics
sa authentication-hex
Syntax
sa authentication-hex { inbound | outbound } { ah | esp } hex-key
undo sa authentication-hex { inbound | outbound } { ah | esp }
View
IPsec policy view
Default level
2: System level
Parameters
inbound: Specifies the inbound SA through which IPsec processes the received packets.
outbound: Specifies the outbound SA through which IPsec processes the packets to be sent.
258