2-346
Catalyst 2950 and Catalyst 2955 Switch Command Reference
0L-10102-01
Chapter 2 Catalyst 2950 and 2955 Cisco IOS Commands
show interfaces counters
show interfaces counters
Use the show interfaces counters privileged EXEC command to display various counters for a specific
interface or for all interfaces.
show interfaces [interface-id | vlan vlan-id] counters [errors | etherchannel | trunk] [ | {begin |
exclude | include} expression]
Syntax Description
Command Modes Privileged EXEC
Command History
Usage Guidelines If you do not enter any keywords, all counters for all interfaces are included.
Expressions are case sensitive. For example, if you enter | exclude output, the lines that contain output
do not appear, but the lines that contain Output appear.
Examples This is an example of output from the show interfaces counters command. It displays all the counters
for the switch. Table 2-24 describes the fields in the output.
Switch# show interfaces counters
Port InOctets InUcastPkts InMcastPkts InBcastPkts
Gi0/1 23324617 10376 185709 126020
Gi0/2 0 0 0 0
Port OutOctets OutUcastPkts OutMcastPkts OutBcastPkts
Gi0/1 4990607 28079 21122 10
Gi0/2 1621568 25337 0 0
interface-id (Optional) ID of the physical interface, including type and slot and port
number.
vlan vlan-id (Optional) VLAN number of the management VLAN. The range is 1 to 4094.
errors (Optional) Display error counters.
etherchannel (Optional) Display etherchannel counters, including octets, broadcast
packets, multicast packets, and unicast packets received and sent.
trunk (Optional) Display trunk counters.
| begin (Optional) Display begins with the line that matches the expression.
| exclude (Optional) Display excludes lines that match the expression.
| include (Optional) Display includes lines that match the specified expression.
expression Expression in the output to use as a reference point.
Release Modification
12.1(6)EA2 This command was introduced.
12.2(22)EA2 The broadcast, multicast, and unicast keywords were removed.