Clear MKA Statistics

About this task

You have the option to clear MKA statistics for all ports, or clear MKA statistics for a specific port. Clearing MKA statistics can be useful for debugging purposes.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Clear all MKA statistics:

    macsec mka clear-stats

  3. Optional: Clear MKA statistics for a specific port:

    macsec mka clear-stats port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Example

Clear all MKA statistics:

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#macsec mka clear-stats

Clear MKA statistics for a specific port:

Switch:1>enable
Switch:1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Switch:1(config)#macsec mka clear-stats port 1/3

Variable Definitions

Use the data in the following table to use the macsec mka clear-stats command.

Variable Value
port {slot/port[/sub-port] [-slot/port[/sub-port]] [,...]}

Identifies the slot and port in one of the following formats: a single slot and port (slot/port), a range of slots and ports (slot/port-slot/port), or a series of slots and ports (slot/port,slot/port,slot/port). If the platform supports channelization and the port is channelized, you must also specify the sub-port in the format slot/port/sub-port.