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
2-32
Cisco MDS 9000 Family CLI Configuration Guide
OL-16184-01, Cisco MDS SAN-OS Release 3.x
Chapter 2 Before You Begin
Using Switch File Systems
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
Chapter 5,
“Initial Configuration,”
for information on saving and copying configuration files, and
Chapter 7,
“Software Images,”
for information on saving and copying software images.
Note
Redirection is allowed only if the current directory is on the
volatile:
(default) or
slot0:
file systems.
Redirection is not allowed if the current directory is on the
bootflash:
file system. The current directory
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
1525859 Jul 04 00:51:03 2003 Samplefile
Usage for volatile://
1527808 bytes used
19443712 bytes free
20971520 bytes total
switch#
gzip volatile:Samplefile
switch#
dir
266069 Jul 04 00:51:03 2003 Samplefile.gz
Usage for volatile://
266240 bytes used
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
1525859 Jul 04 00:51:03 2003 Samplefile
Usage for volatile://
1527808 bytes used
19443712 bytes free
20971520 bytes total
Displaying the Last Lines in a File
The
tail
command displays the last lines (tail end) of a specified file.
The syntax for this command is
tail
filename
[
number-of-lines
].
switch#
tail mylog 10
Содержание 9124 - Cisco MDS Fabric Switch
Страница 76: ...Se 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 ck d o c c i s c o c o m ...
Страница 122: ...Se 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 ck d o c c i s c o c o m ...
Страница 328: ...Se 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 ck d o c c i s c o c o m ...
Страница 482: ...Se 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 ck d o c c i s c o c o m ...
Страница 733: ...Se 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 ck d o c c i s c o c o m P A R T 5 Security ...
Страница 734: ...Se 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 ck d o c c i s c o c o m ...
Страница 957: ...Se 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 ck d o c c i s c o c o m P A R T 6 IP Services ...
Страница 958: ...Se 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 ck d o c c i s c o c o m ...
Страница 1182: ...Se 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 ck d o c c i s c o c o m ...
Страница 1214: ...Se 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 ck d o c c i s c o c o m ...
Страница 1307: ...Se 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 ck d o c c i s c o c o m P A R T 9 Traffic Management ...
Страница 1308: ...Se 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 ck d o c c i s c o c o m ...
Страница 1331: ...Se 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 ck d o c c i s c o c o m P A R T 1 0 Troubleshooting ...
Страница 1332: ...Se 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 ck d o c c i s c o c o m ...