Send documentation comments to mdsfeedback-doc@cisco.com
4-103
Cisco MDS 9000 Family Command Reference
OL-8413-07, Cisco MDS SAN-OS Release 3.x
Chapter 4 C Commands
copy
The following example copies a file from the current directory level.
switch# copy samplefile mystorage/samplefile
If the current directory is slot0:mydir, this command copies slot0:mydir/samplefile to
slot0:mydir/mystorage/samplefile.
The following example downloads a configuration file from an external CompactFlash to the running
configuration.
switch copy slot0:dns-config.cfg system:running-config
The following example saves a running configuration file to an external CompactFlash.
switch# copy system:running-config slot0:dns-config.cfg
The following example saves a startup configuration file to an external CompactFlash.
switch# copy system:startup-config slot0:dns-config.cfg
The following example uses CFS to cause all switches in the fabric to copy their running configuration
(source) file to their startup configuration (destination) file.
switch# copy running-config startup-config fabric
[########################################] 100%
switch#
Note If any remote switch fails to complete the copy running-config startup-config fabric process, the
initiator switch also does not complete saving its startup-configuration. This means, both the remote
switch and the initiator switch have failed to save their startup-configuration (the old
startup-configuration reverts back). All the other switches in the network would have succeeded.
The following example creates a backup copy of the binary configuration.
switch# copy nvram:startup-config nvram:snapshot-config
The following example copies an image in bootflash on the active supervisor to the bootflash on the
standby supervisor.
switch# copy bootflash:myimage bootflash://sup-2/myimage
The following example creates a running configuration copy in bootflash.
switch# copy system:running-config bootflash:my-config
The following examples creates a startup configuration copy in bootflash.
switch# copy nvram:startup-config bootflash:my-config
Related Commands Command Description
cd Changes the default directory or file system.
dir Displays a list of files on a file system.
reload Reloads the operating system.
show version Displays the version of the running configuration file.