Configuration Guide User guide

FastIron Configuration Guide 7
53-1002494-02
Using stack-unit, slot number, and port number with CLI commands
CLI nomenclature on Stackable devices
Stackable devices (FCX and ICX) use the stack-unit/slot/port nomenclature. When you enter CLI
commands that include the port number as part of the syntax, you must use the
stack-unit/slot/port number format. For example, the following commands change the CLI from
the global CONFIG level to the configuration level for the first port on the device:
Brocade(config)#interface e 1/1/1
Brocade(config-if-e1000-1/1/1)#
Syntax: ethernet <stack-unit>/<slotnum>/<portnum>
Refer to Chapter 7, “Brocade Stackable Devices” for more information about these devices.
Searching and filtering output from CLI commands
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 “Using special
characters in regular expressions” on page 9 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.
Syntax: <show-command> | include <regular-expression>
NOTE
The vertical bar ( | ) is part of the command.
Note that the regular expression specified 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 specified string
The following command filters 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 the
Brocade device.
Brocade#show interface e 3/11 | include Internet
Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet