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:

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:

  1. Exit the console session.

    [Sysname-line-aux0] return
    <Sysname> quit
    
  2. Log in again through the AUX line.

    The following message appears:

    Press ENTER to get started.
    
  3. Press Enter.

    Pressing Enter does not start a session.

  4. Enter s.

    A terminal session is started.

    <Sysname>