user-interface (System view)

Function

The user-interface command displays only one user interface view.

By default, there is no user interface view displayed.

Format

user-interface ui-type [ last-ui-number ]

Parameters

Parameter Description Value
ui-type

Specifies the type of user interface.

The value of ui-type can be console, vty, or maximum-vty.

first-ui-number

Specifies the first user interface to be configured.

  • If the ui-type is console, the value of first-ui-number is 0.
  • If the ui-type is vty, the value of first-ui-number is 0 to maximum configured vty minus 1.
last-ui-number

Specifies the last user interface to be configured.

  • If ui-type is set to console, this field is unavailable.
  • If the value of ui-type is vty, the value of last-ui-number ranges from first-ui-number plus 1 to the configured maximum VTY minus 1.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
tty write

Usage Guidelines

Usage Scenario

If a user logs in to a device through an vty port, the system automatically allocates an idle user interface with the smallest number and a specified type to the user based on the login mode. The user interface helps manage and monitor the session between the device and the user. Each user interface has a corresponding user interface view where you can set a series of parameters, such as whether user authentication is required during the login and the user level after login. These parameters restrict the users that log in through this user interface, achieving unified session management.

Follow-up Procedure

After logging in to the device as a network administrator, run the display user-interface command to view user interfaces currently supported and the absolute and relative numbers of these user interfaces.

Precautions

In VS mode, this command is supported only by the admin VS.

Example

# Entering into vty view for updating vty 0 configuration.
<HUAWEI> system-view
[~HUAWEI] user-interface vty 0
[~HUAWEI-ui-vty0] authentication-mode aaa
[~HUAWEI-ui-vty0] user privilege level 3
[~HUAWEI-ui-vty0] idle-timeout 0 0
Warning: Idle time-out is configured as 0, so session will never be disconnected because of timeout.
[~HUAWEI-ui-vty0] screen-length 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >