Quick Reference Guide

6 PowerConnect B-Series TI24X Configuration Guide
53-1002269-02
Using and port number with CLI commands
1
PowerConnect#show interface e 11 | 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.
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.
Using exclude to display lines that do not contain a specified string
The exclude modifier 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
device
PowerConnect#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: show-command | exclude regular-expression
Using begin to display lines starting with a specified string
The begin modifier 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 device.
PowerConnect#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: 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
device displays output starting from the first line that contains the search string, similar to the
begin modifier for show commands. An example is given below.