copy

copy

flash: <srcfilename> {flash: <destfilename> | scp: <scphost> <username> <destfilename> |

tftp: <tftphost> <destfilename>} |

ftp: <ftphost> <user> <filename> system: partition {0|1} |

running-config {flash: <filename> | ftp: <ftphost> <user> <password> <filename>

[<remote-dir>] | startup-config | tftp: <tftphost> <filename>} |

scp: <scphost> <username> <filename> {flash: <destfilename>| system: partition [0|1]}|

startup-config {flash: <filename> | tftp: <tftphost> <filename>} |

system: partition {<srcpartition> 0|1} [<destpartition> 0 | 1] |

tftp: <tftphost> <filename> {flash: <destfilename> | system: partition [0|1]}

Description

This command copies files to and from the controller.

Syntax

Parameter

Description

flash:

Copy the contents of the controller’s flash file system, the system image, to a specified destination.

srcfilename

Full name of the flash file to be copied.

flash:

Copy the file to the flash file system.

destfilename

Specify the new name of the copied file.

tftp:

Copy the file to a TFTP server.

tftphost

Specify the IP address or hostname of the TFTP server.

ftp:

Copy a file from the FTP server.

ftphost

Specify the IP address or hostname of the FTP server.

user

User account name required to access the FTP server.

filename

Full name of the file to be copied.

0 | 1

Specify the system partition to save the file.

running-config

Copy the active, running configuration to a specified destination.

flash:

Copy the configuration to the flash file system.

filename

Specify the new name of the copied configuration file.

ftp:

Using FTP, copy the configuration to an FTP server.

ftphost

Specify the IP address of the FTP server.

user

User account name required to access the FTP server.

password

Password required to access the FTP server.

remote-dir

Specify a remote directory, if needed.

startup-config

Copy the active, running configuration to the start-up configuration.

tftp:

Using TFTP, copy the configuration to a TFTP server

tftphost

Specify the IP address or hostname of the TFTP server.

scp:

Copy an ArubaOS image file or file from the flash file system using the Secure Copy protocol. The SCP server or remote host must support SSH version 2 protocol.

scphost

Specify the IP address of the SCP server or remote host.

username

User account name required to access the SCP server or remote host.

filename

Specify the absolute path of the filename to be copied.

flash:

Copy the file to the flash file system.

destfilename

Specify the new name of the copied file.

system:

Copy the file to the system partition.

startup-config

Copy the startup configuration to a specified flash file or to a TFTP server.

flash:

Copy the file to the flash file system.

filename

Specify the new name of the copied startup configuration file.

tftp:

Using TFTP, copy the startup configuration to a TFTP server

tftphost

Specify the IP address or hostname of the TFTP server.

system:

Copy the specified system partition

srcpartition

Disk partition from which to copy the system data, as either 0 or 1.

destpartition

Disk partition to copy the system data to, as either 0 or 1.

tftp:

Copy a file from the specified TFTP server to either the controller or another destination. This command is typically used when performing a system restoration, or to pull a specified file name into the wms database.

tftphost

Specify the IP address or hostname of the TFTP server.

filename

Full name of the file to be copied.

flash:

Copy the file to the flash file system

destfilename

Specify the new name of the copied file.

system

Copy the file to the system partition.

Usage Guidelines

Use this command to save back-up copies of the configuration file to an FTP or TFTP server, or to load a saved file from an FTP or TFTP server.

Three partitions reside on the file system flash. Totalling 256MB, the three partitions provide space to hold the system image files (in partitions 1 and 2 which are 45MB each) and user files (in partition 3, which is 165MB). System software runs on the system partitions; the database, DHCP, startup configuration, and logs are positioned on the user partition.

To restore a database, copy the database from the network server and import the database.

To restore a configuration file, copy the file from network server to the controller’s flash system then copy the file from the flash system to the system configuration. This ensures that you do not accidentally overwrite your system startup configuration file.

Example

The following commands copy the configuration file named engineering from the TFTP server to the controller’s flash file system and then uses that file as the startup configuration. This example assumes the startup configuration file is named default.cfg:

(host) (config) #copy tftp: 192.0.2.0 engineering flash: default.bak

copy flash: default.bak flash: default.cfg

Command History

This command was introduced in ArubaOS 1.0.

Command Information

Platforms

Licensing

Command Mode

All platforms

Base operating system

Enable and Config modes on master controllers