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

Created Apr 24, 2017 08:49:32Latest reply Apr 24, 2017 09:20:11 1052 1 0 0

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 time.log.zip and date time.dblg.zip, for example, 2013-08-14.04-55-23.log.zip and 2013-09-05.05-15-23.dblg.zip.

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.


Example:

<R6_U29_S5720>dir                                                                                                                  

Directory of flash:/logfile/                                                                                                                                                                                                                          

  Idx  Attr     Size(Byte)  Date        Time       FileName                                                                         

    2  -rw-         29,429  Jun 17 2016 02:39:11   2016-06-16.22-39-08.dblg.zip                                                    

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

    5  -rw-        408,919  Jun 17 2016 00:39:17   2016-06-16.22-18-01.dblg.zip                                                    

    6  -rw-        921,090  Aug 11 2016 10:50:21   2016-08-11.10-50-06.dblg.zip                                                     

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


<?xml:namespace prefix = "o" />

 

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 .

  • x
  • convention:

ms.america     Created Apr 24, 2017 09:20:11 Helpful(0) Helpful(0)

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.


Procedure:


<!--[if !supportLists]-->1.     1. Configure the AS as a FTP server by running the following commands:<?xml:namespace prefix = "o" />

[Huawei]uni-mng

[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]uni-mng

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


<!--[if !supportLists]-->3.       <!--[endif]-->After the files are transferred to the parent, you can download them from the flash of the parent to your computer by FTP/TFTP

  • x
  • convention:

Responses

Reply
You need to log in to reply to the post Login | Register

Notice:To ensure the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but not limited to politically sensitive content, content concerning pornography, gambling, drug abuse and trafficking, content that may disclose or infringe upon others' intellectual properties, including commercial secrets, trade marks, copyrights, and patents, and personal privacy. Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see“ Privacy Policy.”
If the attachment button is not available, update the Adobe Flash Player to the latest version!
Fast reply Scroll to top