162
C
8: G
HAPTER
ENERAL
Parameter
Description
Example
display brief interface
Syntax
View
Parameter
E
I
C
THERNET
NTERFACE
ONFIGURATION
text: The description of an Ethernet interface, a string of 1 to 80 characters.
Use the
description
interface.
Use the
undo description
Default to interface name followed by the "interface" string.
# Configure the description for interface Ethernet 1/0 to "lan-interface".
<Sysname> system-view
[Sysname] interface ethernet 1/0
[Sysname-Ethernet1/0] description lan-interface
display brief interface [ interface-type [ interface-number ] ] [ | { begin | include |
exclude } text ]
Any view
interface-type: Type of a specified interface.
interface-number: Number of a specified interface.
|: Uses a regular expression to filter output information.
begin: Displays all the configuration information in the line that contains the
specified string and all the lines after this line.
include: Displays information that contains the specified string.
exclude: Displays information that does not contain the specified string.
text: Regular expression, in the range of 1 to 256 characters, excluding spaces.
Table 8 Special characters used in regular expressions
Character
Meaning
^
Boundary matcher for the beginning
of a line. This character specifies a
string with which a line begins.
$
Boundary matcher for the end of a
line. This character specifies a string
with which a line ends.
.
Full stop, used as the wildcard
character, which matches any single
character, including space.
C
OMMANDS
command to configure the description of an Ethernet
command to remove the description.
Notes on Use
The regular expression "^user"
matches lines that begin with the
string "user". Lines that don t
begin with the string "user", for
example, "Auser", are not
matched.
The regular expression "user$"
matches lines that end with the
string "user". Lines that do not end
with the string, for example,
"userA", are not matched.
None