Accessing core dumps – Brocade Virtual ADX Administration Guide (Supporting ADX v03.1.00) User Manual
Page 56

44
Brocade Virtual ADX Administration Guide
53-1003249-01
Displaying system information
1
When you enter this command, all regular (non-static) sessions on the Brocade Virtual ADX are
deleted. The command removes both active sessions as well as stale sessions in the delete queue.
Syntax: clear server all-session
Accessing core dumps
The Brocade Virtual ADX core dumps are standard Linux core dumps and are not user-readable.
The Brocade Virtual ADX supports a maximum of two MP and two BP core dumps. The MP and BP
core dumps are saved in /opt/ADX/log/core-dump-filename. You can display the location of these
core dumps by using the dm save command on the MP.
You can use GDB commands to analyze core dumps. Before using the GDB commands, turn off the
task manager, IPC, and MP-BP timeout on the Brocade Virtual ADX:
Virtual ADX#set-task-manager-off
Virtual ADX#asm common disable-ipc
Virtual ADX(config)#no-reboot-bp-communication-down
To analyze core dumps, use the following local GDB command in OS mode:
[root@VirtualADX ~]# gunzip /opt/ADX/log/core-mp.gz
[root@VirtualADX ~]# gdb mp /opt/ADX/log/core-mp
[root@VirtualADX ~]# gdb bp /opt/ADX/log/core-bp
Note that scripts for configuring and launching local or remote GDB are saved in /opt/ADX/bin
directory:
[root@VirtADX bin]# ./gdb_local.sh mp
[root@VirtADX bin]# ./gdb_remote.sh bp 0
Syntax: ./gdb_remote.sh {mp|bp} [0-n]
Displaying Buffer manager and packet flow counter
information
In OS mode, you can also display the following debugging information:
•
Buffer pool statistics is the common buffer manager for all components (MP, BP, and drivers)
as displayed by the following command:
[root@VirtualADX ~]# cat /proc/virtadx/bm/bufpool_stats
•
The buffer owner information displays the number of buffers used by each component at any
given point of time and is displayed by the following command:
[root@VirtualADX ~]# cat /proc/virtadx/bm/ref_stats
The queue information of packet flow counters displays information to check the number of
packets going through each queue (RX, Dist, IPC, and TX) and is displayed by the following
command:
[root@VirtualADX ~]# cat /proc/virtadx/ring_stats