Description
2.7 General CLI commands
SCALANCE XM-400/XR-500 Command Line Interface (CLI)
58
Configuration Manual, 06/2016, C79000-G8976-C252-11
Further notes
You display the list of commands last used with the
show history
command. This function is
available in every mode.
2.7.5.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
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
2.7.5.7
show history
Description
This command shows the last 14 commands you entered.
The commands are listed in the order in which they were called up. The
show history
command is listed as the last command to be entered.
The list depends on the mode. In the Global configuration mode, the last 14 commands
entered in this mode are displayed. These commands are not included in the list of the
Interface configuration mode.
Requirement
You are in the User EXEC mode or in the Privileged EXEC mode.
The command prompt is as follows:
cli>
or
cli#
Summary of Contents for SCALANCE XM-400
Page 882: ......