Cisco MDS 9000 Family Command Reference, Release 1.2(1a)
G Commands

Table Of Contents

G Commands

gzip

gunzip


G Commands


The commands in this chapter apply to the Cisco MDS 9000 Family of multilayer directors and fabric switches. All commands are shown here in alphabetical order regardless of command mode. See the "About the CLI Command Modes" section to determine the appropriate mode for each command. For more information, refer to the Cisco MDS 9000 Family Configuration Guide.

gzip

gunzip

gzip

To compress (zip) a specified file using LZ77 coding, use the gzip command in EXEC mode.

gzip [ bootflash: | slot0: | volatile: ] filename

Syntax Description

bootflash:

Source or destination location for the file to be compressed.

slot0:

Source or destination location for file to be compressed.

volatile:

Source or destination location for file to be compressed. This is the default directory.

filename

The name of the file to be compressed.


Defaults

None.

Command Modes

EXEC mode.

Command History

This command was introduced in Cisco MDS SAN-OS 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.

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
    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

Related Commands

Command
Description

gunzip

Uncompresses LZ77 coded files.


gunzip

To un compress (unzip) LZ77 coded files, use the gzip command in EXEC mode.

gunzip [bootflash: | slot0: | volatile: ] filename

Syntax Description

bootflash:

Source or destination location for the compressed file.

slot0:

Source or destination location for the compressed file.

volatile:

Source or destination location for the compressed file. This is the default directory.

filename

The name of the compressed file.


Defaults

None.

Command Modes

EXEC mode.

Command History

This command was introduced in Cisco MDS SAN-OS Release 1.1(1).

Usage Guidelines

This command is useful in uncompressing large files.

Examples

This example unzips a compressed file and displays the space used:

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

Related Commands

Command
Description

gzip

Compresses a specified file using LZ77 coding.