hit counter script

Copying Files; Deleting Files; Displaying File Contents; Saving Command Output To A File - Cisco AP775A - Nexus Converged Network Switch 5010 Configuration Manual

Cli software configuration guide
Hide thumbs Also See for AP775A - Nexus Converged Network Switch 5010:
Table of Contents

Advertisement

Configuring the Switch
This example moves a file from the current directory level:
switch# move samplefile mystorage/samplefile
If the current directory is bootflash:mydir, this command moves bootflash:mydir/samplefile
to bootflash:mydir/mystorage/samplefile.

Copying Files

The copy command copies a file between file systems within a switch.
Note
Use the dir command to ensure that enough space is available in the target file system. If enough space
is not available, use the delete command to remove unneeded files.
This example copies the file called samplefile from the root directory to the mystorage directory:
switch# copy bootflash:samplefile bootflash:mystorage/samplefile
This example copies a file from the current directory level:
switch# copy samplefile mystorage/samplefile
If the current directory is bootflash:mydir, this command copies bootflash:mydir/samplefile to
bootflash:mydir/mystorage/samplefile.

Deleting Files

The delete command deletes a specified file or the specified directory and all its contents.
This example shows how to delete a file from the current working directory:
switch# delete dns_config.cfg
This example deletes the entire bootflash: directory and all its contents:
switch# delete bootflash:my-dir
If you specify a directory, the delete command deletes the entire directory and all its contents.
Caution

Displaying File Contents

The show file command displays the contents of a specified file in the file system.
This example displays the contents of a file residing in the current directory:
switch# show file myfile

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
which is a file created at the same directory level. At the EXEC mode switch prompt, enter a dir command
to view all files in this directory, including the recently saved Samplefile.
OL-16597-01
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
Copying Files
51

Advertisement

Table of Contents
loading

Table of Contents