47
•
A setting in user line view takes effect immediately and affects the online user. A setting in user
line class view does not affect online users and takes effect only for users who log in after the
configuration is completed.
This command is an older version of the
line class
command. It is reserved for backward
compatibility purposes. It has the same functionality and output as the
line class
command. As a
best practice, use the
line class
command.
Examples
# Set the CLI connection idle-timeout timer to 15 minutes in VTY line class view.
<Sysname> system-view
[Sysname] user-interface class vty
[Sysname-line-class-vty] idle-timeout 15
# In AUX line class view, configure character
s
as the shortcut key for starting a terminal session.
<Sysname> system-view
[Sysname] user-interface class aux
[Sysname-line-class-aux] activation-key s
[Sysname-line-class-aux] quit
# In AUX 0 line view, restore the default shortcut key for starting a terminal session.
[Sysname] user-interface aux 0
[Sysname-line-aux0] undo activation-key
Alternatively:
[Sysname-line-aux0] activation-key 13
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>
Related commands
user-interface
user-role
Use
user-role
to assign a user role to a user line so users logged in through the user line get the user
role at login.
Use
undo user-role
to remove a user role or restore the default.
Syntax
user-role
role-name
undo
user-role
[
role-name
]