Using Redundant Management Modules
December 2000
5 - 27
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.
Summary of Contents for Switch and Router
Page 2: ...December 2000 Copyright 2000 by Foundry Networks Inc ...
Page 26: ...Foundry Switch and Router Installation and Configuration Guide xxvi December 2000 ...
Page 64: ...Foundry Switch and Router Installation and Configuration Guide 2 34 December 2000 ...
Page 162: ...Foundry Switch and Router Installation and Configuration Guide 5 38 December 2000 ...
Page 196: ...Foundry Switch and Router Installation and Configuration Guide 6 34 December 2000 ...
Page 208: ...Foundry Switch and Router Installation and Configuration Guide 7 12 December 2000 ...
Page 236: ...Foundry Switch and Router Installation and Configuration Guide 8 28 December 2000 ...
Page 258: ...Foundry Switch and Router Installation and Configuration Guide 9 22 December 2000 ...
Page 420: ...Foundry Switch and Router Installation and Configuration Guide 13 32 December 2000 ...
Page 442: ...Foundry Switch and Router Installation and Configuration Guide 14 22 December 2000 ...
Page 554: ...Foundry Switch and Router Installation and Configuration Guide 15 112 December 2000 ...
Page 574: ...Foundry Switch and Router Installation and Configuration Guide 16 20 December 2000 ...
Page 626: ...Foundry Switch and Router Installation and Configuration Guide 17 52 December 2000 ...
Page 682: ...Foundry Switch and Router Installation and Configuration Guide 18 56 December 2000 ...
Page 826: ...Foundry Switch and Router Installation and Configuration Guide 20 20 December 2000 ...
Page 994: ...Foundry Switch and Router Installation and Configuration Guide 26 10 December 2000 ...
Page 1004: ...Foundry Switch and Router Installation and Configuration Guide B 6 December 2000 ...
Page 1044: ...Foundry Switch and Router Installation and Configuration Guide C 40 December 2000 ...
Page 1048: ...Foundry Switch and Router Installation and Configuration Guide D 4 December 2000 ...
Page 1070: ...Foundry Switch and Router Installation and Configuration Guide Index 18 December 2000 ...