You are here: Home > CLI Commands > Just_CLI_Topics > copy

copy

copy

 

flash: <srcfilename> {flash: <destfilename>|ftp: <ftphost> <user> [<remote-dir>][<destfilename>]|scp: <scphost> <username> <destfilename>|tftp: <tftphost> <destfilename>|usb: partition {0|1} <destfilename>}

 

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

 

running-config {flash: <filename>|ftp: <ftphost> <user> <filename> [<remote-dir>]|tftp: <tftphost> <filename>}

 

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

 

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

 

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

 

usb: partition <part> <usbfilename> {flash: <flashfilename>|system: partition {0|1}}

 

copy-provisioning-params

Description

This command copies files to and from the managed device.

Syntax

Parameter

Description

flash: <srcfilename>

Copies the contents of the managed device’s flash file system, the system image, to a specified destination.

flash:

Copies the file to the flash file system.

<destfilename>

New name of the copied file.

ftp:

Copies the file to the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network.  file system.

<ftphost>

IPv4 or IPv6 address of the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network.  server.

<user>

Name of the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network.  user.

<remote-dir>

Name of the remote directory.

<destfilename>

New name of the copied file.

scp:

Copies the file to the SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. file system.

<scphost>

IPv4 or IPv6 address of the remote SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. host.

<username>

Username for secure login.

<destfilename>

New name of the copied file.

tftp:

Copies the file to a TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server.

<tftphost>

IP address of the TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server.

<destfilename>

New name of the copied file.

usb:

Copies the file to an attached USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices. storage device.

partition

Specifies the partition on the USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices.  device (0.1).

<destfilename>

New name of the copied file.

ftp:

Copies a file from the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<ftphost>

IPv4 or IPv6 address or hostname of the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<user>

User account name required to access the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<filename>

Full name of the file to be copied.

partition

Specifies the system partition to save the file (0,1).

running-config

Copies the active or running configuration to a specified destination.

flash:

Copies the configuration to the flash file system.

<filename>

New name of the copied configuration file.

ftp:

Copies the configuration to an FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<ftphost>

IP address of the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<user>

User account name required to access the FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. server.

<filename>

New name of the copied configuration file.

<remote-dir>

Specifies a remote directory, if needed.

startup-config

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

tftp:

Using TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. , copy the configuration to a TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server

<tftphost>

Specifies the IP address or hostname of the TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server.

<filename>

New name of the copied configuration file.

scp:

Copies an ArubaOS image file or file from the flash file system using the Secure Copy protocol. The SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. server or remote host must support SSHSecure Shell. SSH is a network protocol that provides secure access to a remote device. version 2 protocol.

<scphost>

IPv4 or IPv6 address of the SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. server or remote host.

<username>

User account name required to access the SCPSecure Copy Protocol. SCP is a network protocol that supports file transfers between hosts on a network. server or remote host.

<filename>

Absolute path of the filename to be copied.

flash:

Copies the file to the flash file system.

<destfilename>

New name of the copied file.

system:

Copies the file to the system partition.

partition

Specifies the system partition to save the file (0,1).

system:

Copies the specified system partition.

<srcpartition>

Disk partition from which to copy the system data (0,1).

<destpartition>

Disk partition to copy the system data to (0,1).

tftp:

Copies a file from the specified TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. 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>

IPv4 o IPv6 address of the TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server.

<filename>

Full name of the file to be copied.

flash:

Copies the file to the flash file system

<destfilename>

New name of the copied file.

system:

Copies the file to the system partition.

partition

Specifies the system partition to save the file (0,1).

usb:

Copies a file from an attached USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices.  device to the flash file system.

partition <part>

Specifies the partition on the USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices.  device (0,1).

<usbfilename>

Full name of the USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices. file to be copied.

flash:

Copies the file to the flash file system.

<flashfilename>

New name of the copied file.

system:

Copies the file to the system partition.

partition

Specifies the system partition to save the file (0,1).

Usage Guidelines

Use this command to save back-up copies of the configuration file to an FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. or TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server, or to load a saved file from an FTPFile Transfer Protocol. A standard network protocol used for transferring files between a client and server on a computer network. or TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. 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, DHCPDynamic Host Configuration Protocol. A network protocol that enables a server to automatically assign an IP address to an IP-enabled device from a defined range of numbers configured for a given network. , 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 managed device’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.

Unlike the managed device's flash, the USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices. device has more than two partitions; not just 0 and 1. When copying a file from a USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices. device, you must know which partition the target file is on. Use the show storage command to identify the location of the file to identify the correct USBUniversal Serial Bus. USB is a connection standard that offers a common interface for communication between the external devices and a computer. USB is the most common port used in the client devices.  partition.

Example

The following commands copy the configuration file named "engineering" from the TFTPTrivial File Transfer Protocol. The TFTP is a software utility for transferring files from or to a remote host. server to the managed device’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) [mynode] (config) #copy tftp: 192.0.2.0 engineering flash: default.bak

copy flash: default.bak flash: default.cfg

Command History

Release

Modification

ArubaOS 8.0.0.0

Command introduced.

Command Information

Platforms

Licensing

Command Mode

All platforms

Base operating system.

Config mode on Mobility Master.

/*]]>*/