28.11.2012 Views

Brocade Netiron CES and Brocade Netiron CER Devices Hardware ...

Brocade Netiron CES and Brocade Netiron CER Devices Hardware ...

Brocade Netiron CES and Brocade Netiron CER Devices Hardware ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

4<br />

CLI Functionality<br />

NOTE<br />

The vertical bar (|) is part of the comm<strong>and</strong>.<br />

Note that the regular expression specified as the search string is case sensitive. In the example<br />

above, a search string of “Internet” would match the line containing the IP address, but a search<br />

string of “Internet” would not.<br />

Displaying lines that do not contain a specified string<br />

The following comm<strong>and</strong> filters the output of the show who comm<strong>and</strong> so it displays only lines that<br />

do not contain the word “closed”. This comm<strong>and</strong> can be used to display open connections to a<br />

<strong>Brocade</strong> device.<br />

<strong>Brocade</strong># show who | exclude closed<br />

Console connections:<br />

established<br />

you are connecting to this session<br />

2 seconds in idle<br />

Telnet connections (inbound):<br />

1 established, client ip address 192.168.9.37<br />

27 seconds in idle<br />

Telnet connection (outbound):<br />

SSH connections:<br />

Syntax: | exclude <br />

Displaying lines starting with a specified string<br />

The following comm<strong>and</strong> filters the output of the show who comm<strong>and</strong> so it displays output starting<br />

with the first line that contains the word “SSH”. This comm<strong>and</strong> can be used to display information<br />

about SSH connections to the <strong>Brocade</strong> device.<br />

<strong>Brocade</strong># show who | begin SSH<br />

SSH connections:<br />

1 established, client ip address 192.168.9.210<br />

7 seconds in idle<br />

2 closed<br />

3 closed<br />

4 closed<br />

5 closed<br />

Syntax: | begin <br />

Searching <strong>and</strong> filtering output at the --More-- prompt<br />

The --More-- prompt displays when output extends beyond a single page. From this prompt, you<br />

can press the Space bar to display the next page, the Return or Enter key to display the next line, or<br />

Ctrl-C to cancel the display. In addition, you can search <strong>and</strong> filter output from this prompt. For<br />

example.<br />

50 <strong>Brocade</strong> NetIron <strong>CES</strong> <strong>and</strong> <strong>Brocade</strong> NetIron <strong>CER</strong> <strong>Devices</strong> <strong>Hardware</strong> Guide<br />

53-1002425-03

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!