Description
2.7 General CLI commands
SCALANCE XM-400/XR-500 Command Line Interface (CLI)
54 Configuration Manual, 11/2015, C79000-G8976-C252-10
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.
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.
You display the list of commands last used with the show history command. This function is
available in every mode.
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.
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
has the same effect as:
CLI#conf t
CLI(config)#int vlan 1
CLI(config-if-vlan-1)#no ip address dhcp
CLI(config-if-vlan-1)#ip address 192.168.1.1 255.255.255.0
CLI(config-if-vlan-1)#end
CLI#write startup