background image
Troubleshooting Commands
213
RCP requires configuration on the RCP server by editing the .rhosts
files, as well as the router configuration. Here is a sample:
Router_A#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
Router_A(config)#exception protocol rcp
Router_A(config)#exception dump 172.16.10.12
Router_A(config)#ip rcmd remote-username kevin
Router_A(config)#ip rcmd rcp-enable
Router_A(config)#ip rcmd rsh-enable
Router_A(config)#ip rcmd remote-host kevin 172.16.10.12
kevin
Router_A(config)#^Z
Router_A#
The commands are mostly the same for the RCP server, as well. The
remote-host
command is configured by providing the local username,
followed by the IP address for the RCP server and the remote username for
the RCP server. This allows the router to log in on the RCP server and com-
mence transferring the core dump.
write core Command
The write core command allows the user to execute a core dump without
crashing the router. It is not advisable to use this command unless it is
requested by Cisco TAC. Because it is copying the contents of memory via
TFTP, it could have an adverse effect on the router. Here is a sample of the
write core
command:
Router_A#write core
Remote host? 172.16.10.10
Name of core file to write [Router_A-core]?
Write file Router_A-core on host 172.16.10.10? [confirm]
Writing Router_A-core !!!!! [OK]
Router_A#
The router output has been truncated in this example. You will see excla-
mation marks until the file is completely transferred. The more memory that
needs to be copied, the longer it will take.
Again, this information will only be useful to Cisco engineers for diagnos-
ing and resolving router problems.
Copyright ©2000 SYBEX , Inc., Alameda, CA
www.sybex.com