The display aaa command displays information about normal logout, abnormal logout, and login failures.
display aaa { offline-record | abnormal-offline-record | online-fail-record } { all | reverse-order | domain domain-name | interface interface-type interface-number [ vlan vlan-id [ qinq qinq-vlan-id ] ] | ip-address ip-address [ vpn-instance vpn-instance-name ] | mac-address mac-address | access-slot slot-number | time start-time end-time [ date start-date end-date ] | username user-name [ time start-time end-time [ date start-date end-date ] ] } [ brief ]
Parameter
|
Description | Value |
---|---|---|
offline-record |
Displays normal logout records. |
- |
abnormal-offline-record |
Displays abnormal logout records. |
- |
online-fail-record |
Displays login failure records. |
- |
all |
Displays all login and logout records. |
- |
reverse-order |
Displays the records in order of newest to oldest. |
- |
domain domain-name |
Specifies the name of a domain. |
The value is a string of 1 to 64 case-insensitive characters, excluding spaces, *, ?, and ". |
interface interface-type interface-number |
Specifies the type and number of an interface. |
- |
vlan vlan-id |
Specifies the inner VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
qinq qinq-vlan-id |
Specifies the outer VLAN ID. |
The value is an integer that ranges from 1 to 4094. |
ip-address ip-address |
Specifies an IP address. |
The value is in dotted decimal notation. |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
The value must be an existing VPN instance name. |
mac-address mac-address |
Specifies a MAC address. |
The value is in H-H-H format. An H is a 4-digit hexadecimal number. |
access-slot slot-number |
Specifies a slot ID. |
The value is an integer. The value range depends on the model of the device. |
username user-name |
Specifies a user. |
The value must be an existing user. |
time start-time end-time |
Specifies a time range. |
The format is HH:MM:SS, indicating hour:minute:second. |
date start-date end-date |
Specifies a date. |
The format is YYYY/MM/DD. YYYY is the year, MM is the month, and DD is the day. |
brief |
Displays brief login and logout information. |
- |
Usage Scenario
This command allows you to view information about user normal logouts, abnormal logouts, and login failures based on the domain name, interface, IP address, VPN instance, MAC address, or slot ID.
Precautions
Only letters, digits, and special characters can be displayed for username. It supports English, Chinese, and Russian. The coding format used by the Telnet terminal must be the same as the coding format used by the user name input device. Otherwise, the user name in the language other than English may not be normally displayed.
When the value of username contains special characters or characters in other languages except English, the device displays dots (.) for these characters. If there are more than three such consecutive characters, three dots (.) are displayed. Here, the special characters are the ASCII codes smaller than 32 (space) or larger than 126 (~).
For the descriptions, possible causes, and solutions of abnormal user logins and logouts, see "Common Causes for Access Authentication Failures" in the Huawei S Series Campus Switches Troubleshooting Guide.
<HUAWEI> display aaa offline-record domain rds ------------------------------------------------------------------- User name : test@rds Domain name : rds User MAC : 0021-9746-b67c User access type : 802.1x User access interface : GigabitEthernet10/0/2 Qinq vlan/User vlan : 0/1 User IP address : 192.168.2.2 User IPV6 address : - User ID : 19 User login time : 2008/10/01 04:49:39 User offline time : 2008/10/01 04:59:43 User offline reason : EAPOL user request User name to server : test@rds AP ID : 0 Radio ID : 0 AP MAC : b001-0000-ac01 SSID : ssid1 ------------------------------------------------------------------- Are you sure to display some information?(y/n)[y]:
<HUAWEI> display aaa abnormal-offline-record all
------------------------------------------------------------------------------
User name : cdw
Domain name : l2bng
User MAC : c825-e142-4f2b
User access type : MAC
User access interface : Wlan-Dbss1
Qinq vlan/User vlan : 0/2012
User IP address : 10.17.17.219
User IPV6 address : -
User ID : 18
User login time : 2017/03/16 19:40:18
User offline time : 2017/03/16 19:43:20
User offline reason : AAA cut command
User name to server : cdw@l2bng
AP ID : 1
Radio ID : 0
AP MAC : b001-0000-ac01
SSID : ssid1
------------------------------------------------------------------------------
Are you sure to display some information?(y/n)[y]:
<HUAWEI> display aaa online-fail-record all
------------------------------------------------------------------------------ User name : huawei Domain name : default User MAC : 0000-1220-85bc User access type : MAC User access interface : Eth-Trunk10 Qinq vlan/User vlan : 116/100 User IP address : 10.1.1.10 User IPV6 address : - User ID : 326678 User login time : 2019/09/20 10:06:32 User online fail reason : Radius authentication reject Authen reply message : ErrorReason is The access quanti... User name to server : zxx ------------------------------------------------------------------------------ Are you sure to display some information?(y/n)[y]:
Item
|
Description |
---|---|
User name |
User name. |
Domain name |
Domain of a user. |
User MAC |
MAC address of a user. |
User access type |
Access type of a user:
|
User access interface |
Access interface of a user. |
Qinq vlan/User vlan |
VLAN that a user belongs to.
|
User IP address |
IP address of a user. |
User IPV6 address |
IPv6 address of a user. |
User ID |
Index of a user. |
User login time |
Time when a user goes online. |
User offline time |
Time when a user goes offline. |
User offline reason or User online fail reason |
Reason why a user fails to go online or offline. The common reasons are as follows:
|
Authen reply message |
Authentication response message. If the Access-Reject packet returned by the RADIUS server carries this field, this field is filled with the message carried in the Access-Reject packet. The length of this field cannot exceed 32 bytes. Otherwise, the message "Authentication fail,user is blocked" or "Authentication fail" is displayed. |
User name to server |
User name sent by the device to the server. |
AP ID |
ID of the AP that a wireless user associates with. |
Radio ID |
ID of the radio that a wireless user associates with. |
AP MAC |
MAC address of the AP that a wireless user associates with. |
SSID |
SSID that a wireless user associates with. |