|
|
When a router crashes, it is sometimes useful to obtain a full copy of the memory image (called a core dump) to identify the cause of the crash. Core dumps are generally useful only to your technical support representative.
This appendix describes the exception, write core, and show 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.
To obtain a core dump when a router crashes, use the exception dump ip-address router configuration command (where ip-address is the address of your TFTP server).
Including this command in your configuration causes the router to attempt to make a core dump when it crashes. The core dump is written to a file named hostname-core on your TFTP server, where hostname is the name of the router. You can change the name of the core file by configuring the exception core-file filename command. This procedure can fail for certain types of system crashes. However, if it is successful, the core dump file will be the size of the memory available on the processor (for example, 16 MB for a CSC/4).
If you use TFTP to dump the core file to a server, the router will only dump the first 16 MB of the core file. If the router's memory is larger than 16 MB, the whole core file will not be copied to the server. Therefore, use RCP or FTP to dump the core file.
The following example configures a router to use FTP to dump a core file to the FTP server at 172.17.92.2 when it crashes:
ip ftp username redip ftp password blueexception protocol ftpexception dump 172.17.92.2
During the debugging process, you can cause the router 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. The following is the syntax for the exception memory fragment and exception memory minimum -commands:
[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, a core dump and router reload is generated after 60 seconds. If the exception dump command is not configured, the router reloads without generating a core dump.
The following example configures the router to monitor the free memory. If it falls below 250000 bytes, it dumps the core and reloads:
exception dump 131.108.92.2 exception core-file memory.overrun exception memory minimum 250000
You can test core dumps by using the write core privileged exec command. This command causes the router to generate a core dump without reloading and is useful if the router is malfunctioning but has not crashed.
Depending on your TFTP server, you might need to create an empty target file to which the router can write the core.
When a router fails with an unexpected reload and you report the problem to a technical support representative, always include a copy of the output from the show stacks and show version exec commands. Output from these commands provides the support representative with important information about the state of your router when it failed.
Appendix B, "Memory Maps," provides an example of show stacks output and memory map information that can help you determine whether a system crash was caused by a software or hardware problem.
milou>show version Cisco Internetwork Operating System Software IOS (tm) GS Software (GS7-K-M), Version 11.0(9), RELEASE SOFTWARE (fc1) Copyright (c) 1986-1996 by cisco Systems, Inc. Compiled Tue 11-Jun-96 03:52 by tstevens Image text-base: 0x00001000, data-base: 0x007614F0 ROM: System Bootstrap, Version 5.2(2), RELEASE SOFTWARE ROM: GS Software (GS7), Version 10.2(2), RELEASE SOFTWARE (fc1) milou uptime is 2 days, 20 hours, 26 minutes System restarted by error - Software forced crash, PC 0x1CF82C at 20:25:38 PDT M on Aug 5 1996 System image file is "images/gs7-k-mz.110-9", booted via flash cisco RP1 (68040) processor (revision B0) with 16384K bytes of memory. Processor board ID 00130334 G.703/E1 software, Version 1.0. Bridging software. X.25 software, Version 2.0, NET2, BFE and GOSIP compliant. Primary Rate ISDN software, Version 1.0. 1 Silicon Switch Processor. 1 EIP controller (6 Ethernet). 1 FEIP controller (2 FastEthernet). 1 FIP controller (1 FDDI). 1 MIP controller (2 T1) 6 Ethernet/IEEE 802.3 interfaces. 2 FastEthernet/IEEE 802.3 interfaces. 48 Serial network interfaces. 1 FDDI network interface. 2 Channelized T1/PRI ports. 128K bytes of non-volatile configuration memory. 4096K bytes of flash memory sized on embedded flash. Configuration register is 0x102 milou>
The following formula is used to identify releases of the Cisco IOS software:
A.a (x.y)
Be extremely cautious with any release that has a number following the maintenance release number inside the parentheses (y)---for example, the .5 in parentheses in the version number 10.2(3.5). These numbers indicate that this version of software is an interim build. Interim builds are unit tested, but have not been fully regression tested and should be used only for short-term, urgent point-fix situations until the next maintenance release is available.
![]()
![]()
![]()
![]()
![]()
![]()
![]()
Posted: Tue May 16 15:20:09 PDT 2000
Copyright 1989 - 2000©Cisco Systems Inc.