Brocade Communications Systems NetIron CER Series Installation Guide Page 68

  • Download
  • Add to my manuals
  • Print
  • Page
    / 120
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 67
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.
device# show interface e 3/1 | include Internet
Internet address is 192.168.1.11/24, MTU 1518 bytes, encapsulation ethernet
Syntax: include show-command | 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 a Brocade
device.
device# 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:
Syntax: exclude show-command | 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.
device# 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
Syntax: begin show-command | 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
Displaying lines containing a specified string
68 Brocade NetIron CES 2000 Series and NetIron CER 2000 Series Hardware Installation Guide
53-1003263-02
Page view 67
1 2 ... 63 64 65 66 67 68 69 70 71 72 73 ... 119 120

Comments to this Manuals

No comments