copy

Use the M4500 copy command to upload and download files, manage active and backup images, and save the running, startup, and backup configurations.

This command uploads and downloads files to and from the switch. You can also use the copy command to manage the dual images (active and backup) on the file system. Local URLs can be specified using FTP, TFTP. SFTP and SCP are available as additional transfer methods if the software package supports secure management. If FTP is used, a password is required.

copy source <url>

This command uploads files from the switch. The parameter url can be specified using FTP, TFTP, SCP, or SFTP. If FTP is used, a password is required.

Format copy source <url>
Mode Privileged EXEC
Parameter Definition
url Uploads file using {tftp://<ipaddress|ipv6address[%scopeid]|hostname>/<filepath>/<filename>| ftp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename>| scp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename> | sftp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename>}.
Source Parameter Definition
application <sourcefilename> Uploads sourcefilename application file
backup-config Uploads Backup Config file.
clibanner Uploads Pre-login Banner file.
core-dump Uploads the core dump file.
cpu-pkt-capture Uploads CPU packets capture file
crash-log Uploads Crashlog file
errorlog Uploads Errorlog file.
fastpath.cfg Uploads Binary Config file.
log Uploads Log file.
operational-log Uploads Operational Log file.
running-config Copies system config file.
script <sourcefilename> Uploads sourcefilename Configuration Script file.
startup-config Uploads Startup Config file.
startup-log Uploads Startup Log file.
tech-support Uploads Tech Support file.
traplog Uploads Trap log file.

copy <url> destination

This command downloads files to the switch. The parameter url can be specified using FTP, TFTP, SCP, or SFTP. If FTP, SCP, or SFTP are used, a password is required

Format copy <url> destination
Mode Privileged EXEC
Parameter Definition
url Downloads file using {tftp://<ipaddress|ipv6address[%scopeid]|hostname>/<filepath>/<filename>| ftp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename>| scp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename> | sftp://<user>@<ipaddr|ipv6address[%scopeid]|hostname>/<path>/<filename>}
Destination Parameter Definition
application <destfilename> Downloads the application file as destfilename file name.
backup-config Downloads the Backup Config file.
clibanner Downloads the Pre-login Banner file.
openflow-ssl-ca-cert Downloads the OpenFlow CA certificate file.
openflow-ssl-cert Downloads the OpenFlow switch certificate file.
openflow-ssl-priv-key Downloads the OpenFlow private key file.
publickey-config Downloads the Public Key for Config Script validation.
publickey-image Downloads the Public Key for image.
script <destfilename> Downloads the Configuration Script file as destfilename file name.
sshkey-dsa Downloads the SSH DSA Key file.
sshkey-rsa2 Downloads the SSH RSA2 Key file.
sshkey-user-public-key {dsa | rsa} Downloads the SSH user Public Key file for the current user. It supports the DSA or RSA Key file of the OpenSSH key format.
sslpem-root Downloads the SSL root certificate file for the SSL feature of the RESTFul API. If both the root certificate and the server key exist, two keys are merged as an ssl.pem file.
sslpem-server Download the SSL server key file for the SSL feature of the RESTFul API. If both the root certificate and the server key exist, the two keys are merged as an ssl.pem file.
startup-config Downloads the Config file as the startup configuration file.

Example: The following shows an example of downloading and applying as users file.

CODE
(M4500-32C) #
copy tftp://172.20.0.1/id_dsa.pub sshkey-user-public-key dsa
Mode........................................... TFTP
Set Server IP.................................. 172.20.0.1
Path........................................... ./
Filename....................................... id_dsa.pub
Data Type...................................... SSH User Public DSA key

Management access will be blocked for the duration of the transfer
Are you sure you want to start? (y/n) y

File transfer in progress. Management access will be blocked for the
duration of the transfer. please wait...

User Public Key transfer completely and update key successfully.

copy running-config

This command saves the running configuration to NVRAM.

Format copy running-config {startup-config | url}
Mode Privileged EXEC

copy {startup-config backup-config | backup-config startup-config}

This command manages the dual configurations (startup and backup) on the file system. You can copy startup

configuration file to backup or copy backup configuration file to startup.

Format copy {startup-config {backup-config | <url>} | backup-config {startup-config | <url>}}
Mode Privileged EXEC