< Home

display user-interface login-information

Function

The display user-interface login-information command displays channel login information.

Format

display user-interface [ ui-type ui-number1 | ui-number ] login-information

Parameters

Parameter Description Value

ui-type ui-number1

Specifies the user interface type and relative user interface ID.

The value of user interface type can be Console or VTY.

ui-number

Specifies the absolute user interface ID.

The minimum value is 0. The maximum value is smaller by 1 than the number of the user interfaces that the system supports. The range of the user interface number varies with devices.

login-information

Displays channel login information.

-

Views

Diagnostic view

Default Level

3: Management level

Usage Guidelines

To display channel login information, run the display user-interface login-information command.

  • This command displays information about login through available console or VTY ports.
  • If this command is run to display information about login through ports except console or VTY, an error message is displayed.
  • If this command is run to display information about login through unavailable console or VTY ports, an error message is displayed.

Example

# Displays login information about the interface with the absolute ID of 34.

<sysname> system-view
[sysname] diagnose
[sysname-diagnose] display user-interface 34 login-information
****************************************
Line Index: 34
Line State: EXEC
User AAAId: 256
User AuthenState: Authentication Success
****************************************

# Displays login information about the VTY port with the relative number of 0.

<sysname> system-view
[sysname] diagnose
[sysname-diagnose] display user-interface vty 0 login-information
****************************************
Line Index: 34
Line State: EXEC
User AAAId: 256
User AuthenState: Authentication Success
****************************************

# Displays information about login through all available console or VTY ports.

<sysname> system-view
[sysname] diagnose
[sysname-diagnose] display user-interface login-information
****************************************
Line Index: 0
Line State: EXEC
User AAAId: -
User AuthenState: Authentication Success
Received Bytes: 1396
****************************************
Line Index: 34
Line State: EXEC
User AAAId: 256
User AuthenState: Authentication Success
****************************************
Line Index: 35
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Line Index: 50
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Line Index: 51
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Line Index: 52
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Line Index: 53
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Line Index: 54
Line State: IDLE
User AAAId: -
User AuthenState: -
****************************************
Table 1 Description of the display user-interface login-information command output

Item

Description

Line Index

Channel index of the current user

Line State

Current user status

User AAAId

User AAA ID

User AuthenState

User authentication result:

  • Authentication Success: The user has successfully logged in.
  • -: The channel is idle. No user logs in, or a user is occupying the channel but has not successfully logged in yet.

Received Bytes

Number of bytes received by the current channel. This field only exists when the Console channels are viewed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >