The fundamental function of the copy command allows you to copy a file (such as a system image or configuration file) from one location to another location. The source and destination for the file can be a local disk location or a remote file location. The file system being used for the remote system dictates the syntax used in the command.
You can enter on the command line all the necessary source and destination information and the username and password to use; or, you can enter the copy command and have ANM Virtual Appliance prompt you for any missing information.
Timesaver Aliases reduce the amount of typing that you need to do. For example, type copy run start (the abbreviated form of the copy running-config startup-config command).
The entire copying process might take several minutes and differs from protocol to protocol and from network to network.
Use the filename relative to the directory for file transfers.
Descriptions of the running and startup configurations are as follows:
- Running Configuration—The ANM active configuration is stored in RAM. Every configuration command you enter resides in the running configuration. If you reboot your ANM Virtual Appliance, you lose the configuration. If you make changes that you want to save, you must copy the running configuration to a safe location, such as a network server, or save it as the startup configuration.
- Startup Configuration—You cannot edit a startup configuration directly. All commands that you enter store themselves in the running configuration, which you can copy into the startup configuration.
In other words, when you boot an ANM Virtual Appliance, the startup configuration becomes the initial running configuration. As you modify the configuration, the two diverge:
– The startup configuration remains the same.
– The running configuration reflects the changes that you have made.
If you want to make your changes permanent, you must copy the running configuration to the startup configuration.
The following command lines show some of the copy command scenarios available:
- copy running-configuration startup-configuration
Copies the running configuration to the startup configuration. Replaces the startup-configuration with the running configuration.
Note If you do not save the running configuration, you will lose all your configuration changes during the next reboot of ANM Virtual Appliance. Once you are satisfied that the current configuration is correct, copy your configuration to the startup configuration with the preceding command.
- copy startup-configuration running-configuration
Copies the startup configuration to the running configuration. Merges the startup configuration on top of the running configuration.
- copy protocol :// hostname / location startup-configuration
Copies but does not merge a remote file to the startup configuration.
- copy protocol :// hostname / location running-configuration
Copies and merges a remote file to the running configuration.
- copy startup-configuration protocol :// hostname / location
Copies the startup configuration to a remote system.
- copy running-configuration protocol :// hostname / location
Copies the running configuration to a remote system.
- copy logs protocol :// hostname / location
Copies log files from the system to another location.
- copy ftp - copy <source path>/filename <destination_path>
Example: svr-dkn-218-anm-1/admin# copy disk:test-history.tgz ftp://172.16.91.158/
NotePlease remember filename should not be mentioned at the end of the command.(In the destination side)
NoteThecopy command is supported only for the local disk and not for a repository.