Cisco Nexus 5000 Series Command Reference Release 4.0(1a)N2(1) (OL-16599-01, March 2009)
Send comments to nx5000-docfeedback@cisco.com
1-20
Cisco Nexus 5000 Series Command Reference
OL-16599-01
Chapter 1 Basic System Commands
copy
copy
To copy any file from a source to a destination, use the copy command.
copy source-url destination-url
Syntax Description
The format of the source and destination URLs varies according to the file or directory location. You can
enter either a command-line interface (CLI) variable for a directory or a filename that follows the Cisco
NX-OS file system syntax (filesystem:[/directory][/filename]).
The following tables list URL prefix keywords by the file system type. If you do not specify a URL prefix
keyword, the router looks for a file in the current directory.
Table 1-1 lists URL prefix keywords for local writable storage file systems. Table 1-2 lists the URL
prefix keywords for remote file systems. Table 1-3 lists the URL prefix keywords for nonwritable file
systems.
source-url Location URL (or variable) of the source file or directory to be copied. The
source can be either local or remote, depending upon whether the file is being
downloaded or uploaded.
destination-url Destination URL (or variable) of the copied file or directory. The destination
can be either local or remote, depending upon whether the file is being
downloaded or uploaded.
Table 1-1 URL Prefix Keywords for Local Writable Storage File Systems
Keyword Source or Destination
bootflash:[//server/] Source or destination URL for boot flash memory. The server argument
value is module-1, sup-1, sup-active, or sup-local.
volatile:[//server/] Source or destination URL of the default internal file system. Any files or
directories stored in this file system will be erased when the switch reboots.
The server argument value is module-1, sup-1, sup-active, or sup-local.
Table 1-2 URL Prefix Keywords for Remote File Systems
Keyword Source or Destination
ftp: Source or destination URL for a FTP network server. The syntax for this
alias is as follows:
ftp:[//server][/path]/filename
scp: Source or destination URL for a network server that supports Secure Shell
(SSH) and accepts copies of files using the secure copy protocol (scp). The
syntax for this alias is as follows:
scp:[//[username@]server][/path]/filename