archive tar
Command Modes
Privileged EXEC
Command History
Release
12.2(46)EY
Usage Guidelines
Filenames and directory names are case sensitive.
Image names are case sensitive.
Examples
This example shows how to create a tar file. The command writes the contents of the new-configs
directory on the local flash device to a file named saved.tar on the TFTP server at 172.20.10.30:
Switch# archive tar /create tftp:172.20.10.30/saved.tar flash:/new-configs
Switch# archive tar /table flash:c2350-lanlite-tar.122-46.EY.tar
info (219 bytes)
c2350-lanlite-tar.122-46.EY.tar/ (directory)
c2350-lanlite-tar.122-46.EY.tar(610856 bytes)
c2350-lanlite-tar.122-46.EY.tar/info (219 bytes)
info.ver (219 bytes)
This example shows how to display only thec2350-lanlite-tar.122-46.EY.tar /html directory and its
contents:
Switch# archive tar /table flash:c2350-lanlite-tar.122-46.EY.tar/html
c2350-lanlite-tar.122-46.EY.tar/html/ (directory)
c2350-lanlite-tar.122-46.EY.tar/html/const.htm (556 bytes)
c2350-lanlite-tar.122-46.EY.tar/html/xhome.htm (9373 bytes)
c2350-lanlite-tar.122-46.EY.tar/html/menu.css (1654 bytes)
<output truncated>
This example shows how to extract the contents of a tar file on the TFTP server at 172.20.10.30. This
command extracts just the new-configs directory into the root directory on the local flash file system.
The remaining files in the saved.tar file are ignored.
Switch# archive tar /xtract tftp://172.20.10.30/saved.tar flash:/ new-configs
Related Commands
Command
archive download-sw
archive upload-sw
Catalyst 2350 Switch Command Reference
2-8
Modification
This command was introduced.
This example shows how to display the contents of the c2350-lanlite-tar.122-46.EY.tar file that is in
flash memory. The contents of the tar file appear on the screen:
Description
Downloads a new image from a TFTP server to the switch.
Uploads an existing image on the switch to a server.
Chapter 2
Catalyst 2350 Switch Cisco IOS Commands
OL-19055-01