SUMMARY STEPS
1.
archive tar /create destination-url flash: /file-url
2.
archive tar /table source-url
3.
archive tar /xtract source-url flash:
/
file-url
[
dir/file...
]
4.
more
[ /
ascii
| /
binary
| /
ebcdic
] /
file-url
DETAILED STEPS
Purpose
Command or Action
Creates a file and adds files to it.
archive tar /create destination-url flash: /file-url
Step 1
Example:
For destination-url, specify the destination URL alias for
the local or network file system and the name of the file to
create:
device# archive tar /create
tftp:172.20.10.30/saved.
flash:/new-configs
• Local flash file system syntax:
flash:
• FTP syntax:
ftp
:[[//
username
[:
password
]@
location
]/
directory
]/
-filename
.
• RCP syntax:
rcp
:[[//
username
@
location
]/
directory
]/
-filename
.
• TFTP syntax:
tftp
:[[//
location
]/
directory
]/
-filename
.
For
flash:/file-url
, specify the location on the local flash
file system in which the new file is created. You can also
specify an optional list of files or directories within the
source directory to add to the new file. If none are specified,
all files and directories at this level are written to the newly
created file.
Displays the contents of a file.
archive tar /table source-url
Step 2
Example:
For
source-url
, specify the source URL alias for the local
or network file system. The
-filename.
is the file to display.
These options are supported:
device# archive tar /table
flash: /new_configs
• Local flash file system syntax:
flash:
• FTP syntax:
ftp
:[[//
username
[:
password
]@
location
]/
directory
]/
-filename
.
• RCP syntax:
rcp
:[[//
username
@
location
]/
directory
]/
-filename
.
• TFTP syntax:
tftp
:[[//
location
]/
directory
]/
-filename
.
System Management Configuration Guide, Cisco IOS XE Gibraltar 16.10.x (Catalyst 9200 Switches)
220
Working with the Flash File System
Creating, Displaying and Extracting Files