How to view log information of an AR

71

Log information of an AR is stored in the log buffer first. When the log buffer is full, the system automatically saves log information in the log buffer to a storage medium of the AR. The log file is automatically generated by the system, with the file name extension *.log or *.dblg.
1. The following describes how to view a log file and log buffer using commands.
- To check the log file name, run the dir command in the user view.
 <Huawei>dir /all                                                        
Directory of flash:/                                                            
                                                                                
  Idx  Attr     Size(Byte)  Date        Time(LMT)  FileName                     
    0  -rw-        516,885  Feb 14 2009 02:13:14   2009-02-14.02-13-00.dblg.zip
    1  -rw-        479,440  Jan 17 2009 04:10:43   2009-01-17.04-10-30.dblg.zip
    2  -rw-        484,459  Jan 25 2009 19:35:59   2009-01-25.19-35-45.dblg.zip
    3  -rw-        160,660  Mar 17 2009 14:27:58   2009-03-17.12-27-52.dblg.zip  
     
- To view log information saved in the log file, run the following command:display logfile file-name //file-name indicates the name of a log file.
  
- To view log information in the log buffer, run the following command:display logbuffer

2. To view a log file and log buffer in the web management system, perform the following operations:
Log in to the web management system, choose System Management > Log Management, and you can view and operate logs.

Other related questions:
How to view logs and alarms on S series switches
For S series switches (except the S1700), logs are stored first in the log buffer. When the number of logs reaches the threshold, they will be stored in the syslogfile or logfile folder of the storage card on the device. To view log files and the log buffer, run the following commands: - To view log files in the logfile folder, run the following commands in the user view: cd logfile//Access the root directory of the logfile folder dir//Display all files in the root directory Directory of flash:/logfile/ Idx Attr Size(Byte) Date Time FileName 0 -rw- 516,885 Feb 14 2009 02:13:14 2009-02-14.02-13-00.dblg.zip 1 -rw- 479,440 Jan 17 2009 04:10:43 2009-01-17.04-10-30.dblg.zip 2 -rw- 484,459 Jan 25 2009 19:35:59 2009-01-25.19-35-45.dblg.zip 3 -rw- 160,660 Mar 17 2009 14:27:58 2009-03-17.12-27-52.dblg.zip - To check the detailed logs in the log files, run the display logfile logfile/xxxx command, in which xxxx indicates the log file name. - To view logs in the log buffer, run the display logbuffer command. - To view logs in the trap buffer, run the display trapbuffer command. - To view the uncleared alarms after the device starts, run the display alarm active command. - To view historical alarms recorded after the device starts, run the display alarm history command. - To view alarms related to device hardware management, run the display alarm urgent [ slot slot-id | time interval ] command. This command applies only to S series fixed switches. For the meaning of logs, you can log in to Huawei Enterprise Product & Service Support , download the appropriate Log Reference and Alarms Handling documents, and find the meaning for specific logs.

How can I view log information
  • Run the display logbuffer command to view log information in the log buffer.

  • Run the display logfile command to view log information in the log files.


  • How to record information of remote login
    By default, the lowest severity of output logs and user logs are 4 and 5, respectively. Therefore, information of remote login is not displayed. In the system view, you can run the info-center source default channel logbuffer log level notification command to set the severity of output logs to 5 (notification). In this way, you can view information of remote login through logs.

    How to view login information on the AR router
    You can run the display users command to check login information on each user interface. The login information including user names and IP address and user authorization information is displayed. Example: [Huawei] display users User-Intf Delay Type Network Address AuthenStatus AuthorcmdFlag 129 VTY 0 00:00:00 TEL 10.164.6.10 pass Username : user1 + 130 VTY 1 00:00:00 TEL 10.164.6.15 pass Username : user2

    How to configure an AR to send log information to the log host
    For details about how to configure an AR to send log information to the log host, see Example for Outputting Log Information to a Log Host.

    If you have more questions, you can seek help from following ways:
    To iKnow To Live Chat
    Scroll to top