Displaying and clearing statistics for IKEv2 and IPsec

Various commands can be used to display and clear statistical information for IKEv2 and IPsec.

  • Enter the show ikev2 statistics command to display IKEv2 statistics.
    
    device# show ikev2 statistics
    
    Total IKEv2 SA Count active: 0
    Incoming IKEv2 Requests: Accepted: 0 Rejected: 0
    Outgoing IKEv2 Requests: 0
        Accepted: 0 Rejected: 0 Rejected due to no cookie: 0
    IKEv2  Packet Statistics:
        Total Packets Received     : 0
        Total Packets Transmitted  : 2
        Total Packets Retransmitted: 0
        Total Failed Transmission  : 0
        Total Pending Packets      : 0
        Total Buffer Failed        : 0
        Total Keepalive Received   : 0
        Total Keepalive Transmitted: 0
    IKEv2 Error Statistics:
        Unsupported Payload   : 0        Invalid IKE SPI  : 0
        Invalid Version       : 0        Invalid Syntax   : 0
        Negotiation Timeout   : 0        No Policy        : 0
        No Protection Suite   : 0        Policy Error     : 0
        IKE Packet Error      : 1        Discard Policy   : 0
        Proposal Mismatch     : 0        Invalid Selectors: 0
        Internal Error        : 0        SA Overflow      : 0
        IKE SA Overflow       : 0        IPSEC SA Overflow: 0
        Authentication Failed : 0        Others           : 0
        Number of HW-SPI Add write : 0        Number of HW-SPI Delete 
    write: 0
    
    
  • Enter the clear ikev2 statistics command to reset or clear IKEv2 statistics.
    
    device# clear ikev2 statistics
    
    
  • Enter the show statistics tunnel command to display tunnel statistics.
    
    device# show statistics tunnel 
    
    IP GRE Tunnels
          Tunnel Status  Packet Received  Packet Sent  KA recv  KA sent
    
    IPSEC Tunnels
          Tunnel Status  Packet Received  Packet Sent  Bytes Received  Bytes Sent
      9   down/down      0                0            0               0
      10  up/up          50               16442474     7300            9372173444
    
    
  • Enter the clear statistics tunnel command to reset or clear tunnel statistics. The following example shows how to clear statistics for tunnel 10.
    
    device# clear statistics tunnel 10