Copying Files; Deleting Files; Displaying File Contents - Cisco AJ732A - MDS 9134 Fabric Switch Command Reference Manual

Cisco mds 9000 family command reference guide - release 4.x (ol-18089-01, february 2009)
Hide thumbs Also See for AJ732A - Cisco MDS 9134 Fabric Switch:
Table of Contents

Advertisement

Chapter 1
CLI Overview
S e n d d o c u m e n t a t i o n c o m m e n t s t o m d s f e e d b a c k - d o c @ c i s c o . c o m

Copying Files

The copy command copies a file.
This example copies the file called samplefile from the external CompactFlash (slot0) directory to the
mystorage directory.
switch# copy slot0:samplefile slot0:mystorage/samplefile
This 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.
You can also use the copy command to upload and download files from the slot0: or
bootflash: file system to or from a FTP, TFTP, SFTP, or SCP server.
Refer to the Cisco MDS 9000 Family CLI Configuration Guide for further information.

Deleting Files

The delete command deletes a specified file or the specified directory and all its contents. Refer to the
Cisco MDS 9000 Family CLI Configuration Guide for further information.
This example shows how to delete a file from the bootflash: directory (assuming you are already in the
bootflash: directory):
switch# delete dns_config.cfg
This example shows how to delete a file from an external CompactFlash (slot0):
switch# delete slot0:dns_config.cfg
This example deletes the entire
switch# delete bootflash:my-dir
If you specify a directory, the delete command deletes the entire directory and all its contents.
Caution

Displaying File Contents

The show file command displays the contents of a specified file in the file system.
The syntax for this command is show file file_name
This example displays the contents of the test file that resides in the slot0 directory.
switch# show file slot0:test
config t
Int fc1/1
no shut
end
show int
This example displays the contents of a file residing in the current directory.
switch# show file myfile
OL-18089-01, Cisco MDS NX-OS Release 4.x
directory and all its contents:
my-dir
Cisco MDS 9000 Family Command Reference
Using the File System
1-35

Advertisement

Table of Contents
loading

Table of Contents