HP 6125G HP 6125G & 6125G/XG Blade Switches Fundamentals Command Refer - Page 33

character on the PC, and you can also use, Manage level

Page 33 highlights

3: Manage level Parameters character: Specifies the shortcut key for terminating 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 shortcut key. For example, if you enter an ASCII code value of 113, the system uses its corresponding character q as the shortcut key. If you enter the string q@c, the system uses the first character q as the shortcut key. default: Restores the default escape key sequence Ctrl+C. Description Use escape-key to define a shortcut key for terminating a task. Use undo escape-key to disable the shortcut key for terminating tasks. By default, you can use Ctrl+C to terminate a task. After you define a new shortcut key by using the escape-key command, the new shortcut key is used to terminate a task. To display the shortcut key you have defined, use the display current-configuration command. If you set the character argument in a user interface to log in to the device and then Telnet to another device, the character argument can be used as a control character to terminate a task rather than used as a common character. For example, if you specify character e in VTY 0 user interface of Device A, when you log in to Device A by using VTY 0 from a PC (HyperTerminal), you can input 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, you can only use e to terminate the task running on Device B, rather than use e as a common character, so specify character as a key combination. Examples # Define key a as the shortcut key for terminating a task. system-view [Sysname] user-interface aux 0 [Sysname-ui-aux0] escape-key a To verify the configuration: 1. Ping the IP address of 192.168.1.49 and use the -c keyword to specify the number of ICMP echo packets to be sent as 20. 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 2. 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 26

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180

26
3: Manage level
Parameters
character
: Specifies the shortcut key for terminating 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 shortcut key. For example, if you enter an ASCII code value of 113, the system uses its
corresponding character q as the shortcut key. If you enter the string q@c, the system uses the first
character
q
as the shortcut key.
default
: Restores the default escape key sequence
Ctrl+C
.
Description
Use
escape-key
to define a shortcut key for terminating a task.
Use
undo escape-key
to disable the shortcut key for terminating tasks.
By default, you can use
Ctrl+C
to terminate a task.
After you define a new shortcut key by using the
escape-key
command, the new shortcut key is used to
terminate a task. To display the shortcut key you have defined, use the
display current-configuration
command.
If you set the
character
argument in a user interface to log in to the device and then Telnet to another
device, the
character
argument can be used as a control character to terminate a task rather than used
as a common character. For example, if you specify
character
e
in VTY 0 user interface of Device A,
when you log in to Device A by using VTY 0 from a PC (HyperTerminal), you can input
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, you can only use
e
to terminate the task running on Device B, rather than use
e
as a common character, so specify
character
as a key combination.
Examples
# Define key
a
as the shortcut key for terminating a task.
<Sysname> system-view
[Sysname] user-interface aux 0
[Sysname-ui-aux0] escape-key a
To verify the configuration:
1.
Ping the IP address of 192.168.1.49 and use the
-c
keyword 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
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
2.
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>