Brocade Communications Systems Brocade ICX 6650 User Manual

Page 25

Advertising
background image

Brocade ICX 6650 Administration Guide

7

53-1002600-01

Using slot number, and port number with CLI commands

1

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 Brocade device.

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

Searching and filtering output at the --More-- prompt

The --More-- prompt displays when output extends beyond a single page. From this prompt, you can
press the Space bar to display the next page, the Return or Enter key to display the next line, or
Ctrl+C or Q to cancel the display. In addition, you can search and filter output from this prompt.

At the --More-- prompt, you can press the forward slash key ( / ) and then enter a search string. The
Brocade device displays output starting from the first line that contains the search string, similar to
the begin option for show commands. An example is given below.

Brocade#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:

Brocade#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

--More--, next page: Space, next line: Return key, quit: Control-c

/telnet

The results of the search are displayed.

searching...

telnet Telnet by name or IP address

temperature temperature sensor commands

terminal display syslog

traceroute TraceRoute to IP node

undebug Disable debugging functions (see also 'debug')

undelete Undelete flash card files

whois WHOIS lookup

write Write running configuration to flash or terminal

Advertising