activation-key
Use activation-key to define a shortcut key for starting a terminal session.
Use undo activation-key to restore the default.
Syntax
activation-key character
undo activation-key
Default
Pressing Enter starts a terminal session.
Views
User line view, user line class view
Predefined user roles
network-admin
mdc-admin
Parameters
character: Specifies the shortcut key. It can be a single character, a key sequence, or the ASCII code value (in the range of 0 to 127) of the character or key sequence.
Usage guidelines
This command is not supported in VTY line view or VTY line class view.
This command is available in both user line view and user line class view:
If the setting in user line view is not the default setting, the setting in user line view takes effect.
If the setting in user line view is the default setting but the setting in user line class view is not, the setting in user line class view takes effect.
To display the shortcut key you have defined, use the display current-configuration | include activation-key command.
Examples
# Configure character s as the shortcut key for starting a terminal session on the user line AUX 0.
<Sysname> system-view [Sysname] line aux 0 [Sysname-line-aux0] activation-key s
To verify the configuration:
Exit the console session.
[Sysname-line-aux0] return <Sysname> quit
Log in again through the AUX line.
The following message appears:
Press ENTER to get started.
Press Enter.
Pressing Enter does not start a session.
Enter s.
A terminal session is started.
<Sysname>