85
By default, you can use
Ctrl+C
to terminate a task.
After defining a new shortcut key using the
escape-key
command, the new shortcut
key will function to terminate a task. You can use the
display current-configuration
command to display the shortcut key you have defined.
If you set the
character
argument in a user interface of a device, when you use the
user interface to log in to the device and then telnet to another device through the
device you have logged in, the
character
argument can be used as a control
character to terminate a task only, rather than input as a common character. For
example, if you specify
character
as
e
in VTY 0 user interface of Device A, when you
log in to Device A using VTY 0 on PC (Hyper Terminal), you can input
e
as a common
character on PC, and you can also use
e
to terminate the task running on Device A. If
you telnet to Device B through Device A, however, you can only use
e
to terminate the
task running on Device B, rather than input
e
as a common character. Therefore, you
are recommended to specify
character
as a key combination.
Examples
Define key
a
as the escape key.
<Sysname> system-view
[Sysname] user-interface console 0
[Sysname-ui-console0] escape-key a
To verify the configuration, do the following:
Use the
ping
command to check the reachability of the device with the IP address of
192.168.1.49 and use the
-c
argument to specify the number of the ICMP echo packets
to be sent as 20.
<Sysname> ping -c 20 192.168.1.49
PING 192.168.1.49: 56 data bytes, press a to break
Reply from 192.168.1.49: bytes=56 Sequence=1 ttl=255 time=3 ms
Reply from 192.168.1.49: bytes=56 Sequence=2 ttl=255 time=3 ms
Enter
a
, if the task terminates immediately and the system returns to the current view,
the configuration is correct.
--- 192.168.1.49 ping statistics ---
2 packet(s) transmitted
2 packet(s) received
0.00% packet loss
round-trip min/avg/max = 3/3/3 ms
<Sysname>