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


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


FAQ---How to obtain the log files from an AS in a SVF implementation

Publication Date:  2016-08-11 Views:  3658 Downloads:  0

Issue Description

The switch system periodically saves the information from the log buffer to a user log file (log.log) and a diagnostic log file (log.dblg), which are saved in the logfile folder. When the two log files exceed the specified size, the system compresses them into zip packages and names the compressed files date and date, for example, and

When a device is encountering a failure an important practice is to collect the logs and alarms which can help us know what happened during device operation and where the fault occurred.



Directory of flash:/logfile/                                                                                                                                                                                                                          

  Idx  Attr     Size(Byte)  Date        Time       FileName                                                                         

    2  -rw-         29,429  Jun 17 2016 02:39:11                                                    

    4  -rw-      6,339,752  Aug 10 2016 14:20:02   log.log                                                                          

    5  -rw-        408,919  Jun 17 2016 00:39:17                                                    

    6  -rw-        921,090  Aug 11 2016 10:50:21                                                     

   10  -rw-         33,508  Aug 11 2016 10:50:22   log.dblg


In a SVF system, the log information collected from the parent might not be sufficient to identify problems that appear on the AS and we would need to also obtain these logs from the AS itself in order to find the root cause of the issue .


How to collect the logs from the AS ?

To download the log files from an AS, we would first need to transfer the logs from the AS to the parent device by FTP and then download them to our computer.


1.     1. Configure the AS as a FTP server by running the following commands:


[Huawei-um]upgrade local-ftp-server username xxx password xxx

2. Log into the AS from the parent device remotely by running the attach as command from the uni-mng view:


[Huawei-um]attach as name as-name

Info: Connecting to the remote AS now. Use the quit command to return to the user view.

3. After you are logged in the AS, establish a FTP connection with the parent by running the

ftp  xx.xx.xx.xx  command  //where xx.xx.xx.xx is the ip address of the parent and then transfer the flash:/logfile/log.log and flash:/logfile/log.dblg to the parent by ftp.

3.       After the files are transferred to the parent, you can download them from the flash of the parent to your computer by FTP/TFTP