This appendix contains the following sections:
What is a core dump?
A MAX TNT core dump is a snapshot of MAX TNT shelf controller or slot card memory. An Ascend representative might ask you to obtain a core dump to help diagnose a problem. To get a core dump from the MAX TNT, you must use the Coredump command on the MAX TNT and the Ascendump utility on a local UNIX workstation. Caution: Do not use core dumps unless specifically requested to by an Ascend
representative.
Before you begin
Before installing and using the Ascendump utility, make sure you:
ftp.ascend.com/pub/Utilities/coredump
).
chmod +x
command to make the file executable.
gzip
on the core dump server and in the root users search path if you want to store core dumps as compressed files. If you specify compressed core dumps (the default), and gzip
is unavailable, the core dumps are stored uncompressed.
The Ascendump daemon
Ascendump has the following syntax:
ascendump [-v -r -c -u -p] [-n email-recipient] [-s slot] [-d directory] [host]
Coredump command
The Coredump command's syntax provides the following valid entries:
coredump
coredump enable | local | remote [server ]
coredump disable
coredump now
coredump trace
hostname-
[
shelf, slot]
-loadname-swversion-YYMMDD-HH:MM.gzwhere:
tnt10.abc.com-1,3-tntmdm56k-1.3Ap22-980101-13:42.gz
When transferring the core-dump files via FTP, use binary mode.
10,000 + (shelf-number *100) + slot-number
For example, for a card on shelf 1, slot 5, the UDP port for the core dump is 10105. For the shelf controller (slot number 17) on shelf 1, the UDP port for the core dump is 10117. Similarly, the shelf controller on shelf 8 uses UDP port 10817.
Examples
This section uses examples to show how to get core dumps from the MAX TNT. Enabling Ascendump
To start the Ascendump daemon, proceed as in the following example:
% ./ascendump -v -u -d /usr/ascendumpsThis example runs the daemon in verbose mode and will write the core dumps in uncompressed format to
/usr/ascendumps
.
admin> coredump local 172.31.4.34
coreDump: Sending arp request...
core dump server is \Q172.31.4.34 ip=[172.31.4.34/16],
mac=[00:60:83:7d:15:8f]
coredump over UDP is enabled locally only with server 172.31.4.34
admin> coredump remoteOnce remote core dumps are enabled on the MAX TNT, an administrator can "pull" a core dump as in the following example:
% ascendump -d /usr/ascendumps tnt10where
/usr/ascendumps
is the directory on the Ascendump server and tnt10
is the name of the MAX TNT from which to get the core dump.
admin> coredump now
tnt10
will write to the Ascendump server when it crashes:
modem-4> coredump remote
% ./ascendump -v -u -s 4 -d /usr/ascendump
admin> coredump disable
coredump over UDP is disabled
coredump
as the responsible user when the master shelf controller resets after a core dump. For example:
OPERATOR RESET: Index: 99 Revision: 1.3Ap8 Shelf 1 (tntsr)
Date: 09/12/1997. Time: 15:52:43
Reset from unknown, user profile coredump.
Troubleshooting core dumps
Take the following steps if you have difficulty setting up the Ascend core dumps:
inetd.conf
, temporarily disable it now,
by commenting out the Ascendump line, then, logged in as root, send the SIGHUP
command to inetd
.
stderr
instead of through Syslog (whose output on most systems goes to /var/adm/messages
).
The only reason to have a debug profile on a card other than the master shelf controller is to override the settings for the master shelf controller. Unless you want to do that, you should define a single debug profile for the master shelf controller and delete all other debug profiles. You can edit Debug profiles by using the Read, Set, and Write commands, or by using the coredump local server
command, where server
is the IP address of the core-dump server.
coredump now
$ ascendump -p -v -d
ascendump: Dumping compressed DRAM image to \Q./tnt10.abc.com-1,11-tnt8t1-1.3Ae0-971022-11:17.gz'
Section \Q.data': dumping 2048 pages from address 0x80000000
.......1 Mb.......2 Mb
gzip
is not installed or not in the user's path. If this is the case, you should download gzip-1.2.4.tar.gz
from any GNU FTP mirror site, then compile and install it, or use the -u
(uncompressed) option in the Ascendump command line.If you still have unexplained failures, run
tcpdump
or snoop
or a packet sniffer on the Ethernet segment attached to the MAX TNT that is in the route to the dump server. Do the same on the Ethernet segment attached to the dump server in the route to the MAX TNT.Ascend Coredump uses UDP, so filter UDP packets. If there's too much UDP traffic, you might want to filter on port-number ranges as well. For information about the UDP port core dump uses, see UDP port numbers.
Proceed to testing more cards by opening CLI channels to them and using the
coredump now
command. Finish by testing Coredump from the master shelf controller.inetd.conf
entry, if present, or add one if necessary. Be sure that the entry points to the same Ascendump binary that you just tested.inetd.conf
entry:
ascendump dgram udp nowait root /usr/local/bin/ascendump ascendump -n dump-notifyThe
-n
dump-notify argument tells Ascendump to send email to the email alias dump-notify
whenever a core dump is captured.
Copyright © 1997, Ascend Communications, Inc. All rights reserved.