DETAILED STEPS
PurposeCommand or Action
Extracts files from an existing archive file. The archive filename is not case sensitive.tar extract {bootflash: |
volatile:}archive-filename [keep-old]
Step 1
The keep-old keyword indicates that the Cisco NX-OS software should not overwrite
files with the same name as the files being extracted.
[screen] [to {bootflash: |
volatile:}[/directory-name]] [verbose]
The screen keyword specifies that the Cisco NX-OS software should display the
contents of the extracted files to the terminal screen.
The to keyword specifies the target file system. You can include a directory name.
The directory name is alphanumeric, case sensitive, and has a maximum length of
240 characters.
The verbose keyword specifies that the Cisco NX-OS software should display the
names of the files as they are extracted.
This example shows how to extract files from an existing archive file:
switch# tar extract bootflash:config-archive.tar.gz
Displaying the Filenames in an Archive File
You can display the names of the files in an archive files using the tar list command.
tar list {bootflash: | volatile:}archive-filename
The archive filename is not case sensitive.
switch# tar list bootflash:config-archive.tar.gz
config-file
new-config
Examples of Using the File System
This section includes example of using the file system on the Cisco NX-OS device.
Accessing Directories on Standby Supervisor Modules
This example shows how to list the files on the standby supervisor module:
switch# dir bootflash://sup-remote
12198912 Aug 27 16:29:18 2003 m9500-sf1ek9-kickstart-mzg.1.3.0.39a.bin
1864931 Apr 29 12:41:59 2003 dplug2
12288 Apr 18 20:23:11 2003 lost+found/
12097024 Nov 21 16:34:18 2003 m9500-sf1ek9-kickstart-mz.1.3.1.1.bin
41574014 Nov 21 16:34:47 2003 m9500-sf1ek9-mz.1.3.1.1.bin
Usage for bootflash://sup-remote
67747169 bytes used
Cisco Nexus 5500 Series NX-OS Fundamentals Configuration Guide, Release 7.x
118 OL-30890-01
Using the Device File Systems, Directories, and Files
Displaying the Filenames in an Archive File