Copying System Files - Cisco Catalyst 2000 Configuration Handbook

Catalyst series lan switching
Table of Contents

Advertisement

Permanently remove a file from Class A Flash memory:
3.
(privileged) squeeze filesystem
If you want to permanently remove a file that has been deleted from a Class A file
system, you must squeeze the file system. This command permanently removes any
file on the file system that has been marked as deleted.
Remove a file from Class B Flash memory or NVRAM:
4.
(privileged) delete [flash:/filename | bootflash:/filename | nvram:/filename]
To remove a file on a Class B Flash device, use the delete command. When you
delete a file from a Class B Flash device, it remains in Flash memory and retains the
memory space used. To permanently remove a file from a Class B file system, you
must reformat the file system. Because this removes all files, you should save OS files
and copy them back to memory after you reformat the device:
(privileged) format filesystem:
For Class A and Class C devices, you can also remove all the files and reformat the
device by using the format command.

Copying System Files

Like on most computer systems, it is important to move the files from one location to
another. To move system files, you can use the copy command. This command, along
with path parameters, moves the system files. The results of some file system moves are
unique; for example, when a file is copied into the system:running-configuration file, the
result is a file merge. This section discusses some common copy commands and the
results. On the whole, however, you can move files into file systems that enable you to
write to the system. The command structure for copy commands is copy [/erase] source-
location destination-location. The source location and destination location can be any
writeable file system and path. By using the /erase option, you can always erase the desti-
nation of a writeable file system. The source location can be any file system that contains
files that need to be moved. With all these commands, you can specify the address and
filename, or you can leave them out and the system will prompt you for information.
Save the active configuration file to be used for startup:
1.
(privileged) copy system:running-config nvram:startup-config
This command copies the system's current active configuration into the startup con-
figuration file. When anything is copied into the location nvram:startup-configura-
tion, it is a complete overwrite; that is, any information that was in that file is com-
pletely lost and overwritten with the source file. The startup configuration file is
loaded at startup.
Copy a file into active configuration:
2.
(privileged) copy source system:running-config
Chapter 3: Supervisor Engine Configuration 39

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents