Flow-Control - HP A8800 Series Fundamentals Command Reference

Hide thumbs Also See for A8800 Series:
Table of Contents

Advertisement

character: Specifies the escape key for aborting a task, a single character (or its corresponding ASCII
code value in the range of 0 to 127) or a string of 1 to 3 characters. Only the first character of a string
functions as the escape key. For example, if you enter an ASCII code value 1 13, the system uses its
corresponding character q as the escape key. If you enter the string q@c, the system uses the first
character q as the escape key.
default: Restores the default escape key sequence of Ctrl+C.
Description
Use escape-key to define a escape key for aborting a task.
Use undo escape-key to disable the escape key for aborting tasks.
By default, a task is terminated by using Ctrl+C.
After defining a new escape key by using the escape-key command, the new escape key functions to
terminate a task. To display the escape key you have defined, use the display current-configuration
command.
If you set the character argument in a user interface of a router, when you use the user interface to log in
to the router and then Telnet to another device, the character argument can be used as a control
character to terminate a task only, rather than entered 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 by using VTY 0
on a PC (Hyper Terminal), you can enter e as a common character on the PC, and you can also use e to
terminate the task running on Device A. If you Telnet to Device B from Device A, however, you can only
use e to terminate the task running on Device B, rather than enter e as a common character. It is good
practice to use an escape key sequence.
Examples
# Define key a as the escape key for aborting a task.
<Sysname> system-view
[Sysname] user-interface console 0
[Sysname-ui-console0] escape-key a
To verify the configuration:
# Use the ping command to check the reachability of the router with the IP address of 192.168.1.49 and
use the -c argument to specify the number of ICMP echo packets to be sent as 20.
<Sysname> ping -c 20 192.168.1.49
PING 192.168.1.49: 56
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. The task terminates immediately and the system returns to system view.
--- 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>

flow-control

Syntax
data bytes, press a to break
29

Advertisement

Table of Contents
loading

Table of Contents