Searching and filtering output, List of available options, Searching and filtering output from show commands – Brocade Multi-Service IronWare Administration Guide (Supporting R05.6.00) User Manual
Page 29

Multi-Service IronWare Administration Guide
11
53-1003028-02
CONFIG commands
1
List of available options
To get a quick display of available options at a CLI level or for the next option in a command string,
enter a question mark (?) at the prompt or press TAB.
Example
To view all available commands at the user EXEC level, enter the following or press TAB at the User
EXEC CLI level.
Brocade> ?
enable
exit
fastboot
ping
show
stop-trace-route
traceroute
You also can use the question mark (?) with an individual command, to see all available options or
to check context.
Example
Enter the following to view possible copy command options.
Brocade# copy ?
flash
running-config
startup-config
tftp
Brocade# copy flash ?
tftp
Searching and filtering output
You can filter CLI output from show commands and at the --More-- prompt. You can search for
individual characters, strings, or construct complex regular expressions to filter the output.
Searching and filtering output from show commands
You can filter output from show commands to display lines containing a specified string, lines that
do not contain a specified string, or output starting with a line containing a specified 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
characters in regular expressions”
on page 14 for information on special characters used with
regular expressions.
Displaying lines containing a specified string
The following command filters the output of the show interface command for port 3/11 so it
displays only lines containing the word “Internet”. This command can be used to display the IP
address of the interface.
Brocade# show interface e 3/11 | include Internet
Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet
Syntax: show-command | include regular-expression