Chinaunix首页 | 论坛 | 博客
  • 博客访问: 712344
  • 博文数量: 67
  • 博客积分: 3148
  • 博客等级: 中校
  • 技术积分: 1084
  • 用 户 组: 普通用户
  • 注册时间: 2010-11-10 14:33
文章分类

全部博文(67)

文章存档

2013年(2)

2012年(11)

2011年(33)

2010年(21)

我的朋友

分类:

2011-08-05 11:21:47

CISCO在推出C2960/C3560这一时代的产品后,系统数据包都是tar归档格式了,不光包含了传统bin文件,还包含了http server的文件,功能大大加强。系统文件升级备份操作也与原来有很大的不同。

Instead of using the copy privileged EXEC command or the archive tar privileged EXEC command, we recommend using the archive download-sw and archive upload-sw privileged EXEC commands to download and upload software image files.

archive download-sw /allow-feature-upgrade privileged EXEC command to allow installation of an image with a different feature set, for example, upgrading from the IP base image to the IP services image.

升级操作:

Step3

archive download-sw /allow-feature-upgrade /overwrite /reload tftp:[[//location]/directory]/image-name.tar

Download the image file from the TFTP server to the switch, and overwrite the current image.

The /allow-feature-upgrade option allows installation of an image with a different feature set.

The /overwrite option overwrites the software image in flash memory with the downloaded image.

The /reload option reloads the system after downloading the image unless the configuration has been changed and not been saved.

For //location, specify the IP address of the TFTP server.

For /directory/image-name.tar, specify the directory (optional) and the image to download. Directory and image names are case sensitive.

Step4

archive download-sw /leave-old-sw /reload tftp:[[//location]/directory]/image-name.tar

Download the image file from the TFTP server to the switch, and keep the current image.

The /leave-old-sw option keeps the old software version after a download.

The /reload option reloads the system after downloading the image unless the configuration has been changed and not been saved.

For //location, specify the IP address of the TFTP server.

For /directory/image-name.tar, specify the directory (optional) and the image to download. Directory and image names are case sensitive.

备份操作:

Step3

archive upload-sw tftp:[[//location]/directory]/image-name.tar

Upload the currently running switch image to the TFTP server.

For //location, specify the IP address of the TFTP server.

For /directory/image-name.tar, specify the directory (optional) and the name of the software image to be uploaded. Directory and image names are case sensitive. The image-name.tar is the name of the software image to be stored on the server.

例子:

archive tar /create tftp:// 192.168.255.100/c3560-ipbase-mz.122-55.SEB4.tar flash:/c3560-ipbase-mz.122-55.SEB4

archive upload-sw tftp://192.168.255.100/c3560-ipservicesk9-mz.122-55.SE.tar

格外注意文件路径格式。

阅读(4727) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~