Deleting Files; Displaying File Contents - HP Cisco MDS 9020 - Fabric Switch Configuration Manual

Cisco mds 9000 family cli configuration guide, release 3.x (ol-16184-01, april 2008)
Hide thumbs Also See for Cisco MDS 9020 - Fabric Switch:
Table of Contents

Advertisement

Chapter 2
Before You Begin
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
If the current directory is slot0:mydir, this command copies slot0:mydir/samplefile to
slot0:mydir/mystorage/samplefile.
This example shows how to copy a file from the active supervisor module's (sup-1 in slot 5 on the Cisco
MDS 9506 and Cisco MDS 9509 switches or slot 7 on the Cisco MDS 9513 switch) bootflash to the
standby supervisor module's (sup-2 in slot 6 on the Cisco MDS 9506 and Cisco MDS 9509 switches or
slot 7 on the Cisco MDS 9513 switch) bootflash.
switch# copy bootflash:system_image bootflash://sup-2/system_image
This example shows how to overwrite the contents of an existing configuration in NVRAM.
switch# copy nvram:snapshot-config nvram:startup-config
Warning: this command is going to overwrite your current startup-config.
Do you wish to continue? {y/n} [y] y
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 (see the
page

Deleting Files

The delete command deletes a specified file or the specified directory and all its contents (see the
"Deleting Configuration Files" section on page
This example shows how to delete a file from the current working 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 filename.
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 fc1/1
This example displays the contents of a file residing in the current directory.
switch# show file myfile
OL-16184-01, Cisco MDS SAN-OS Release 3.x
8-5).
8-8).
directory and all its contents.
my-dir
Cisco MDS 9000 Family CLI Configuration Guide
Using Switch File Systems
"Copying Configuration Files" section on
2-31

Advertisement

Table of Contents
loading

Table of Contents