background image
212
Chapter 4
Cisco's Diagnostic Commands
There are two general methods for capturing the information contained in
memory. In the first method, a router is configured to execute a core dump
when the router crashes. The second method is to use a user privileged exec
command from the command line.
exception Command
The exception command allows you to configure a router to execute a core
dump if the router crashes. An integral part of the exception command is
the TFTP, FTP, or RCP server. Here is a sample configuration:
Router_A#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
Router_A(config)#exception dump 172.16.10.10
Router_A(config)#^Z
Router_A#
The IP address in the command is the IP address of the TFTP, FTP, or RCP
server. The router needs this address so it knows where to download the core
dump. It uses any of the three protocols mentioned before.
Configuration varies, depending on which type of server is used. TFTP does
not require any additional configuration than the example previously shown.
FTP and RCP require additional commands in order to support the file
transfer. Here is an example:
Router_A#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
Router_A(config)#exception dump 172.16.10.11
Router_A(config)#ip ftp username kevin
Router_A(config)#ip ftp password aloha
Router_A(config)#ip ftp source-interface e0
Router_A(config)#exception protocol ftp
Router_A(config)#^Z
Router_A#
Because FTP servers require some type of username and password com-
bination to allow access to the file system, they must be specified on the
router. You can map the FTP server to the exiting interface on the router by
using the source-interface command. This is just like a static route. If the
route table did not have the route in its table, it would still know how to get
to the FTP server. You must also specify which protocol is going to be used.
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com