We have relaunched: What's new at ZDNet Asia?

Configure Cisco routers to save core dumps

Summary

David Davis tells you what you need to know about saving core dump information from your Cisco router in the event of a router crash.

Events

Microsoft MSDN/Developer Event
25 Mar 2010

One Marina Boulevard, Microsoft Singapore

IT Architect Regional Conference Singapore 2010
20 - 21 Apr 2010

Singapore Management University, Singapore

The Internet Show 2010
21-22 Apr 2010

Suntec Singapore

No one wants it to happen, but sooner or later, you will experience a router crash.

When you do, you will want to be prepared to save that critical router memory information in order to find out why the router crashed and prevent future crashes. To do this, you need to configure your router to store core dump information in the event of a crash.

Let's find out what a core dump is, how it can help you, and how you can configure your router to store these important files for analysis.

What is a core dump?
A core dump is simply a full copy of your router's memory image. When your router has a system crash or unrecoverable error, it cannot continue, so it dumps all its memory and writes the memory contents to a server before it reloads.

It is very important that you retain a copy of the dump to help identify possible causes for the crash. While the core dump isn't readable by you, it is readable and useful to Cisco's Technical Assistance Center (TAC). When you experience a router crash, you open a TAC case with personnel who are trained to read this output.

Keep in mind that the core dump needs to be saved by the router at the time of the crash. A core dump cannot be taken after the crash has happened and the router has rebooted.

Important troubleshooting commands when a router crashes
Before I show you how to configure core dumps, let's look at a few other commands that are important to troubleshooting router crashes:

  • show version: This command shows such things as the configuration of the router hardware, IOS software image version, memory, and interfaces that are available. Perhaps only a piece of hardware failed. This information could also help you see what version of code is running on your router and how much memory and flash is available.
  • show stacks: This is another extremely helpful command that is used to monitor the stack usage of processes and interrupt routines. This command will show information such as a bus error or a software-forced crash.
  • show context: This command stores information like the reason for the system reboot and stack trace information.

Besides a core dump, the Cisco TAC will likely ask you for the output of the show tech-support command. That command lists every configuration, statistic, and log on your router.

To get additional information on these commands, please see the Cisco documentation "Troubleshooting Router Crashes".

How do you configure the Cisco IOS to save core dumps?
The Cisco IOS can store or transfer a core dump file using four different methods. They are:

  • File Transfer Protocol (FTP)
  • Remote Copy Protocol (RCP)
  • Trivial Transfer Protocol (TFTP)
  • Flash Disk (stored on the router, not transferred over the network)

The recommended method is through File Transfer Protocol (FTP) so that is what I will offer the configuration for. By the way, whether you use FTP, RCP, or any of the other ways mentioned above, be sure each protocol is working correctly before creating the dump. In other words, test a transfer of some kind using that method.

For example, you could test FTP by copying the router's configuration to the same FTP server that the core config will go to:

Router# copy running-config ftp

To manually create a dump without a reload, type the following command in privileged exec mode:

Router# write core

This command is useful in case the router is just malfunctioning but not crashing. Please realize that it dumps the whole memory, not just what is in use, so be sure and have enough memory to accept it. Also, I do not recommend doing this on a production router while it's in use.

Here are the commands to use for a core dump using FTP:

  • ip ftp username username: Configures the username for FTP connections.
  • ip ftp password password: Configures the password for the FTP connection.
  • exception protocol ftp: Configures the protocol used for core dump FTP.
  • exception region-size 65536: Configures the region size.
  • exception dump ip-address: Configures the IP address of the server to which the router sends the core dump in case of a crash.

Cisco recommends that you connect the router directly to the FTP server, with no intermediate hops.

The debug sanity command is also a good command to use for debugging memory corruption, especially I/O memory. You will probably use this while working with your Cisco Tech representative. Let's look at a snippet output of a show version command after a core dump. Please notice the error at the bottom of the output.

Router# show version 
Cisco Internetwork Operating System Software
IOS (tm) RSP Software (RSP-PV-M), Version 12.0(10.6)ST, EARLY DEPLOYMENT
MAINTENANCE INTERIM SOFTWARE
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Fri 23-Jun-00 16:02 by richv
Image text-base: 0x60010908, data-base: 0x60D96000

ROM: System Bootstrap, Version 12.0(19990806:174725), DEVELOPMENT SOFTWARE
BOOTFLASH: RSP Software (RSP-BOOT-M), Version 12.0(9)S, EARLY DEPLOYMENT
RELEASE SOFTWARE (fc1)

Router uptime is 20 hours, 56 minutes
System returned to ROM by error - a Software forced crash, PC 0x60287EE8
System image file is "slot0:rsp-pv-mz.120-10.6.ST"

Another file that would be useful to you in the event of a crash is the crashinfo file. It's stored in bootflash or flash memory. For more details on crashinfo, see the Cisco documentation "Retrieving Information from the Crashinfo File".

Conclusion
It is important that core dump configuration is put on each router so that you can capture the core dump if your router ever crashes. Once the router has been rebooted, if not saved, the crashed core dump cannot be retrieved. By doing this, hopefully you can use that core dump file, with the help of the Cisco TAC, to solve your router crashing issue the first time that it happens.

To learn more about creating core dumps and troubleshooting router crashes, please see the Cisco articles "Creating Core Dumps" and "Troubleshooting Router Crashes".

David Davis has worked in the IT industry for 15+ years and holds several certifications, including CCIE, CCNA, CCNP, MCSE, CISSP and VCP. He has authored hundreds of articles and numerous IT training videos. Today, he is the director of infrastructure at Train Signal.com. Train Signal, Inc. is a global leader in video training for IT professionals and end users./i>

