Installation Guide

Table Of Contents
TABLE 11 CLI line editing commands (continued)
Ctrl-key combination Description
Ctrl-K Deletes all characters from the cursor to the end of the command line.
Ctrl-L; Ctrl-R Repeats the current command line on a new line.
Ctrl-N Enters the next command line in the history buer.
Ctrl-P Enters the previous command line in the history buer.
Ctrl-U; Ctrl-X Deletes all characters from the cursor to the beginning of the command
line.
Ctrl-W Deletes the last word you typed.
Ctrl-Z Moves from any CONFIG level of the CLI to the Privileged EXEC level; at
the Privileged EXEC level, moves to the User EXEC level.
For a complete list of CLI commands and syntax information for each command, refer to Extreme NetIron Command Line Reference
Guide.
Searching and
ltering output from CLI commands
You can lter CLI output from show commands and at the --More-- prompt. You can search for individual characters, strings, or
construct complex regular expressions to lter the output.
Searching and ltering output from show commands
You can
lter output from show commands to display lines containing a specied string, lines that do not contain a specied string, or
output starting with a line containing a specied string. The search string is a regular expression consisting of a single character or string
of characters. You can use special characters to construct complex regular expressions. Refer to Using special characters in regular
expressions on page 65 for information on special characters used with regular expressions.
Displaying lines containing a specied string
The following command lters the output of the show interface command for port 3/1 so it displays only lines containing the word
"Internet". This command can be used to display the IP address of the interface.
device# show interface e 3/1 | include Internet
Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet
Syntax: include show-command | regular-expression
NOTE
The vertical bar (|) is part of the command.
Note that the regular expression specied as the search string is case sensitive. In the example above, a search string of "Internet" would
match the line containing the IP address, but a search string of "internet" would not.
Displaying lines that do not contain a specied string
The following command lters the output of the show who command so it displays only lines that do not contain the word "closed". This
command can be used to display open connections to an Extreme Networks device.
device# show who | exclude closed
Console connections:
established
CLI Functionality
ExtremeSwitching CES 2000 Series and ExtremeRouting CER 2000 Series Hardware Installation Guide
9035631-01 63