User Manual

2.5.5 Command history
By using the command history function, you can easily re-execute a command that you previously input, or partially modify a
previously input command and re-execute it. Command history is shown as a history that is common to all modes.
Operation is shown below.
Keyboard operation Description and notes
Move backward through command history
Ctrl + P
Move forward through command history
Ctrl + N
2.6 Commands that start with the word "show"
2.6.1 Modifiers
Modifiers send the information produced by the show command through a filter, restricting the content that is shown in the
screen and making it easier for you to see the desired information.
The SWR2311P provides the following three modifiers for the show command.
Modifiers Description
include
Output only the lines that include the specified character
string
grep
exclude
Output only the lines that do not include the specified
character string
Modifiers can be used only one at a time. You cannot specify more than one modifier.
(Example) Using
show running-config to view information that includes VLAN #1 (vlan1).
SWR2311P#show running-config | grep vlan1
interface vlan1
http-server interface vlan1
telnet-server interface vlan1
(Example) Using
show spanning-tree to view information that includes Role.
SWR2311P# show spanning-tree | include Role
% po1: Port Number 505 - Ifindex 4601 - Port Id 0x81f9 - Role Disabled - State
Discarding
% port1.1: Port Number 905 - Ifindex 5001 - Port Id 0x8389 - Role Disabled -
State Forwarding
% port1.2: Port Number 906 - Ifindex 5002 - Port Id 0x838a - Role Disabled -
State Forwarding
% port1.3: Port Number 907 - Ifindex 5003 - Port Id 0x838b - Role Disabled -
State Forwarding
% port1.4: Port Number 908 - Ifindex 5004 - Port Id 0x838c - Role Disabled -
State Forwarding
% port1.6: Port Number 910 - Ifindex 5006 - Port Id 0x838e - Role Disabled -
State Forwarding
% port1.7: Port Number 911 - Ifindex 5007 - Port Id 0x838f - Role Disabled -
State Forwarding
% port1.8: Port Number 912 - Ifindex 5008 - Port Id 0x8390 - Role Disabled -
State Forwarding
% port1.9: Port Number 913 - Ifindex 5009 - Port Id 0x8391 - Role Disabled -
State Forwarding
% port1.10: Port Number 914 - Ifindex 5010 - Port Id 0x8392 - Role Disabled -
State Forwarding
Command Reference | How to use the commands | 23