This is only possible if all the parts of the abbreviated input can be assigned to exactly one
command or to the parts of the command.
Example
The
show event config
command can be replaced by the expression
sh e c
.
2.9.4.5
Reusing the last used commands
Description
The Command Line Interface saves the last 14 commands used in a list assigned to the
particular mode. This can then only be called up in the relevant mode.
Example:
In the Global Configuration mode, all entered commands are saved. If you entered commands
earlier in the Interface Configuration mode, these commands are not included in the list of the
Global Configuration mode. You can only call up and reuse these commands in the Interface
Configuration mode.
Procedure
You can page through the list of the commands most recently used using the arrow up and
arrow down keys.
If the command you are looking for is displayed, you can edit the command line as required
and execute the command with the enter key.
Further notes
You display the list of commands last used with the
show history
command. This function
is available in every mode.
2.9.4.6
Working through a command sequence
Separators for multiple commands in one line
You can call up several commands one after the other in one line in the CLI.
Separate the commands with a semicolon (;).
After completing your input, start the processing of this command sequence with the enter key.
Example
The command sequence
CLI#conf t; int vlan 1; no ip address dhcp; ip address 192.168.1.1
255.255.255.0; end; write startup
General information
2.9 General CLI commands
SCALANCE XB-200/XC-200/XF-200BA/XP-200/XR-300WG Command Line Interface
Configuration Manual, 07/2017, C79000-G8976-C361-06
43