1 Using slot number, and port number with CLI commands

CLI nomenclature on Brocade ICX 6650 models

When you enter CLI commands that include the port number as part of the syntax, you must use the stack unit/slot number/port number format. The unit number is 1. 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 ethernet 1/1/1

Brocade(config-if-e1000-1/1/1)#

Syntax: ethernet <stack-unit>/<slot>/<port>

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 8 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 1/1/2 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 ethernet 1/1/2 include Internet

Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet

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.

6

Brocade ICX 6650 Administration Guide

 

53-1002600-01

Page 24
Image 24
Brocade Communications Systems manual CLI nomenclature on Brocade ICX 6650 models