
3
The default description of an interface is the interface name plus
Interface
. For example,
GigabitEthernet1/0/1 Interface
.
Related commands:
display interface
.
Examples
# Change the description of interface GigabitEthernet 1/0/1 to
lanswitch-interface
.
<Sysname> system-view
[Sysname] interface gigabitethernet 1/0/1
[Sysname-GigabitEthernet1/0/1] description lanswitch-interface
display counters
Syntax
display counters
{
inbound
|
outbound
}
interface
[
interface-type
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
View
Any view
Default level
1: Monitor level
Parameters
inbound
: Displays inbound traffic statistics.
outbound
: Displays outbound traffic statistics.
interface-type
: Specifies an interface type as GE port or 10-GE port..
|
: Filters command output by specifying a regular expression. For more information about regular
expressions, see the
Fundamentals Configuration Guide
.
begin
: Displays the first line that matches the specified regular expression and all lines that follow.
exclude
: Displays all lines that do not match the specified regular expression.
include
: Displays all lines that match the specified regular expression.
regular-expression
: Specifies a regular expression, which is a case sensitive string of 1 to 256 characters.
Description
Use the
display counters
command to display traffic statistics for interfaces.
•
If an interface type is specified, this command displays traffic statistics for all interfaces of the
specified type.
•
If no interface type is specified, this command displays traffic statistics for all interfaces that have
traffic counters.
Examples
# Display the inbound traffic statistics for all GigabitEthernet interfaces.
<Sysname> display counters inbound interface gigabitethernet
Interface Total(pkts) Broadcast(pkts) Multicast(pkts) Err(pkts)
GE1/0/1 100 100 0 0
GE1/0/2 0 0 0 0
GE1/0/3 Overflow Overflow Overflow Overflow