Using the File System
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 .
Saving Command Output to a File
You can force all screen output to go to a file by appending > filename to any command. For example,
enter show interface > samplefile at the EXEC mode switch prompt to save the interface configuration
to samplefile—a file created at the same directory level. At the EXEC mode switch prompt, issue a dir
command to view all files in this directory, including the recently saved samplefile.See
"Initial Configuration,"
"Software Images,"
Note
Redirection is allowed only if the current directory is on the
Redirection is not allowed if the current directory is on the
can be viewed using the pwd command and changed using the cd command.
Compressing and Uncompressing Files
The gzip command compresses (zips) the specified file using LZ77 coding.
This example directs the output of the show tech-support command to a file (Samplefile) and then zips
the file and displays the difference in the space used up in the volatile: directory:
switch# show tech-support > Samplefile
Building Configuration ...
switch# dir
Usage for volatile://
19443712 bytes free
20971520 bytes total
switch# gzip volatile:Samplefile
switch# dir
Usage for volatile://
20705280 bytes free
20971520 bytes total
The gunzip command uncompresses (unzips) LZ77 coded files.
This example unzips the file that was compressed in the previous example:
switch# gunzip samplefile
switch# dir
Usage for volatile://
19443712 bytes free
20971520 bytes total
Cisco MDS 9000 Family Configuration Guide
2-26
for information on saving and copying configuration files, and
for information on saving and copying software images.
1525859
Jul 04 00:51:03 2003 Samplefile
1527808 bytes used
266069
Jul 04 00:51:03 2003 Samplefile.gz
266240 bytes used
1525859
Jul 04 00:51:03 2003 Samplefile
1527808 bytes used
Chapter 2
(default) or
volatile:
slot0:
file system. The current directory
bootflash:
OL-6973-03, Cisco MDS SAN-OS Release 2.x
Before You Begin
Chapter 4,
Chapter 6,
file systems.
Need help?
Do you have a question about the DS-X9530-SF1-K9 - Supervisor-1 Module - Control Processor and is the answer not in the manual?
Questions and answers