标签:提示 release request system http -o 6.3.6 abi 上传文件
说起思科的交换机升级,大多数人想到的是以下几步:(1)把系统.bin文件通过TFTP或是FTP上传到交换机中
(2)将原有.bin文件删除,重启(或是手动设置引导顺序)
(3)重启后升级完成。
的确,2960、3560、3750等等交换机的升级都可以通过以上几点来完成。可是思科的3650交换机升级跟以前的有些不同。
在升级之前,先看一下3650中的dir信息
Switch#dir
Directory of flash:/
15490 -rw- 15954556 Feb 13 2018 00:53:01 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
15491 -rw- 22301472 Feb 13 2018 00:52:59 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
15492 -rw- 266035828 Feb 13 2018 00:53:01 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15493 -rw- 9089660 Feb 13 2018 00:53:00 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15494 -rw- 212812400 Feb 13 2018 00:53:00 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
15495 -rw- 13423224 Feb 13 2018 00:53:00 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
15496 -rw- 4748 Feb 13 2018 00:53:24 +00:00 packages.conf
15497 -rw- 629 Jul 31 2018 02:09:08 +00:00 bootloader_evt_handle.log
15498 drwx 4096 Feb 13 2018 00:59:14 +00:00 core
54209 drwx 4096 Feb 13 2018 00:55:52 +00:00 .prst_sync
69697 drwx 4096 Feb 13 2018 00:55:53 +00:00 .rollback_timer
77441 drwx 4096 Jul 31 2018 02:09:22 +00:00 dc_profile_dir
77443 drwx 4096 Feb 13 2018 00:56:02 +00:00 gs_script
15499 -rw- 65301 Jul 31 2018 02:09:39 +00:00 memleak.tcl
15500 drwx 4096 Feb 13 2018 00:56:31 +00:00 .installer
15502 -rw- 2097152 Jul 31 2018 02:12:32 +00:00 nvram_config
15503 -rw- 2097152 Jul 31 2018 02:12:32 +00:00 nvram_config_bkup
15504 -rw- 35 Jul 30 2018 06:29:18 +00:00 pnp-tech-time
15505 -rw- 54759 Jul 30 2018 06:29:21 +00:00 pnp-tech-discovery-summary
在这里你会发现这里没有.bin文件了。
虽然如此,但是在这里升级仍然需要使用到.bin文件,因为你从思科网站上下载的升级文件就是.bin的。下面我们说一下具体步骤:
1、从网站上下载所需要的升级文件,文件扩展名是.bin。
2、通过TFTP上传到交换机中,如下:
Switch#copy tftp://10.0.0.2/cat3k_caa-universalk9.16.03.06.SPA.bin flash:
Destination filename [cat3k_caa-universalk9.16.03.06.SPA.bin]?
Accessing tftp://10.0.0.2/cat3k_caa-universalk9.16.03.06.SPA.bin...
Loading cat3k_caa-universalk9.16.03.06.SPA.bin from 10.0.0.2 (via GigabitEthernet1/0/2): !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 537577577 bytes]
537577577 bytes copied in 211.316 secs (2543951 bytes/sec)
3、与之前升级不同的就是在这里,执行以下命令进行安装
Switch#request platform software package install switch all file flash:cat3k_caa-universalk9.16.03.06.SPA.bin
--- Starting install local lock acquisition on switch 1 ---
Finished install local lock acquisition on switch 1
Expanding image file: flash:cat3k_caa-universalk9.16.03.06.SPA.bin
[1]: Expanding file
[1]: Finished expanding all-in-one software package in switch 1
SUCCESS: Finished expanding all-in-one software package.
[1]: Performing install
SUCCESS: install Finished
[1]: install package(s) on switch 1
--- Starting list of software package changes ---
Old files list:
Removed cat3k_caa-guestshell.16.03.05b.SPA.pkg
Removed cat3k_caa-rpbase.16.03.05b.SPA.pkg
Removed cat3k_caa-rpcore.16.03.05b.SPA.pkg
Removed cat3k_caa-srdriver.16.03.05b.SPA.pkg
Removed cat3k_caa-wcm.16.03.05b.SPA.pkg
Removed cat3k_caa-webui.16.03.05b.SPA.pkg
New files list:
Added cat3k_caa-guestshell.16.03.06.SPA.pkg
Added cat3k_caa-rpbase.16.03.06.SPA.pkg
Added cat3k_caa-rpcore.16.03.06.SPA.pkg
Added cat3k_caa-srdriver.16.03.06.SPA.pkg
Added cat3k_caa-wcm.16.03.06.SPA.pkg
Added cat3k_caa-webui.16.03.06.SPA.pkg
Finished list of software package changes
SUCCESS: Software provisioned. New software will load on reboot.
[1]: Finished install successful on switch 1
Checking status of install on [1]
[1]: Finished install in switch 1
SUCCESS: Finished install: Success on [1]
其实到这里升级就完成了一半儿,因为上面提示:New software will load on reboot.也就是说重启之后就是以新的系统启动了。
这时我们再用dir查看一下:
Switch#dir
Directory of flash:/
15490 -rw- 15954556 Feb 13 2018 00:53:01 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
15491 -rw- 22301472 Feb 13 2018 00:52:59 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
15492 -rw- 266035828 Feb 13 2018 00:53:01 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15493 -rw- 9089660 Feb 13 2018 00:53:00 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15494 -rw- 212812400 Feb 13 2018 00:53:00 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
15495 -rw- 13423224 Feb 13 2018 00:53:00 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
15509 -rw- 4737 Jul 31 2018 02:37:29 +00:00 packages.conf
15497 -rw- 666 Jul 31 2018 02:21:44 +00:00 bootloader_evt_handle.log
15498 drwx 4096 Feb 13 2018 00:59:14 +00:00 core
54209 drwx 4096 Feb 13 2018 00:55:52 +00:00 .prst_sync
69697 drwx 4096 Feb 13 2018 00:55:53 +00:00 .rollback_timer
77441 drwx 4096 Jul 31 2018 02:21:58 +00:00 dc_profile_dir
77443 drwx 4096 Feb 13 2018 00:56:02 +00:00 gs_script
15499 -rw- 65301 Jul 31 2018 02:22:15 +00:00 memleak.tcl
15500 drwx 4096 Feb 13 2018 00:56:31 +00:00 .installer
15502 -rw- 2097152 Jul 31 2018 02:25:06 +00:00 nvram_config
15503 -rw- 2097152 Jul 31 2018 02:25:06 +00:00 nvram_config_bkup
15504 -rw- 35 Jul 30 2018 06:29:18 +00:00 pnp-tech-time
15505 -rw- 54759 Jul 30 2018 06:29:21 +00:00 pnp-tech-discovery-summary
15496 -rw- 0 Jul 31 2018 02:37:52 +00:00 .onreboot
15511 -rw- 15950464 Jul 31 2018 02:36:20 +00:00 cat3k_caa-guestshell.16.03.06.SPA.pkg
15516 -rw- 22302593 Jul 31 2018 02:36:25 +00:00 cat3k_caa-rpbase.16.03.06.SPA.pkg
15512 -rw- 265124472 Jul 31 2018 02:36:21 +00:00 cat3k_caa-rpcore.16.03.06.SPA.pkg
15514 -rw- 9095808 Jul 31 2018 02:36:23 +00:00 cat3k_caa-srdriver.16.03.06.SPA.pkg
15510 -rw- 4737 Jul 31 2018 02:37:15 +00:00 cat3k_caa-universalk9.16.03.06.SPA.conf
15515 -rw- 211675764 Jul 31 2018 02:36:25 +00:00 cat3k_caa-wcm.16.03.06.SPA.pkg
15513 -rw- 13423228 Jul 31 2018 02:36:23 +00:00 cat3k_caa-webui.16.03.06.SPA.pkg
15508 -rw- 4748 Jul 31 2018 02:37:29 +00:00 packages.conf.00-
1621966848 bytes total (453984256 bytes free)
通过上面的显示可以看出flash中已经安装了新版本的系统,但是老版本的系统仍然在。那么该如何删除老版本的系统释放系统空间呢?我们往下继续
4、重启交换机,重启之后交换机会以新版本的系统启动
Cisco IOS Software [Denali], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.3.6, RELEASE SOFTWARE (fc3)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2018 by Cisco Systems, Inc.
Compiled Wed 28-Feb-18 15:23 by mcpre
上面显示已经从16.3.6启动了,紧接着我们可以通过下面的命令来释放系统空间:
Switch#request platform software package clean switch all file flash:
Running command on switch 1
Cleaning up unnecessary package files
Scanning boot directory for packages ... done.
Preparing packages list to delete ...
packages.conf
File is in use, will not delete.
cat3k_caa-guestshell.16.03.06.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpbase.16.03.06.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpcore.16.03.06.SPA.pkg
File is in use, will not delete.
cat3k_caa-srdriver.16.03.06.SPA.pkg
File is in use, will not delete.
cat3k_caa-wcm.16.03.06.SPA.pkg
File is in use, will not delete.
cat3k_caa-webui.16.03.06.SPA.pkg
File is in use, will not delete.
done.
The following files will be deleted:
[1]:
/flash/cat3k_caa-guestshell.16.03.05b.SPA.pkg
/flash/cat3k_caa-rpbase.16.03.05b.SPA.pkg
/flash/cat3k_caa-rpcore.16.03.05b.SPA.pkg
/flash/cat3k_caa-srdriver.16.03.05b.SPA.pkg
/flash/cat3k_caa-universalk9.16.03.06.SPA.conf
/flash/cat3k_caa-wcm.16.03.05b.SPA.pkg
/flash/cat3k_caa-webui.16.03.05b.SPA.pkg
/flash/packages.conf.00-
Do you want to proceed? [y/n]y
[1]:
Deleting file flash:cat3k_caa-guestshell.16.03.05b.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpbase.16.03.05b.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpcore.16.03.05b.SPA.pkg ... done.
Deleting file flash:cat3k_caa-srdriver.16.03.05b.SPA.pkg ... done.
Deleting file flash:cat3k_caa-universalk9.16.03.06.SPA.conf ... done.
Deleting file flash:cat3k_caa-wcm.16.03.05b.SPA.pkg ... done.
Deleting file flash:cat3k_caa-webui.16.03.05b.SPA.pkg ... done.
Deleting file flash:packages.conf.00- ... done.
SUCCESS: Files deleted.
Switch#
这时再用dir查看就会发现老版本的系统已经删除了,这时3650已经升级完成了。
说明:升级系统前最好先查看一下官方文档,不过我查看3650升级的官方文档时发现,文档中把第四步放在了上传文件之前,按照他们的说法是先发释放一下系统空间,不过如果你真按照那样做了就会发现,那样释放空间是行不通的!为什么行不通,留给你思考了,不过其实答案就在这篇文章中……
标签:提示 release request system http -o 6.3.6 abi 上传文件
原文地址:http://blog.51cto.com/05wylz/2152778