Brocade BigIron RX Series Configuration Guide User Manual

Page 190

Advertising
background image

112

BigIron RX Series Configuration Guide

53-1002484-04

Logging on through the CLI

4

Displaying lines containing a specified string

The following command filters 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.

BigIron RX# show interface e 3/1 | 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

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 a
BigIron RX Series Switch.

Syntax: <show-command> | exclude <regular-expression>

Displaying lines starting with a specified string

The following command filters the output of the show who command so it displays output starting
with the first line that contains the word “SSH”. This command can be used to display information
about SSH connections to the BigIron RX Series Switch.

Syntax: <show-command> | begin <regular-expression>

BigIron RX# show who | exclude closed

Console connections:

established

you are connecting to this session

2 seconds in idle

Telnet connections (inbound):

1 established, client ip address 192.168.9.37

27 seconds in idle

Telnet connection (outbound):

SSH connections:

BigIron RX# show who | begin SSH

SSH connections:

1 established, client ip address 192.168.9.210

7 seconds in idle

2 closed

3 closed

4 closed

5 closed

Advertising