User Manual

individual configuration mode Transition command Prompt
L2MS mode l2ms configuration command SWP1(config-l2ms)#
2.4.3 Command prompt prefix
The command prompt prefix indicates the host name. In the default state, the host name is the model name "SWP1". This
indication can be changed by using the hostname command to specify the host name. In cases where multiple SWP1 units are
used, management will be easier if separate names are assigned to each switch.
Changing the host name
SWP1(config)# hostname Switch-012
Switch-012(config)#
2.4.4 Executing commands of a different input mode
Because the commands that can be used on the SWP1 differ depending on the mode, you must transition to the mode in which a
command can be executed before you execute that command. The do command is provided as a way to avoid this requirement.
By using the do command you can execute priviledged EXEC mode commands from any configuration mode. This allows you
to reference the current configuration or save settings from any configuration mode without having to transition to priviledged
EXEC mode.
However, since the completion function cannot be used with do, you must enter the command that follows either in its full
spelling or in its abbreviated form.
Entry in full spelling
SWP1(config)#do show running-config
Entry in abbreviated form
SWP1(config)#do sh ru
2.5 Keyboard operations when using the console
2.5.1 Basic operations for console input
The SWP1 allows the following operations in the command line.
Moving the cursor
Keyboard operation Description and notes
Move right one character
Move left one character
Press Esc, then F
Move right one word (move to the character following the
end of the word at the cursor location)
Press Esc, then B
Move left one word (move to the first character of the word
at the cursor location)
Ctrl + A Move to the beginning of the line
Ctrl + E Move to the end of the line
Deleting an input character
Keyboard operation Description and notes
Backspace
Delete the character at the left of the cursor
Ctrl + H
Ctrl + D
Delete the character at the cursor.
If this operation is performed when the command line is
empty, the result is the same as the exit command.
Press Esc, then D
Delete from the cursor position until immediately before the
first space
Ctrl + K Delete from the cursor position until the end of the line
Ctrl + U Delete all characters that are being entered
Command Reference | How to use the commands | 17