Technical data

Table Of Contents
217
The
copy
command is used to upload configuration files to the TFTP server where the destination is in the form:
tftp@xxx.xxx.xxx.xxx:filename.ext
Backup Configuration Files (Recommended Procedure)
1. Create a directory under the TFTP root directory corresponding to the system name you want to back up.
2. Create files called SYSTEM.CNF, DHCP.DAT, and FILTER.DAT in this subdirectory. The files can be
empty or not, but should be writeable by everyone.
To backup a copy of configuration files, enter
copy system.cnf tftp@xxx.xxx.xxx.xxx:myname/system.cnf
copy filter.dat tftp@xxx.xxx.xxx.xxx:myname/filter.dat
copy dhcp.dat tftp@xxx.xxx.xxx.xxx:myname/dhcp.dat
where
xxx.xxx.xxx.xxx
is the IP address of the TFTP server and
myname
the router name.
Note:
SYSTEM.CNF, FILTER.DAT, and DHCP.DAT are three key files that should be backed up. To see
other files that you may also want to save, type the command
dir
.
Restore Configuration Files
To restore the configuration files, enter:
copy tftp@xxx.xxx.xxx.xxx:myname/system.cnf system.cnf
copy tftp@xxx.xxx.xxx.xxx:myname/filter.dat filter.dat
copy tftp@xxx.xxx.xxx.xxx:myname/dhcp.dat dhcp.dat
sync
FLASH Memory Recovery Procedures
Recovering Kernels for Routers with Configuration Switches
In the unlikely event that the FLASH file system becomes corrupted, you can take a number of steps to attempt to
recover. Perform the following procedures in the order listed:
1. Try to repair the file system by issuing the
msfs
command. While logged in, issue a
sync
command followed
by an
msfs
command. If the display shows that the file system is corrupted, verify that no other console (via
TELNET) is currently modifying the file system with the
ps
command. Then attempt to repair the file system
typing the following commands:
msfs fix
sync
2. If the file system is still corrupted; i.e., you cannot write a file, you will have to reformat the file system. First,
attempt to save your configuration files as explained in the section Backup and Restore Configuration Files,
page 216. Then, while logged in, enter the following commands: