Perform this procedure to view the MACsec statistics.
enable
show macsec statistics [{sub-port]][,...][slot/all][all]}]
show macsec statistics [{sub-port]][,...][slot/all][all]}] secure-channel inbound
show macsec statistics [{{sub-port]][,...][slot/all][all]}] secure-channel outbound
Display general MACsec statistics, inbound MACsec statistics, and outbound MACsec statistics:
The switch supports MACsec on specific ports. For more information, see your hardware documentation.
Note
Display inconsistencies might occur for MACsec statistics when different ports interoperate with one another.
Switch:1>enable Switch:1#show macsec statistics 1/40 ===================================================================== MACSEC Port Statistics ===================================================================== TxUntagged TxTooLong RxUntagged RxNoTag PortId Packets Packets Packets Packets --------------------------------------------------------------------- 1/40 0 0 0 0 RxBadTag RxUnknown RxNoSCI RxOverrun PortId Packets SCIPackets Packets Packets --------------------------------------------------------------------- 1/40 0 0 0 0
Switch:1#show macsec statistics 1/40 secure-channel inbound =========================================================================== MACSEC Port Inbound Secure Channel Statistics =========================================================================== UnusedSA NoUsingSA Late NotValid Invalid PortId Packets Packets Packets Packets Packets --------------------------------------------------------------------------- 1/40 0 0 0 100037 0 Delayed Unchecked Ok Octets Octets PortId Packets Packets Pkts Validated Decrypted --------------------------------------------------------------------------- 1/40 0 0 0 53528828 0
Switch:1#show macsec statistics 1/40 secure-channel outbound =========================================================================== MACSEC Port Outbound Secure Channel Statistics =========================================================================== Protected Encrypted Octets Octets PortId Packets Packets Protected Encrypted --------------------------------------------------------------------------- 1/40 0 99946 0 53434154