Compressing And Uncompressing Files; Redirecting Show Command Output; Finding Files - Cisco Nexus 9000 Series Configuration Manual

Nx-os fundamentals configuration guide
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Compressing and Uncompressing Files

Compressing and Uncompressing Files
This example shows how to compress a file:
switch# dir
...
switch# gzip volatile:Samplefile
switch# dir
...
This example shows how to uncompress a compressed file:
switch# dir
...
switch# gunzip samplefile
switch# dir
...

Redirecting show Command Output

This example shows how to direct the output to a file on the bootflash: file system:
switch# show interface > bootflash:switch1-intf.cfg
This example shows how to direct the output to a file on external flash memory:
switch# show interface > usb1:switch-intf.cfg
This example shows how to direct the output to a file on a TFTP server:
switch# show interface > tftp://10.10.1.1/home/configs/switch-intf.cfg
Preparing to copy...done
This example shows how to direct the output of the show tech-support command to a file:
switch# show tech-support > Samplefile
Building Configuration ...
switch# dir
Usage for volatile://
19443712 bytes free
20971520 bytes total

Finding Files

This example shows how to find a file in the current default directory:
switch# find smm_shm.cfg
/usr/bin/find: ./lost+found: Permission denied
./smm_shm.cfg
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
112
1525859
Jul 04 00:51:03 2013 Samplefile
266069
Jul 04 00:51:03 2013 Samplefile.gz
266069
Jul 04 00:51:03 2013 Samplefile.gz
1525859
Jul 04 00:51:03 2013 Samplefile
1525859
Jul 04 00:51:03 2013 Samplefile
1527808 bytes used
Using the Device File Systems, Directories, and Files

Advertisement

Table of Contents
loading

Table of Contents