Displaying The Filenames In An Archive File; Examples Of Using The File System; Accessing Directories On Standby Supervisor Modules - Cisco Nexus 9000 Series Configuration Manual

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

Advertisement

Using the Device File Systems, Directories, and Files
Before You Begin
You have created an archive file on your device.
Procedure
Step 1

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 examples of how to use 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
...
Command or Action
tar extract {bootflash: |
volatile:}archive-filename
[keep-old] [screen] [to {bootflash: The keep-old keyword indicates that the Cisco NX-OS software
| volatile:}[/directory-name]]
[verbose]
Example:
switch# tar extract
bootflash:config-archive.tar.gz
4096
Oct 03 23:55:55 2013
16384
Jan 01 13:23:30 2011
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Displaying the Filenames in an Archive File
Purpose
Extracts files from an existing archive file. The archive filename
is not case sensitive.
should not overwrite files with the same name as the files being
extracted.
The screen keyword indicates that the Cisco NX-OS software
should not overwrite files with the same name as the files being
extracted.
The to keyword specifies the target filesystem. 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.
.patch/
lost+found/
109

Advertisement

Table of Contents
loading

Table of Contents