Talkback

Add your opinion

In order to post a comment, you need to be registered. (Sign In or register below)

Post your comment

ZDNet Asia Live

whatever little understanding I have we 'll only progress toward end of the world if we use HPCs to lenthen life of human being. Huma...

3 hours 27 minutes ago by abhi32002@gmail.com on High computing promises elixir of life

Thanks for the knowledgeable article on SDDs. Allas...when all this reasearch will happen in Indian Universities. Hope the new bill on Fo...

3 hours 39 minutes ago by abhi32002@gmail.com on APAC HPC users eye solid-state drives

It was a good article. This brings a good opportunity for Indian IT firms to come up with new solutions in this field. HPC can become a b...

3 hours 58 minutes ago by abhi32002@gmail.com on High computing most-wanted job in Asia

COL KR DHARMADHIKARY(RETD) its very late to reply the link, but if it is still alive and looking for opportunity, i would like to know th...

7 hours 55 minutes ago by deb021280 on Education takes off in rural India, helped by PCs

It was just a matter of time until google was marginalised anyway. I'm afraid this will be forgotten in China very quickly. Still, it...

10 hours 36044 seconds ago by robinsmith on Report: Google to leave China on April 10

High performance computing (HPC) most-wanted job in Asia http://bit.ly/9vFC3i (via @zdnetasia) #singapore

He doesn't care if her shoes are of glass, All he wants to see is a huge rack and nice a*s. Sleeping beauty's not awoken by true ...

10 hours 29 minutes ago by warlowdavies on One pair of 3D glasses to rule them all

RT @zdnetasia: EMC COO, Pat Gelsinger, on bridging gaps in the organization and its cloud ambitions in Asia. (cont) http://tl.gd/i5jjd

EMC COO, Pat Gelsinger, on bridging gaps in the organization and its cloud ambitions in Asia. http://bit.ly/9etOZW

Spoke to EMC COO, Pat Gelsinger, earlier, and here's the account of the interview: http://bit.ly/9etOZW

11 hours 11 minutes ago by kevinzdnetasia on topsy

Asian SMBs need to pay more attention to disaster recovery planning http://bit.ly/bDet08 via @zdnetasia

Asian SMBs need to pay more attention to disaster recovery planning http://bit.ly/bDet08

Experts: social media guidelines good for upcoming Youth Olympic Games, but focus on cooperation, not enforcement. http://bit.ly/d9M0BQ

11 hours 43 minutes ago by zdnetasia on topsy

Asian SMBs need to pay more attention to disaster recovery planning http://bit.ly/bDet08

11 hours 44 minutes ago by kevinzdnetasia on topsy

ZDNet Asia features IBM collaboration roadmap story from LCTY Singapore - http://bit.ly/9CuSbZ #lotusknows

12 hours 38 minutes ago by lotusknows on topsy

[TECH] URL Shorteners slow Web redirection. - http://bit.ly/bySnWK @zdnetasia

URL shorteners are great but they can slow web redirection & you pray it would never go down http://bit.ly/bySnWK via @zdnetasia

Temasek Holdings eyeing tech stocks, indicating optimistic outlook on IT sector. http://bit.ly/aM7VwU

URL shorteners slow Web redirection. http://bit.ly/bySnWK

Chinese agencies cry foul over Google. http://bit.ly/by6rwV

Philippine antipiracy drive focuses on enterprises. http://bit.ly/aWryDC

Gartner: China to become world's fastest-growing enterprise software market. http://bit.ly/bqJTtb

all of sg's isps have been practising compulsory invisible proxy for all home subscribers at their backend since many years back alre...

1 day 39 minutes ago by melvinchia on Web filters mean bad news for business

it is not to good for china.
Proactol

1 day 24 minutes ago by nathonastle on Chinese ad partners beg Google for information

RT @zdnetasia: HP touts new products and management and productivity tools to address business computing pain points. http://bit.ly/dudgA6

For those with a computer science background, or interested in the high performance computing scene: http://bit.ly/9vFC3i

HP touts new products and management and productivity tools to address business computing pain points. http://bit.ly/dudgA6

Very good explanation of JMX

2 days 29 minutes ago by Babith B on Managing applications with JMX

The reaction to a report issued Tuesday by Flurry Analytics managed to completely overlook some interesting news--the Android-based Motorola Droid outsold the original iPhone over the same period of time following their respective launches--to focus instead on the sales numbers for the Nexus One.

2 days 33 minutes ago by lonemavericks on diggs

Another ZTE story....

2 days 34 minutes ago by Moderate Your Greed on Philippines opens bid for final 3G license

We at www.fifosys.com have also seen a growth in IT outsourcing and anticipate it as a growing field.

2 days 8 minutes ago by sarah Jane on Companies' outsourcing spend to increase

I agree with you. The iSiVaL is super portable and TVs can't expand their image size. I recorded a video that might bring some ideas to...

3 days 38 minutes ago by Jesse B Andersen on Buying a projector? Try an LED TV instead

hermm... he deserved it.. he shud not talk abt sensitive things like tat, well, he shud think twice before saying all those things, event...

3 days 16 minutes ago by ... on Facebook user charged in Malaysia

Password manager tools are potential security threat. Criminals who hack into the computer can use the password manager to log onto any s...

3 days 16 minutes ago by ohanae on What defaults should random password generators use?

I've found the cross platform utility unetbootin to be rather handy for this kind of thing as well.

3 days 51 minutes ago by Jim on Use Live USB Creator to install Fedora 12 from a USB stick