Sample Built-In Memory Diagnosic Tool Process

Here is a sample procedure to use the built-in diagnostic tool.
  1. Use SSH to access the Master AP shell.
  2. Check the debug tool status by default.
    padinfo -u
  3. Query the process pid.
    ps | grep emfd
  4. Enable the emfd process debug.
    padinfo –p 1204 –d enable
  5. Display the memory statistics information as needed.
    padinfo –p 1204 –s all
  6. Move the debug files to a remote server.
    tftp –p –l /var/tmp/mem_diag/mem_event tftpServer
    Note: Use the following command if mem_history_* files existed:
    tftp -p -l /var/tmp/mem_diag/mem_history_* tftpServer 
    

    mem_history_* is the record of memory malloc when customer enables the debug tool.

    For example, if mem_history_0 or mem_history_1 file existed, use the appropriate command accordingly:

    tftp -p -l /var/tmp/mem_diag/mem_history_0 tftpServer
    tftp -p -l /var/tmp/mem_diag/mem_history_1 tftpServer
    
  7. Disable the debug function after the debug is completed.
    padinfo –p 1204 –d disable
  8. Delete the storage directory after the debug function is disabled.
    padinfo –r

All of the built-in memory diagnostic summary files are located in the following AP path: /var/tmp/mem_diag/.

File Names in the Summary File

Name Description
info_file_raw Internal statistic raw data
paduclibcinfo.dat Uclibc information
Mem_history_* Record of pointer actions
mem_event Event message

The following example is a sample summary file (if the debug files are in the AP path):

ruckus$ cd /var/tmp/mem_diag/
ruckus$ 1s -alh
drwxr-xr-x      2 root        root        140 Feb 6 09:04  .
drwxrwxrwt     30 root        root       2.7K Feb 7 02:44  ..
-rw-r--r--      1 root        root       4.9M Feb 6 02:31  mem_event
-rw-r--r--      1 root        root       5.0M Feb 6 02:31  mem_history_0
-rw-r--r--      1 root        root       5.0M Feb 6 06:23  mem_history_1
-rw-r--r--      1 root        root       5.0M Feb 6 09:04  mem_history_2
-rw-r--r--      1 root        root         60 Feb 6 02:31  status