Cisco 3560x-24p 参考指南
2-15
Catalyst 3750-X and 3560-X Switch Command Reference
OL-21522-02
Chapter 2 Catalyst 3750-X and 3560-X Switch Cisco IOS Commands
archive tar
archive tar
Use the archive tar privileged EXEC command on the switch stack or on a standalone switch to create
a tar file, list files in a tar file, or extract the files from a tar file.
a tar file, list files in a tar file, or extract the files from a tar file.
archive tar {/create destination-url flash:/file-url} | {/table source-url} | {/xtract source-url
flash:/file-url [dir/file...]}
Syntax Description
/create destination-url
flash:/file-url
flash:/file-url
Create a new tar file on the local or network file system.
For destination-url, specify the destination URL alias for the local or
network file system and the name of the tar file to create. These options
are supported:
network file system and the name of the tar file to create. These options
are supported:
•
The syntax for the local flash filesystem:
flash:
•
The syntax for the FTP:
ftp:[[//username[:password]@location]/directory]/tar-filename.tar
ftp:[[//username[:password]@location]/directory]/tar-filename.tar
•
The syntax for an HTTP server:
http://[[username:password]@]{hostname |
host-ip}[/directory]/image-name.tar
host-ip}[/directory]/image-name.tar
•
The syntax for a secure HTTP server:
https://[[username:password]@]{hostname |
host-ip}[/directory]/image-name.tar
host-ip}[/directory]/image-name.tar
•
The syntax for the Remote Copy Protocol (RCP):
rcp:[[//username@location]/directory]/tar-filename.tar
rcp:[[//username@location]/directory]/tar-filename.tar
•
The syntax for the TFTP:
tftp:[[//location]/directory]/tar-filename.tar
tftp:[[//location]/directory]/tar-filename.tar
The tar-filename.tar is the tar file to be created.
For flash:/file-url, specify the location on the local flash file system from
which the new tar file is created.
which the new tar file is created.
An optional list of files or directories within the source directory can be
specified to write to the new tar file. If none are specified, all files and
directories at this level are written to the newly created tar file.
specified to write to the new tar file. If none are specified, all files and
directories at this level are written to the newly created tar file.