Sample Built-In Memory Diagnosic Tool Process
- Use SSH to access the Master AP shell.
- Check the debug tool status by default.
- Query the process pid.
- Enable the emfd process debug.
- Display the memory statistics information as needed.
- Move the debug files to a remote
server.
tftp –p –l /var/tmp/mem_diag/mem_event tftpServer
Note: Use the following command ifmem_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
- Disable the debug function after the debug is completed.
- Delete the storage directory after the debug function is disabled.
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