cc/td/doc/product/atm/ls1010s/wa4/12_0_2
hometocprevnextglossaryfeedbacksearchhelp
PDF

Table of Contents

Creating a Core Dump

Creating a Core Dump

If the ATM switch fails, it is sometimes useful to obtain a full copy of the memory image, called a core dump, to identify the cause. Core dumps are generally only useful to your technical support representative.

Caution Use the commands discussed in this appendix only under the direction of a technical support representative. Creating a core dump while the switch is functioning in a network can disrupt network operation. The resulting binary file, which is very large, must be transferred to a Trivial File Transfer Protocol (TFTP), File Transfer Protocol (FTP), or remote copy (rcp) server and subsequently interpreted by technical personnel who have access to source code and detailed memory maps.

Using exception Commands

Use the exception class of configuration commands only after consulting with a technical support representative. These commands are useful for debugging purposes, but they can result in unexpected behavior.

Create a Core Dump

To obtain a core dump when a switch fails, use the exception dump ip-address switch configuration command (where ip-address is the address of your TFTP server).

If you include this command in your configuration, the switch attempts a core dump when it crashes. The core dump is written to a file named hostname-core on your server, where hostname is the name of the switch. You can change the name of the core file by configuring the exception core-file  filename command.

The default protocol used for transferring the core dump is TFTP. However, TFTP transfers only 16 MB of the core dump file. If the switch memory is over 16 MB, only the first 16 MB will be transferred. In order to transfer the whole core dump, configure the switch to use rcp or FTP for core dumps with the exception protocol command.

The following example configures a switch to use rcp to dump the core file when it crashes:

ip rcmd remote-username red
exception protocol rcp
exception dump 172.17.92.2
 

The following example configures a switch to use FTP to dump the core file when it crashes:

ip ftp username red
ip ftp password blue
exception protocol ftp
exception dump 172.17.92.2

Note The remote machine must be configured to allow the switch to write to it. For example, if you are using rcp with a UNIX system, the .rhosts file for the remote user must contain an entry for the switch. Refer to the documentation for your FTP or rcp server for details.

This procedure can fail for certain types of system crashes. However, if successful, the core dump file will be the size of the memory available on the processor.

Create an Exception Memory Core Dump

During the debugging process, you can cause the switch to create a core dump and reboot when certain memory size parameters are violated. The exception memory commands define a minimum contiguous block of memory in the free pool and a minimum size for the free memory pool.

[no] exception memory fragment size
[no]
exception memory minimum size

The value of size is in bytes and is checked every 60  seconds. If you enter a size that is greater than the free memory and the exception dump command has been configured, the switch creates a core dump and reloads the Cisco IOS software after 60  seconds. If the exception dump command is not configured, the switch reloads without generating a core dump.

The following example configures the switch to monitor the free memory. If the free memory falls below 250,000  bytes, the switch will dump the core and reload.

exception dump 131.108.92.2
exception core-file memory.overrun
exception memory minimum 250000

Using the write core Command

You can create test core dumps by using the write core privileged EXEC command. If you use this command, the switch generates a core dump without reloading, which is useful if the switch is malfunctioning but has not crashed.

Caution Use the write core command only under the direction of a technical support representative. Creating a core dump while the switch is functioning in a network can disrupt network operation. The resulting binary file, which is very large, must be transferred to a TFTP, FTP, or rcp server and subsequently interpreted by technical personnel who have access to source code and detailed memory maps.

Depending on your TFTP server, you might need to create an empty target file to which the switch can write the core.


hometocprevnextglossaryfeedbacksearchhelp

Copyright 1989-1999©Cisco Systems Inc.