Gzip - Cisco MDS 9000 series Command Reference Manual

Hide thumbs Also See for MDS 9000 series:
Table of Contents

Advertisement

Chapter 9
G Commands
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

gzip

To compress (zip) a specified file using LZ77 coding, use the gzip command in EXEC mode.
Syntax Description
bootflash:
slot0:
volatile:
filename
Defaults
None.
Command Modes
EXEC mode.
Command History
Release
1.1(1)
Usage Guidelines
This command is useful in compressing large files. The output of the show tech-support command can
directed to a file and compressed for further use. The gzip command replaces the source file with a
compressed .gz file.
Examples
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://
switch# gzip volatile:Samplefile
switch# dir
Usage for volatile://
OL-8413-07, Cisco MDS SAN-OS Release 3.x
gzip {bootflash: | slot0: | volatile:} filename
Source location for the file to be compressed and destination of the compressed file.
Source location for the file to be compressed and destination of the compressed file.
Source location for the file to be compressed and destination of the compressed
file.This is the default directory.
The name of the file to be compressed.
Modification
This command was introduced.
1525859
Jul 04 00:51:03 2003
1527808 bytes used
19443712 bytes free
20971520 bytes total
266069
Jul 04 00:51:03 2003
266240 bytes used
20705280 bytes free
20971520 bytes total
Samplefile
Samplefile.gz
Cisco MDS 9000 Family Command Reference
gzip
9-3

Advertisement

Table of Contents
loading

Table of Contents