Use this command to upload or download an image or a CLI configuration file.
source | Specifies location and name of the source file to copy. Options are a local file path (valid directories are the images/ directory, the slotN/ directory, and the slotN/usbN directory), or the URL of an FTP, TFTP, or SCP server. |
destination | Specifies location and name of the destination where the file will be copied. Options are a slot location and file name, or the URL of an FTP, TFTP, or SCP server. |
None.
All command modes.
The S- K- and 7100-Series module to which a configuration file is downloaded must have the same hardware configuration as the S- K- and 7100-Series module from which it was uploaded.
The copy command supports URLs:
For reasons of security, passwords are not allowed in copy command URLs. A password prompt displays upon entering a copy command. For example:
System(rw)->copy slot3/docconfig1 scp://doc@10.21.1.180/docconfig1 Password: ########### System(rw)->
This example shows how to download an image via TFTP:
System(rw)->copy tftp://134.141.89.34/ets-mtxe7-msi newimage
This example shows how to download an image via Anonymous FTP:
System(rw)->copy ftp://134.141.89.34/ets-mtxe7-msi newimage
This example shows how to download an image via FTP with user credentials:
System(rw)->copy ftp://user:passwd@134.141.89.34/ets-mtxe7-msi newimage
This example shows how to download a configuration file via TFTP to the slot 3 directory:
System(rw)->copy tftp://134.141.89.34/myconfig slot3/myconfig
This example shows how to download a configuration file via SCP
System(rw)->copy scp://doc@banshee.extremenetworks.com:22/docconfig1 slot3/docconfig1
This example shows how to upload a configuration file via Anonymous FTP from the module in slot 3:
System(rw)->copy slot3/myconfig ftp://134.141.89.34/myconfig
This example shows how to upload a file using SCP from the module in slot 3 to the server:
System(rw)->copy slot3/myconfig scp//doc@10.21.1.180:/myconfig
This example shows how to copy a configuration file from the slot 3 directory to the slot 5 directory:
System(rw)->copy slot3/myconfig slot5/myconfig