Appending A File To Another File; Copying Files - Foundry Networks Switch and Router Installation And Configuration Manual

Switch and router
Table of Contents

Advertisement

Appending a File to Another File

You can append a file on a PCMCIA flash card to the end of another file. To append one file to another one, enter
a command such as the following:
BigIron# append newacls.cfg startup-config.cfg
This command appends a file called "newacls.cfg" to the end of a file called "startup-config.cfg" file. This example
assumes that both files are present on the PCMCIA slot and in the subdirectory level that currently have the
management focus.
The following command appends a file in the current subdirectory to the end of a file in another subdirectory:
BigIron# append newacls.cfg \TEST\startup-config.cfg
Syntax: append [<from-card> <to-card>] [\<from-dir-path>\]<from-name> [\<to-dir-path>\]<to-name>
The <from-card> and <to-card> parameters specify the source and destination flash cards when you are
appending a file on one flash card to a file located on another flash card.
The [\<from-dir-path>\]<from-name> parameter specifies the file you are adding to the end of another file. If the
file is not located in the current subdirectory (the subdirectory that currently has the management focus), specify
the subdirectory path in front of the file name.
The [\<to-dir-path>\]<to-name> parameter specifies the file to which you are appending the other file. If the file is
not located in the current subdirectory, specify the subdirectory path in front of the file name.

Copying Files

You can perform the following copy operations involving flash cards:
Copy files from one flash card to the other.
Copy files between a flash card and the device's flash memory.
Copy files between a flash card and a TFTP server.
Copy a startup-config file between a flash card and the device's flash memory.
Copy the running-config file to a flash card
Load a running-config file from a flash card into the device's running configuration (for loading ACLs only)
Copy a POS image file from a flash card to a POS module's flash memory
NOTE: The copy options require you to explicitly specify the flash card. Therefore, you can perform a copy
regardless of the flash card that currently has the management focus.
For convenience, the CLI provides two forms of each copy command. One form begins with copy and the other
form begins with ncopy. The commands also differ in the order you specify the parameters.
In the copy commands, you specify the device you are copying from, the device you are copying to, and then
additional parameters if applicable. The additional parameters can include information such as the source file
name and the new file name. For example, to copy a file from a flash card to flash memory, enter the following
copy command: copy slot1 | slot2 flash <from-name> primary | secondary
In the ncopy commands, you specify all the source information, then all the destination information. For
example, to copy a file from a flash card to flash memory, enter the following ncopy command: ncopy slot 1
| slot2 <from-name> flash primary | secondary
The two forms of a copy command provide the same function. Use the form you are more comfortable with. The
following sections provide examples using the copy forms and list the complete command syntax for both forms.
Copying Files from One Flash Card to the Other
Use the following methods to copy files from one flash card to the other.
December 2000
Using Redundant Management Modules
5 - 27

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents