No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
display log

display log

Function

Using the display log command, you can query all the logs or a specified log.

Format

display log [ cli | snmp ] index index1 [ index2 ]

display log [ cli | snmp ] { all | name username } [ start-date [ start-time ] [ end-date [ end-time ] ] ]

Parameters

Parameter

Description

Value

cli

Queries specified logs.

-

snmp

Queries network management logs.

-

index index1 [ index2 ]

Indicates the index of the log to be queried. index1 is the start index of the logs and index2 is the end index of the logs. That is, the logs with the index starting from index1 and ending with index2 are displayed.

Numeral type. Range: 1-64.

name username

Queries logs by user name.

It is a string of 1-15 characters.

all

Queries logs of all users.

-

[ start-date [ start-time ] [ end-date [ end-time ] ] ]

Sets the date and time when you query logs by user name or query logs of all users.

start-date: The real start date. Date format: yyyy-mm-dd.

start-time: The real start time. Time format: hh:mm:ss.

end-date: The real end date. Date format: yyyy-mm-dd.

end-time: The real end time. Time format: hh:mm:ss.

Views

User view

Default Level

1: Monitoring level

Usage Guidelines

  • When querying logs by name or by all, you can also query these logs by period.
  • This command can be used to query logs of the user with the level the same as yours or lower than yours.
  • Use parameters to display operation information about different users in different periods, for example, enter all to display the logs of all users.
  • When a configuration is incorrect, a fault will occur. To locate the fault, run this command to query logs to learn about basic information, such as the name of the user who operates the system, the IP address of the user, the specific time when the user performs an operation, and the detailed operations.

Example

# Query logs with indexes from 1 to 10.

<Huawei> display log index 1 10 
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     4  huawei123                         --                192.168.254.225     
  Time: 2014-05-20 04:55:34+00:00                                               
  Cmd:  system-view                                                             
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     3  huawei123                         --                192.168.254.225     
  Time: 2014-05-20 04:55:32+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     2  huawei123                         --                192.168.254.216     
  Time: 2014-05-20 04:55:19+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     1  huawei123                         --                192.168.254.224     
  Time: 2014-05-20 04:54:28+00:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   

# Query logs of all users within the period starting at 15:10:10 on 2013-07-31 and ending at 20:20:10 on 2013-07-31.

<Huawei> display log all 2013-07-31 15:10:10 - 2013-07-31 20:20:10  
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     4  admin                             --                192.168.40.1        
  Time: 2013-07-31 17:10:06+08:00                                               
  Cmd:  log off                                                                 
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     3  admin                             --                192.168.40.1        
  Time: 2013-07-31 16:40:13+08:00                                               
  Cmd:  diagnose                                                                
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     2  admin                             --                192.168.40.1        
  Time: 2013-07-31 16:40:12+08:00                                               
  Cmd:  system-view                                                             
  ---------------------------------------------------------------------------   
  No.   UserName                          Domain            IP-Address          
     1  admin                             --                192.168.40.1        
  Time: 2013-07-31 16:40:10+08:00                                               
  Cmd:  log on                                                                  
  ---------------------------------------------------------------------------   
Table 4-26  Description of the display log command output

Item

Description

No.

Serial number of each log. The serial number is generated automatically by the system.

UserName

User name of the log

Time

Detailed operation time of the user

IP-Address

IP address of the user

Cmd

Detailed operations of the user

Domain

Domain name of the log

Related Topics
Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 90410

Downloads: 61

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next