copy

Use this command to upload or download an image or a CLI configuration file.

Syntax

copy source destination

Parameters

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.

Defaults

None.

Mode

All command modes.

Usage

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:

  • FTP – File Transfer Protocol
  • TFTP – Trivial File Transfer Protocol
  • SCP – SecureCopy File transfers tunneled through SSH

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)->

Examples

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