How can I view log information

6


  • 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.

  • Other related questions:
    How to view log information of an AR
    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.

    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 do I view debugging information
    In versions earlier than V200R005C00, run the debugging wlan wcwp display debug-info-record type type-id from start-value to end-value command in the system view. In V200R005C00 and later version, run the display wlan debuginfo type type-id [ from start-value to end-value | value ] command in the diagnostic view.

    How can I view logs on a WLAN device
    Logs generated on a WLAN device are saved in the log buffer. After the number of logs reaches the specified threshold, the logs are saved to the syslogfile or logfile folder in the device's flash memory. A device records user operations in logs, so you can also view the log file to check operations. To view the log buffer and log files on a WLAN device, perform the following operations: - To view the file logs in the logfile folder, run the following commands in the user view: cd logfile //Enter 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(LMT) FileName 0 -ro- 861,301 Apr 15 2015 07:36:41 2015-04-15.07-36-36.dblg.zip 1 -ro- 883,298 Apr 27 2015 21:41:43 2015-04-27.21-41-38.dblg.zip 2 -ro- 1,071,688 Jun 11 2015 20:04:00 2015-06-11.20-03-54.dblg.zip 3 -ro- 826,422 Jun 24 2015 11:57:54 2015-06-24.11-57-49.log.zip 4 -ro- 630,868 Sep 12 2015 04:34:49 2015-09-12.04-34-45.log.zip 5 -rw- 1,392,179 Sep 14 2015 15:41:30 log.dblg 6 -rw- 5,108,562 Sep 14 2015 20:21:54 log.log The xx.dblg.zip file contains all archived logs, and you can open it after decompressing it. The log.dblg file can be displayed in the diagnostic view using the display diag-logfile command, and the log.log file can be displayed using the display logfile command. - To view detailed log information in a log file, run the display logfile logfile/xxxx command. xxxx specifies 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. For more information about logs, visit Huawei Enterprise Product & Service Support to download and view the Log Reference and Alarm Reference of the appropriate product.

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