User Manual

Table Of Contents
2.5.3 Input command completion and keyword candidate list display
If you press the "Tab" key while entering a command in the console, the command name is completed. If you press the "Tab"
key after entering a keyword, a list of keyword candidates that can be entered next is shown. The same operation can also be
performed by pressing the "Ctrl + I" key.
Command name completion
SWP2#con "press the <Tab>key"
SWP2#configure
Keyword candidate list display
SWP2(config)#vlan "press the <Tab> key"
access-map database filter
SWP2(config)#vlan
2.5.4 Entering command abbreviations
When you enter commands or parameters in abbreviated form, and the characters you entered can be recognized
unambiguously as a command or parameter, that command is executed.
Example of entering a command abbreviation (show running-config)
SWP2# sh run
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 SWP2 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).
SWP2#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.
SWP2# 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 -
Command Reference | How to use the commands | 21