取消
显示结果 
搜索替代 
您的意思是: 
cancel
2957
查看次数
5
有帮助
19
回复

请教 2台C3850 堆叠 升级ios问题?

D_W
Level 1
Level 1

BUNDLE 模式,已抄IOS文件到2台3850 flash,

1, 是否要將旧起动文件去掉3850_2F_Core(config)# no boot system switch all flash:/cat3k_caa-universalk9.16.03.06.SPA.bin

    加上新的起动文件就可以3850_2F_Core(config)# boot system switch all flash:/cat3k_caa-universalk9.16.12.07.SPA.bin 

2, 已抄IOS文件到2台3850 flash,但空間是0, 不知道能否升級成功?

    1624104960 bytes total (0 bytes free)

 

3850_2F_Core#dir flash:
Directory of flash:/

77602 -rw- 2097152 May 5 2022 09:31:39 +00:00 nvram_config
77603 -rw- 15954556 Jan 15 2018 15:23:53 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
77604 -rw- 22301472 Jan 15 2018 15:23:51 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
77605 -rw- 266035828 Jan 15 2018 15:23:53 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15521 -rw- 9089660 Jan 15 2018 15:23:52 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15522 -rw- 212812400 Jan 15 2018 15:23:52 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
31041 -rw- 13423224 Jan 15 2018 15:23:52 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
31042 -rw- 4748 Jan 15 2018 15:24:16 +00:00 packages.conf
31043 -rw- 1295 Oct 24 2020 08:41:44 +00:00 bootloader_evt_handle.log
11 drwx 4096 Jan 15 2018 15:34:24 +00:00 core
7762 drwx 4096 Jan 15 2018 15:26:58 +00:00 .prst_sync
38801 drwx 4096 Jan 15 2018 15:27:00 +00:00 .rollback_timer
46561 drwx 4096 Oct 24 2020 08:41:57 +00:00 dc_profile_dir
46563 drwx 4096 Jan 15 2018 15:27:08 +00:00 gs_script
31045 -rw- 65301 Oct 24 2020 08:42:15 +00:00 memleak.tcl
31046 drwx 4096 Sep 21 2020 05:21:20 +00:00 .installer
31047 -rw- 2097152 May 5 2022 09:31:40 +00:00 nvram_config_bkup
31048 -rw- 35 Sep 24 2020 03:10:53 +00:00 pnp-tech-time
31049 -rw- 53044 Sep 24 2020 03:10:59 +00:00 pnp-tech-discovery-summary
13 drwx 4096 Sep 21 2020 05:08:04 +00:00 tech_support
32 drwx 4096 Sep 21 2020 05:23:05 +00:00 .dbpersist
31052 -rw- 0 Sep 21 2020 05:23:14 +00:00 rdope_out.txt
31053 -rw- 68 Sep 21 2020 05:23:26 +00:00 rdope.log
33 drwx 4096 Sep 21 2020 05:23:33 +00:00 onep
31054 -rw- 537577577 Oct 16 2020 09:16:08 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin
31055 -rw- 1336 May 6 2022 08:30:06 +00:00 vlan.dat
31056 -rw- 480189009 May 5 2022 08:49:06 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin

1624104960 bytes total (0 bytes free)
3850_2F_Core#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:/cat3k_caa-universalk9.16.03.06.SPA.bin;flash:/cat3k_caa-universalk9.16.12.07.SPA.bin;

Boot Variables on next reload:
BOOT variable = flash:/cat3k_caa-universalk9.16.03.06.SPA.bin;flash:/cat3k_caa-universalk9.16.12.07.SPA.bin;
Manual Boot = no
Enable Break = no
Boot Mode= DEVICE
iPXE Timeout= 0
3850_2F_Core#

2 个已接受解答

已接受的解答

1和2:没有影响,甚至这个是必要的操作,在flash空间不足的情况下,无法完成到install模式的转换。

3.不确定你这个命令能否使用,如果能正常展开bin文件,并生成新的packages.conf,那么可以用这个方法,如果执行这个命令后packages.conf没有出现或者没有更新(show flash看看文件的时间),那这种方法应该是有问题的。

可以使用正常的install mode的升级方法来转换。

#request platform software package install switch all file flash:cat3k_caa-universalk9.16.x.x.SPA.bin new auto-copy

转换不会对已有配置造成影响(更改install mode后,启动时加载的是packages.conf,请在重启前再保存一下配置)

4. 转换只会影响你操作的那个堆叠组的设备,不在这个stack组中的交换机不受影响。

 

注意:

1. 转换务必留够充足的空间,例如:新升级ios的bin文件大小为400M,通过install模式升级之后,会额外再释放近400M的pkg文件,在加上升级前的旧的ios文件,没有足够的空间,install转换可能会报错。

2. 清理磁盘空间 request platform software package clean switch all 可以使用此命令清理磁盘空间,清理完空间之后再进行升级(清理过程会删除一些系统使用的文件,运行命令后系统会扫描当前的flash,然后会列出将要删除的文件,如果其中包括你需要保留的,可以随时终止删除,然后根据前面的列表进行手动删除即可)

=======删除示例

demo-core#request platform software package clean switch all
This operation may take several minutes...
Running command on switch 1
Cleaning up unnecessary package files
No path specified, will use booted path flash:packages.conf
Cleaning flash:
Scanning boot directory for packages ... done.
Preparing packages list to delete ...
cat3k_caa-guestshell.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpbase.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpcore.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-srdriver.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-webui.16.06.08.SPA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.

The following files will be deleted:
[switch 1]:
/flash/cat3k_caa-guestshell.16.09.05.SPA.pkg
/flash/cat3k_caa-rpbase.16.09.05.SPA.pkg
/flash/cat3k_caa-rpcore.16.09.05.SPA.pkg
/flash/cat3k_caa-srdriver.16.09.05.SPA.pkg
/flash/cat3k_caa-universalk9.16.09.05.SPA.conf
/flash/cat3k_caa-webui.16.09.05.SPA.pkg

Do you want to proceed? [y/n]y

[switch 1]:
Deleting file flash:cat3k_caa-guestshell.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpbase.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpcore.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-srdriver.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-universalk9.16.09.05.SPA.conf ... done.
Deleting file flash:cat3k_caa-webui.16.09.05.SPA.pkg ... done.
SUCCESS: Files deleted.
demo-core#dir
Directory of flash:/

46562 -rw- 1644 Jan 12 2022 15:08:30 +08:00 vlan.dat
46580 -rw- 4742 Sep 7 2020 15:16:08 +08:00 packages.conf
46568 drwx 4096 Jan 6 2021 11:00:19 +08:00 .installer
46569 -rw- 259 Jan 6 2021 11:00:19 +08:00 bootloader_evt_handle.log
46570 drwx 4096 Jun 4 2019 15:17:21 +08:00 core
77601 drwx 4096 Jun 4 2019 15:23:01 +08:00 .prst_sync
11 drwx 4096 Jun 4 2019 15:12:33 +08:00 .rollback_timer
7761 drwx 4096 Jun 4 2019 15:12:42 +08:00 gs_script
15521 drwx 4096 Jan 6 2021 11:00:36 +08:00 dc_profile_dir
46571 -rw- 128103 Jan 6 2021 11:00:57 +08:00 memleak.tcl
46573 -rw- 2097152 Aug 6 2021 19:24:53 +08:00 nvram_config
46575 -rw- 2097152 Aug 6 2021 19:24:54 +08:00 nvram_config_bkup
46572 -rw- 34 Sep 7 2020 15:08:19 +08:00 pnp-tech-time
46576 -rw- 65816 Sep 7 2020 15:08:23 +08:00 pnp-tech-discovery-summary
15 -rw- 19167872 Sep 7 2020 15:15:03 +08:00 cat3k_caa-guestshell.16.06.08.SPA.pkg
19 -rw- 30417560 Sep 7 2020 15:15:10 +08:00 cat3k_caa-rpbase.16.06.08.SPA.pkg
16 -rw- 336503416 Sep 7 2020 15:15:05 +08:00 cat3k_caa-rpcore.16.06.08.SPA.pkg
18 -rw- 5091968 Sep 7 2020 15:15:08 +08:00 cat3k_caa-srdriver.16.06.08.SPA.pkg
17 -rw- 16271996 Sep 7 2020 15:15:08 +08:00 cat3k_caa-webui.16.06.08.SPA.pkg

1624104960 bytes total (1126400000 bytes free)
demo-core#

 

参考:https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-12/release_notes/ol-16-12-3850.html

 

 

在原帖中查看解决方案

1.你设备上的 xxx.pkg文件肯定是没有在用的,至于request xxx clean命令提示在用,这个我也不清楚是什么机制,删了肯定没啥影响。现在首要的目标是清理flash空间,如果没有空余的磁盘空间,后续升级操作是没办法进行的。

   即便是正在使用的16.3.6的bin文件也可以删除,系统正常运行时,所需要的东西都加载到了内存中,删除bin文件也不会有什么影响,放心搞吧。确认删除文件后空间能正常释放出来就行了

2.是这个步骤,不过最好额外验证一下两个交换机的flash,show flash-1: show flash-2: 确认两个flash中释放的文件都正常就行了

==============

补充:

1.升级后务必确认flash中的packages.conf是存在的,且是最新的(核对文件时间,或者copy 出来用文本工具查看文件内容)

2.升级过程示例

demo-core#request platform software package install switch all file flash:cat3k_caa-universalk9.16.09.08.SPA.bin retain-source-file new verbose //retain-source-file的目的是保留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.09.08.SPA.bin
[1]: Expanding file
[1]: Finished expanding all-in-one software package in switch 1
SUCCESS: Finished expanding all-in-one software package.
... expand successful
[1]: Performing install
SUCCESS: install finished
... Operation install completed. Checking for status
[1]: install package(s) on switch 1
--- Starting list of software package changes ---
Old files list:
Removed cat3k_caa-guestshell.16.06.08.SPA.pkg
Removed cat3k_caa-rpbase.16.06.08.SPA.pkg
Removed cat3k_caa-rpcore.16.06.08.SPA.pkg
Removed cat3k_caa-srdriver.16.06.08.SPA.pkg
Removed cat3k_caa-webui.16.06.08.SPA.pkg
New files list:
Added cat3k_caa-guestshell.16.09.08.SPA.pkg
Added cat3k_caa-rpbase.16.09.08.SPA.pkg
Added cat3k_caa-rpcore.16.09.08.SPA.pkg
Added cat3k_caa-srdriver.16.09.08.SPA.pkg
Added cat3k_caa-webui.16.09.08.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]
Ensuring that cached content is written to media
... cached content flushed to media
demo-core#dir
Directory of flash:/

46562 -rw- 1644 May 9 2022 15:38:35 +08:00 vlan.dat
46567 -rw- 4774 May 9 2022 15:43:50 +08:00 packages.conf
69844 -rw- 19167872 May 9 2022 15:19:17 +08:00 cat3k_caa-guestshell.16.06.08.SPA.pkg
69848 -rw- 30417560 May 9 2022 15:19:20 +08:00 cat3k_caa-rpbase.16.06.08.SPA.pkg
46566 -rw- 4742 May 9 2022 15:43:50 +08:00 packages.conf.00- //从install mode 升级之后原有的packages.conf会被重命名
46568 drwx 4096 May 9 2022 15:35:18 +08:00 .installer
46569 -rw- 296 May 9 2022 15:35:19 +08:00 bootloader_evt_handle.log
46570 drwx 4096 Jun 4 2019 15:17:21 +08:00 core
77601 drwx 4096 Jun 4 2019 15:23:01 +08:00 .prst_sync
11 drwx 4096 Jun 4 2019 15:12:33 +08:00 .rollback_timer
7761 drwx 4096 Jun 4 2019 15:12:42 +08:00 gs_script
15521 drwx 4096 May 9 2022 15:35:35 +08:00 dc_profile_dir
46571 -rw- 128103 May 9 2022 15:35:56 +08:00 memleak.tcl
46573 -rw- 2097152 May 9 2022 15:38:41 +08:00 nvram_config
46575 -rw- 2097152 May 9 2022 15:38:42 +08:00 nvram_config_bkup
46572 -rw- 34 Sep 7 2020 15:08:19 +08:00 pnp-tech-time
46576 -rw- 65816 Sep 7 2020 15:08:23 +08:00 pnp-tech-discovery-summary
69845 -rw- 336503416 May 9 2022 15:19:19 +08:00 cat3k_caa-rpcore.16.06.08.SPA.pkg
69847 -rw- 5091968 May 9 2022 15:19:20 +08:00 cat3k_caa-srdriver.16.06.08.SPA.pkg
69846 -rw- 16271996 May 9 2022 15:19:20 +08:00 cat3k_caa-webui.16.06.08.SPA.pkg
46563 -rw- 450582304 May 9 2022 15:29:38 +08:00 cat3k_caa-universalk9.16.09.08.SPA.bin
17 -rw- 19862140 May 9 2022 15:42:40 +08:00 cat3k_caa-guestshell.16.09.08.SPA.pkg
13 -rw- 30867633 May 9 2022 15:42:12 +08:00 cat3k_caa-rpbase.16.09.08.SPA.pkg
16 -rw- 373860980 May 9 2022 15:42:39 +08:00 cat3k_caa-rpcore.16.09.08.SPA.pkg
14 -rw- 3172988 May 9 2022 15:42:12 +08:00 cat3k_caa-srdriver.16.09.08.SPA.pkg
18 -rw- 4774 May 9 2022 15:43:13 +08:00 cat3k_caa-universalk9.16.09.08.SPA.conf
15 -rw- 22813304 May 9 2022 15:42:13 +08:00 cat3k_caa-webui.16.09.08.SPA.pkg
46577 -rw- 0 May 9 2022 15:44:02 +08:00 .onreboot

1624104960 bytes total (224296960 bytes free)
demo-core#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;flash:cat3k_caa-universalk9.16.09.08.SPA.bin; //实在怕设备起不来的话也可以这样写,后面加上bin文件做一个备用启动

Boot Variables on next reload:
BOOT variable = flash:packages.conf;flash:cat3k_caa-universalk9.16.09.08.SPA.bin;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
demo-core#wr

demo-core#sh run | in boot
boot system switch all flash:packages.conf
boot system switch all flash:cat3k_caa-universalk9.16.09.08.SPA.bin

 

在原帖中查看解决方案

19 条回复19

ilay
VIP
VIP
3850_2F_Core#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:/cat3k_caa-universalk9.16.03.06.SPA.bin;flash:/cat3k_caa-universalk9.16.12.07.SPA.bin;

Boot Variables on next reload:
BOOT variable = flash:/cat3k_caa-universalk9.16.03.06.SPA.bin;flash:/cat3k_caa-universalk9.16.12.07.SPA.bin;
Manual Boot = no
Enable Break = no
Boot Mode= DEVICE
iPXE Timeout= 0
3850_2F_Core#


需要将16.3.6的启动设置no掉,从你的show boot来看,目前仍旧是16.3.6版本排在第一启动位,

flash空间建议清一下,可以将之前install模式的的启动包(xxxx-16.03.05b.SPA.pkg)删除掉,腾出一部分空间后再进行升级重启。

另外建议在核对一下新上传镜像的md5,因为你的flash空间一点都没了,不排除新的ios出问题。建议校验一下再进行后续操作。

命令 # verify /md5 flash:cat3k-xxxx

D_W
Level 1
Level 1

1, 启动包(xxxx-16.03.05b.SPA.pkg)删除掉对3850 启动有沒有影响?

2, 以后我想將BUNDLE 模式转换 install模式 現在删除掉这些启动包(xxxx-16.03.05b.SPA.pkg)对轉install模式有影响嗎?

3, Bundle模式换为Install模式 命令是否这样,

   switch# software expand running to flash:

   switch(config)# boot system switch all flash:packages.conf

   switch#wr

   switch#reload    还有沒有其他要设置, 转换模式 会不会对交換机配置那些Vlan有沒有影响?            

4,我有2組3850堆叠,其中1組是install 模式,另一組是bundle模式,把BUNDLE 模式转换 install模式对之前那組install模式有影响嗎?

 

77603 -rw- 15954556 Jan 15 2018 15:23:53 +00:00cat3k_caa-guestshell.16.03.05b.SPA.pkg
77604 -rw- 22301472 Jan 15 2018 15:23:51 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
77605 -rw- 266035828 Jan 15 2018 15:23:53 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15521 -rw- 9089660 Jan 15 2018 15:23:52 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15522 -rw- 212812400 Jan 15 2018 15:23:52 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
31041 -rw- 13423224 Jan 15 2018 15:23:52 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg

1和2:没有影响,甚至这个是必要的操作,在flash空间不足的情况下,无法完成到install模式的转换。

3.不确定你这个命令能否使用,如果能正常展开bin文件,并生成新的packages.conf,那么可以用这个方法,如果执行这个命令后packages.conf没有出现或者没有更新(show flash看看文件的时间),那这种方法应该是有问题的。

可以使用正常的install mode的升级方法来转换。

#request platform software package install switch all file flash:cat3k_caa-universalk9.16.x.x.SPA.bin new auto-copy

转换不会对已有配置造成影响(更改install mode后,启动时加载的是packages.conf,请在重启前再保存一下配置)

4. 转换只会影响你操作的那个堆叠组的设备,不在这个stack组中的交换机不受影响。

 

注意:

1. 转换务必留够充足的空间,例如:新升级ios的bin文件大小为400M,通过install模式升级之后,会额外再释放近400M的pkg文件,在加上升级前的旧的ios文件,没有足够的空间,install转换可能会报错。

2. 清理磁盘空间 request platform software package clean switch all 可以使用此命令清理磁盘空间,清理完空间之后再进行升级(清理过程会删除一些系统使用的文件,运行命令后系统会扫描当前的flash,然后会列出将要删除的文件,如果其中包括你需要保留的,可以随时终止删除,然后根据前面的列表进行手动删除即可)

=======删除示例

demo-core#request platform software package clean switch all
This operation may take several minutes...
Running command on switch 1
Cleaning up unnecessary package files
No path specified, will use booted path flash:packages.conf
Cleaning flash:
Scanning boot directory for packages ... done.
Preparing packages list to delete ...
cat3k_caa-guestshell.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpbase.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-rpcore.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-srdriver.16.06.08.SPA.pkg
File is in use, will not delete.
cat3k_caa-webui.16.06.08.SPA.pkg
File is in use, will not delete.
packages.conf
File is in use, will not delete.
done.

The following files will be deleted:
[switch 1]:
/flash/cat3k_caa-guestshell.16.09.05.SPA.pkg
/flash/cat3k_caa-rpbase.16.09.05.SPA.pkg
/flash/cat3k_caa-rpcore.16.09.05.SPA.pkg
/flash/cat3k_caa-srdriver.16.09.05.SPA.pkg
/flash/cat3k_caa-universalk9.16.09.05.SPA.conf
/flash/cat3k_caa-webui.16.09.05.SPA.pkg

Do you want to proceed? [y/n]y

[switch 1]:
Deleting file flash:cat3k_caa-guestshell.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpbase.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-rpcore.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-srdriver.16.09.05.SPA.pkg ... done.
Deleting file flash:cat3k_caa-universalk9.16.09.05.SPA.conf ... done.
Deleting file flash:cat3k_caa-webui.16.09.05.SPA.pkg ... done.
SUCCESS: Files deleted.
demo-core#dir
Directory of flash:/

46562 -rw- 1644 Jan 12 2022 15:08:30 +08:00 vlan.dat
46580 -rw- 4742 Sep 7 2020 15:16:08 +08:00 packages.conf
46568 drwx 4096 Jan 6 2021 11:00:19 +08:00 .installer
46569 -rw- 259 Jan 6 2021 11:00:19 +08:00 bootloader_evt_handle.log
46570 drwx 4096 Jun 4 2019 15:17:21 +08:00 core
77601 drwx 4096 Jun 4 2019 15:23:01 +08:00 .prst_sync
11 drwx 4096 Jun 4 2019 15:12:33 +08:00 .rollback_timer
7761 drwx 4096 Jun 4 2019 15:12:42 +08:00 gs_script
15521 drwx 4096 Jan 6 2021 11:00:36 +08:00 dc_profile_dir
46571 -rw- 128103 Jan 6 2021 11:00:57 +08:00 memleak.tcl
46573 -rw- 2097152 Aug 6 2021 19:24:53 +08:00 nvram_config
46575 -rw- 2097152 Aug 6 2021 19:24:54 +08:00 nvram_config_bkup
46572 -rw- 34 Sep 7 2020 15:08:19 +08:00 pnp-tech-time
46576 -rw- 65816 Sep 7 2020 15:08:23 +08:00 pnp-tech-discovery-summary
15 -rw- 19167872 Sep 7 2020 15:15:03 +08:00 cat3k_caa-guestshell.16.06.08.SPA.pkg
19 -rw- 30417560 Sep 7 2020 15:15:10 +08:00 cat3k_caa-rpbase.16.06.08.SPA.pkg
16 -rw- 336503416 Sep 7 2020 15:15:05 +08:00 cat3k_caa-rpcore.16.06.08.SPA.pkg
18 -rw- 5091968 Sep 7 2020 15:15:08 +08:00 cat3k_caa-srdriver.16.06.08.SPA.pkg
17 -rw- 16271996 Sep 7 2020 15:15:08 +08:00 cat3k_caa-webui.16.06.08.SPA.pkg

1624104960 bytes total (1126400000 bytes free)
demo-core#

 

参考:https://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst3850/software/release/16-12/release_notes/ol-16-12-3850.html

 

 

D_W
Level 1
Level 1

清理磁盘空间 request platform software package clean switch all 可以使用此命令清理磁盘空间,清理是否全部pkg文件,我不知道那些有用,那些沒用,怕清理錯?

目前版本是:16.3.6    

升到最新版:16.12.07

Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 32 WS-C3850-24T 16.3.6 CAT3K_CAA-UNIVERSALK9 BUNDLE
2 32 WS-C3850-24T 16.3.6 CAT3K_CAA-UNIVERSALK9 BUNDLE

 

 

3850_2F_Core#sh flash-1:
-#- --length-- ---------date/time--------- path
2 2097152 May 05 2022 09:31:39.0000000000 +00:00 nvram_config
3 15954556 Jan 15 2018 15:23:53.0000000000 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
4 22301472 Jan 15 2018 15:23:51.0000000000 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
5 266035828 Jan 15 2018 15:23:53.0000000000 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
6 9089660 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
7 212812400 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
8 13423224 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
9 4748 Jan 15 2018 15:24:16.0000000000 +00:00 packages.conf
10 1295 Oct 24 2020 08:41:44.0000000000 +00:00 bootloader_evt_handle.log
11 4096 Jan 15 2018 15:34:24.0000000000 +00:00 core
12 4096 Jan 15 2018 15:26:59.0000000000 +00:00 core/modules
13 1 May 07 2022 03:42:36.0000000000 +00:00 core/.callhome
14 4096 Jan 15 2018 15:26:58.0000000000 +00:00 .prst_sync
15 4096 Jan 15 2018 15:27:00.0000000000 +00:00 .rollback_timer
16 4096 Oct 24 2020 08:41:57.0000000000 +00:00 dc_profile_dir
17 202640 Oct 24 2020 08:41:57.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt
18 202640 Oct 24 2020 07:21:07.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt.bkp
19 337525 Sep 21 2020 05:21:33.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt
20 337525 Sep 21 2020 05:21:33.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt.bkp
21 4096 Jan 15 2018 15:27:08.0000000000 +00:00 gs_script
22 65301 Oct 24 2020 08:42:15.0000000000 +00:00 memleak.tcl
23 4096 Sep 21 2020 05:21:20.0000000000 +00:00 .installer
24 4096 Sep 21 2020 05:08:07.0000000000 +00:00 .installer/issu_crash
25 50 Sep 21 2020 05:21:18.0000000000 +00:00 .installer/last_pkgconf_shasum
26 2097152 May 05 2022 09:31:40.0000000000 +00:00 nvram_config_bkup
27 35 Sep 24 2020 03:10:53.0000000000 +00:00 pnp-tech-time
28 53044 Sep 24 2020 03:10:59.0000000000 +00:00 pnp-tech-discovery-summary
29 4096 Sep 21 2020 05:08:04.0000000000 +00:00 tech_support
30 15359 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/igmp-snooping.tcl
31 1617 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/igmpsn_dump.tcl
32 13515 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/mld-snooping.tcl
33 1612 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/mldsn_dump.tcl
34 15345 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/multicast.tcl
35 6178 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/multicast_dump.tcl
36 988 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv4.tcl
37 1012 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv6.tcl
38 44600 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-source.tcl
39 617 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric.tcl
40 1548 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform_evpn_vxlan.tcl
41 13741 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port.tcl
42 3275 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port_dump.tcl
43 7317 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port_utils.tcl
44 3686 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/stackwise-virtual.tcl
45 37308 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/unicast.tcl
46 12456 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/unicast_dump.tcl
47 336 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/utils.tcl
48 4096 Sep 21 2020 05:23:05.0000000000 +00:00 .dbpersist
49 0 Sep 21 2020 05:23:14.0000000000 +00:00 rdope_out.txt
50 68 Sep 21 2020 05:23:26.0000000000 +00:00 rdope.log
51 4096 Sep 21 2020 05:23:33.0000000000 +00:00 onep
52 4096 Sep 21 2020 05:23:33.0000000000 +00:00 onep/apps-cli
53 537577577 Oct 16 2020 09:16:08.0000000000 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin 
54 1336 May 07 2022 03:43:10.0000000000 +00:00 vlan.dat
55 480189009 May 05 2022 08:49:06.0000000000 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin
0 bytes available (1567141888 bytes used)

3850_2F_Core#

你当前的是16.3.6版本,那么所有16.03.05b的pkg文件都是没有用的,包括现有的packages.conf文件(packages.conf也就几k的大小,不清理也没关系)可以直接删除掉。两个bin文件中16.3.6和16.12.7一个是现有版本一个是目标升级版本,可以不清理,其他的小文件保持现状就行了。

清理只有一个目的,保证腾出来的空间大于你目标升级版本的大小就行了。例如16.12.7 bin文件457M。那么最好腾出来470M左右的空间,保目标文件能正常释放出来。

极端情况下,可以考虑删除现有的ios文件或者将16.12.7的bin文件移动到外置U盘中,直接通过usbflash进行安装

 

重启测试正常之后可以删除不用的bin文件

D_W
Level 1
Level 1

用这个命令清理磁盘空间 request platform software package clean switch all ,空间还是0

3850_2F_Core#dir flash-1:
Directory of flash-1:/

77602 -rw- 2097152 May 5 2022 09:31:39 +00:00 nvram_config
77603 -rw- 15954556 Jan 15 2018 15:23:53 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
77604 -rw- 22301472 Jan 15 2018 15:23:51 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
77605 -rw- 266035828 Jan 15 2018 15:23:53 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15521 -rw- 9089660 Jan 15 2018 15:23:52 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15522 -rw- 212812400 Jan 15 2018 15:23:52 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
31041 -rw- 13423224 Jan 15 2018 15:23:52 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
31042 -rw- 4748 Jan 15 2018 15:24:16 +00:00 packages.conf
31043 -rw- 1295 Oct 24 2020 08:41:44 +00:00 bootloader_evt_handle.log
11 drwx 4096 Jan 15 2018 15:34:24 +00:00 core
7762 drwx 4096 Jan 15 2018 15:26:58 +00:00 .prst_sync
38801 drwx 4096 Jan 15 2018 15:27:00 +00:00 .rollback_timer
46561 drwx 4096 Oct 24 2020 08:41:57 +00:00 dc_profile_dir
46563 drwx 4096 Jan 15 2018 15:27:08 +00:00 gs_script
31045 -rw- 65301 Oct 24 2020 08:42:15 +00:00 memleak.tcl
31046 drwx 4096 Sep 21 2020 05:21:20 +00:00 .installer
31047 -rw- 2097152 May 5 2022 09:31:40 +00:00 nvram_config_bkup
31048 -rw- 35 Sep 24 2020 03:10:53 +00:00 pnp-tech-time
31049 -rw- 53044 Sep 24 2020 03:10:59 +00:00 pnp-tech-discovery-summary
13 drwx 4096 Sep 21 2020 05:08:04 +00:00 tech_support
32 drwx 4096 Sep 21 2020 05:23:05 +00:00 .dbpersist
31052 -rw- 0 Sep 21 2020 05:23:14 +00:00 rdope_out.txt
31053 -rw- 68 Sep 21 2020 05:23:26 +00:00 rdope.log
33 drwx 4096 Sep 21 2020 05:23:33 +00:00 onep
31054 -rw- 537577577 Oct 16 2020 09:16:08 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin
31055 -rw- 1336 May 7 2022 06:11:08 +00:00 vlan.dat
31056 -rw- 480189009 May 5 2022 08:49:06 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin

1624104960 bytes total (0 bytes free)

3850_2F_Core#dir flash-2:
Directory of flash-2:/

46595 -rw- 2097152 May 5 2022 09:31:41 +00:00 nvram_config
77604 -rw- 4737 Jun 27 2018 03:13:01 +00:00 packages.conf
62081 drwx 4096 Sep 21 2020 05:21:29 +00:00 .installer
77605 -rw- 15950464 Jun 27 2018 03:12:14 +00:00 cat3k_caa-guestshell.16.03.06.SPA.pkg
77610 -rw- 22302593 Jun 27 2018 03:12:18 +00:00 cat3k_caa-rpbase.16.03.06.SPA.pkg
77606 -rw- 265124472 Jun 27 2018 03:12:15 +00:00 cat3k_caa-rpcore.16.03.06.SPA.pkg
77608 -rw- 9095808 Jun 27 2018 03:12:16 +00:00 cat3k_caa-srdriver.16.03.06.SPA.pkg
77609 -rw- 211675764 Jun 27 2018 03:12:17 +00:00 cat3k_caa-wcm.16.03.06.SPA.pkg
77607 -rw- 13423228 Jun 27 2018 03:12:16 +00:00 cat3k_caa-webui.16.03.06.SPA.pkg
46563 -rw- 2097152 May 5 2022 09:31:42 +00:00 nvram_config_bkup
46564 -rw- 1332 Oct 24 2020 08:41:07 +00:00 bootloader_evt_handle.log
46565 drwx 4096 Jun 27 2018 03:18:55 +00:00 core
54321 drwx 4096 Jun 27 2018 03:15:41 +00:00 .prst_sync
69841 drwx 4096 Jun 27 2018 03:15:43 +00:00 .rollback_timer
77602 drwx 4096 Oct 24 2020 08:41:21 +00:00 dc_profile_dir
77611 drwx 4096 Jun 27 2018 03:15:51 +00:00 gs_script
46566 -rw- 65301 Oct 24 2020 08:41:38 +00:00 memleak.tcl
46567 -rw- 35 Sep 24 2020 01:29:05 +00:00 pnp-tech-time
46569 -rw- 48568 Sep 24 2020 01:29:11 +00:00 pnp-tech-discovery-summary
46570 drwx 4096 Sep 21 2020 04:47:41 +00:00 tech_support
46589 drwx 4096 Sep 21 2020 05:23:13 +00:00 .dbpersist
46590 -rw- 0 Sep 21 2020 05:23:23 +00:00 rdope_out.txt
46591 -rw- 68 Sep 21 2020 05:23:34 +00:00 rdope.log
46592 drwx 4096 Sep 21 2020 05:23:40 +00:00 onep
46594 -rw- 537577577 Oct 16 2020 08:40:21 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin
46562 -rw- 1336 May 7 2022 06:41:44 +00:00 vlan.dat
46596 -rw- 480189009 May 5 2022 08:56:21 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin

1624244224 bytes total (0 bytes free)


3850_2F_Core#

 

3850_2F_Core#request platform software package clean switch all
Running command on switch 1
Cleaning up unnecessary package files
No path specified, will use booted path consolidated:packages.conf
Cleaning sw/isos
Scanning boot directory for packages ... done.
Preparing packages list to 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.
packages.conf
File is in use, will not delete.
done.

SUCCESS: No extra package or provisioning files found on media. Nothing to clean.
Running command on switch 2
Cleaning up unnecessary package files
No path specified, will use booted path consolidated:packages.conf
Cleaning sw/isos
Scanning boot directory for packages ... done.
Preparing packages list to 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.
packages.conf
File is in use, will not delete.
done.

SUCCESS: No extra package or provisioning files found on media. Nothing to clean.

3850_2F_Core#dir flash1:
^
% Invalid input detected at '^' marker.

3850_2F_Core#dir flash:
Directory of flash:/

77602 -rw- 2097152 May 5 2022 09:31:39 +00:00 nvram_config
77603 -rw- 15954556 Jan 15 2018 15:23:53 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
77604 -rw- 22301472 Jan 15 2018 15:23:51 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
77605 -rw- 266035828 Jan 15 2018 15:23:53 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
15521 -rw- 9089660 Jan 15 2018 15:23:52 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
15522 -rw- 212812400 Jan 15 2018 15:23:52 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
31041 -rw- 13423224 Jan 15 2018 15:23:52 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
31042 -rw- 4748 Jan 15 2018 15:24:16 +00:00 packages.conf
31043 -rw- 1295 Oct 24 2020 08:41:44 +00:00 bootloader_evt_handle.log
11 drwx 4096 Jan 15 2018 15:34:24 +00:00 core
7762 drwx 4096 Jan 15 2018 15:26:58 +00:00 .prst_sync
38801 drwx 4096 Jan 15 2018 15:27:00 +00:00 .rollback_timer
46561 drwx 4096 Oct 24 2020 08:41:57 +00:00 dc_profile_dir
46563 drwx 4096 Jan 15 2018 15:27:08 +00:00 gs_script
31045 -rw- 65301 Oct 24 2020 08:42:15 +00:00 memleak.tcl
31046 drwx 4096 Sep 21 2020 05:21:20 +00:00 .installer
31047 -rw- 2097152 May 5 2022 09:31:40 +00:00 nvram_config_bkup
31048 -rw- 35 Sep 24 2020 03:10:53 +00:00 pnp-tech-time
31049 -rw- 53044 Sep 24 2020 03:10:59 +00:00 pnp-tech-discovery-summary
13 drwx 4096 Sep 21 2020 05:08:04 +00:00 tech_support
32 drwx 4096 Sep 21 2020 05:23:05 +00:00 .dbpersist
31052 -rw- 0 Sep 21 2020 05:23:14 +00:00 rdope_out.txt
31053 -rw- 68 Sep 21 2020 05:23:26 +00:00 rdope.log
33 drwx 4096 Sep 21 2020 05:23:33 +00:00 onep
31054 -rw- 537577577 Oct 16 2020 09:16:08 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin
31055 -rw- 1336 May 7 2022 06:11:08 +00:00 vlan.dat
31056 -rw- 480189009 May 5 2022 08:49:06 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin

1624104960 bytes total (0 bytes free)
3850_2F_Core#

D_W
Level 1
Level 1

1, 清理磁盘空间 request platform software package clean switch all 可以使用此命令清理磁盘空间,清理是否全部pkg文件,我不知道那些有用,那些沒用,怕清理錯?

2, 目前模式是Bundle模式,用这个命令可以自动转换为install 模式嗎?

    

#request platform software package install switch all file flash:cat3k_caa-universalk9.16.x.x.SPA.bin new auto-copy

目前版本是:16.3.6    

升到最新版:16.12.07

Switch Ports Model SW Version SW Image Mode
------ ----- ----- ---------- ---------- ----
* 1 32 WS-C3850-24T 16.3.6 CAT3K_CAA-UNIVERSALK9 BUNDLE
2 32 WS-C3850-24T 16.3.6 CAT3K_CAA-UNIVERSALK9 BUNDLE

 

3850_2F_Core#sh flash-1:
-#- --length-- ---------date/time--------- path
2 2097152 May 05 2022 09:31:39.0000000000 +00:00 nvram_config
3 15954556 Jan 15 2018 15:23:53.0000000000 +00:00 cat3k_caa-guestshell.16.03.05b.SPA.pkg
4 22301472 Jan 15 2018 15:23:51.0000000000 +00:00 cat3k_caa-rpbase.16.03.05b.SPA.pkg
5 266035828 Jan 15 2018 15:23:53.0000000000 +00:00 cat3k_caa-rpcore.16.03.05b.SPA.pkg
6 9089660 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-srdriver.16.03.05b.SPA.pkg
7 212812400 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-wcm.16.03.05b.SPA.pkg
8 13423224 Jan 15 2018 15:23:52.0000000000 +00:00 cat3k_caa-webui.16.03.05b.SPA.pkg
9 4748 Jan 15 2018 15:24:16.0000000000 +00:00 packages.conf
10 1295 Oct 24 2020 08:41:44.0000000000 +00:00 bootloader_evt_handle.log
11 4096 Jan 15 2018 15:34:24.0000000000 +00:00 core
12 4096 Jan 15 2018 15:26:59.0000000000 +00:00 core/modules
13 1 May 07 2022 03:42:36.0000000000 +00:00 core/.callhome
14 4096 Jan 15 2018 15:26:58.0000000000 +00:00 .prst_sync
15 4096 Jan 15 2018 15:27:00.0000000000 +00:00 .rollback_timer
16 4096 Oct 24 2020 08:41:57.0000000000 +00:00 dc_profile_dir
17 202640 Oct 24 2020 08:41:57.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt
18 202640 Oct 24 2020 07:21:07.0000000000 +00:00 dc_profile_dir/dc_default_profiles.txt.bkp
19 337525 Sep 21 2020 05:21:33.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt
20 337525 Sep 21 2020 05:21:33.0000000000 +00:00 dc_profile_dir/dc_embedded_profiles.txt.bkp
21 4096 Jan 15 2018 15:27:08.0000000000 +00:00 gs_script
22 65301 Oct 24 2020 08:42:15.0000000000 +00:00 memleak.tcl
23 4096 Sep 21 2020 05:21:20.0000000000 +00:00 .installer
24 4096 Sep 21 2020 05:08:07.0000000000 +00:00 .installer/issu_crash
25 50 Sep 21 2020 05:21:18.0000000000 +00:00 .installer/last_pkgconf_shasum
26 2097152 May 05 2022 09:31:40.0000000000 +00:00 nvram_config_bkup
27 35 Sep 24 2020 03:10:53.0000000000 +00:00 pnp-tech-time
28 53044 Sep 24 2020 03:10:59.0000000000 +00:00 pnp-tech-discovery-summary
29 4096 Sep 21 2020 05:08:04.0000000000 +00:00 tech_support
30 15359 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/igmp-snooping.tcl
31 1617 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/igmpsn_dump.tcl
32 13515 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/mld-snooping.tcl
33 1612 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/mldsn_dump.tcl
34 15345 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/multicast.tcl
35 6178 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/multicast_dump.tcl
36 988 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv4.tcl
37 1012 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-ipv6.tcl
38 44600 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric-vrf-source.tcl
39 617 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform-fabric.tcl
40 1548 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/platform_evpn_vxlan.tcl
41 13741 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port.tcl
42 3275 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port_dump.tcl
43 7317 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/port_utils.tcl
44 3686 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/stackwise-virtual.tcl
45 37308 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/unicast.tcl
46 12456 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/unicast_dump.tcl
47 336 Sep 21 2020 05:21:33.0000000000 +00:00 tech_support/utils.tcl
48 4096 Sep 21 2020 05:23:05.0000000000 +00:00 .dbpersist
49 0 Sep 21 2020 05:23:14.0000000000 +00:00 rdope_out.txt
50 68 Sep 21 2020 05:23:26.0000000000 +00:00 rdope.log
51 4096 Sep 21 2020 05:23:33.0000000000 +00:00 onep
52 4096 Sep 21 2020 05:23:33.0000000000 +00:00 onep/apps-cli
53 537577577 Oct 16 2020 09:16:08.0000000000 +00:00 cat3k_caa-universalk9.16.03.06.SPA.bin 
54 1336 May 07 2022 03:43:10.0000000000 +00:00 vlan.dat
55 480189009 May 05 2022 08:49:06.0000000000 +00:00 cat3k_caa-universalk9.16.12.07.SPA.bin
0 bytes available (1567141888 bytes used)

3850_2F_Core#

1.如果执行命令有可以清理的文件的时候,它会先给你列一下要删除的文件,并询问你是否删除,只有输入y并确认了才行。清理的时候主要删除带有版本号的pkg文件或者bin文件,其他的不要动就行了

2.使用这个可以将模式转换为install mode。

另外看到你发的两个flash-1 flash-2的文件是不一样的。。flash-1中的pkg文件是16.3.5b的版本,flash-2中是16.3.6版本的。但从你show的输出看目前确实是bundle模式。

先手动用delete命令删掉所有的pkg文件吧,看看空间是否能释放出来。

delete flash-1:cat3k_caa-xxxx-16.03.05b.xxxx.pkg 

delete flash-2:cat3k_caa-xxxx-16.03.06.xxxx.pkg

如果能释放出来,可以考虑执行 request命令释放新的系统,然后更改启动配置。(auto-copy可能不需要加了,flash-1和flash-2都有新的bin文件,不需要再执行自动copy了)

如果空间没有释放出来,那或许是设备硬件问题或者软件bug了,建议开case或者先重启试试

D_W
Level 1
Level 1

File is in use, will not delete.

1, 这些文件在用,用

delete flash-1:cat3k_caa-xxxx-16.03.05b.xxxx.pkg 

delete flash-2:cat3k_caa-xxxx-16.03.06.xxxx.pkg

能刪除嗎,刪除對現在运行的系統有沒有問題?

 

2, 如刪除成功是否 #request platform software package install switch all file flash:cat3k_caa-universalk9.16.x.x.SPA.bin new

   switch(config)# boot system switch all flash:packages.conf

   switch#wr

   switch#reload  这样就可以?

 

1.你设备上的 xxx.pkg文件肯定是没有在用的,至于request xxx clean命令提示在用,这个我也不清楚是什么机制,删了肯定没啥影响。现在首要的目标是清理flash空间,如果没有空余的磁盘空间,后续升级操作是没办法进行的。

   即便是正在使用的16.3.6的bin文件也可以删除,系统正常运行时,所需要的东西都加载到了内存中,删除bin文件也不会有什么影响,放心搞吧。确认删除文件后空间能正常释放出来就行了

2.是这个步骤,不过最好额外验证一下两个交换机的flash,show flash-1: show flash-2: 确认两个flash中释放的文件都正常就行了

==============

补充:

1.升级后务必确认flash中的packages.conf是存在的,且是最新的(核对文件时间,或者copy 出来用文本工具查看文件内容)

2.升级过程示例

demo-core#request platform software package install switch all file flash:cat3k_caa-universalk9.16.09.08.SPA.bin retain-source-file new verbose //retain-source-file的目的是保留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.09.08.SPA.bin
[1]: Expanding file
[1]: Finished expanding all-in-one software package in switch 1
SUCCESS: Finished expanding all-in-one software package.
... expand successful
[1]: Performing install
SUCCESS: install finished
... Operation install completed. Checking for status
[1]: install package(s) on switch 1
--- Starting list of software package changes ---
Old files list:
Removed cat3k_caa-guestshell.16.06.08.SPA.pkg
Removed cat3k_caa-rpbase.16.06.08.SPA.pkg
Removed cat3k_caa-rpcore.16.06.08.SPA.pkg
Removed cat3k_caa-srdriver.16.06.08.SPA.pkg
Removed cat3k_caa-webui.16.06.08.SPA.pkg
New files list:
Added cat3k_caa-guestshell.16.09.08.SPA.pkg
Added cat3k_caa-rpbase.16.09.08.SPA.pkg
Added cat3k_caa-rpcore.16.09.08.SPA.pkg
Added cat3k_caa-srdriver.16.09.08.SPA.pkg
Added cat3k_caa-webui.16.09.08.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]
Ensuring that cached content is written to media
... cached content flushed to media
demo-core#dir
Directory of flash:/

46562 -rw- 1644 May 9 2022 15:38:35 +08:00 vlan.dat
46567 -rw- 4774 May 9 2022 15:43:50 +08:00 packages.conf
69844 -rw- 19167872 May 9 2022 15:19:17 +08:00 cat3k_caa-guestshell.16.06.08.SPA.pkg
69848 -rw- 30417560 May 9 2022 15:19:20 +08:00 cat3k_caa-rpbase.16.06.08.SPA.pkg
46566 -rw- 4742 May 9 2022 15:43:50 +08:00 packages.conf.00- //从install mode 升级之后原有的packages.conf会被重命名
46568 drwx 4096 May 9 2022 15:35:18 +08:00 .installer
46569 -rw- 296 May 9 2022 15:35:19 +08:00 bootloader_evt_handle.log
46570 drwx 4096 Jun 4 2019 15:17:21 +08:00 core
77601 drwx 4096 Jun 4 2019 15:23:01 +08:00 .prst_sync
11 drwx 4096 Jun 4 2019 15:12:33 +08:00 .rollback_timer
7761 drwx 4096 Jun 4 2019 15:12:42 +08:00 gs_script
15521 drwx 4096 May 9 2022 15:35:35 +08:00 dc_profile_dir
46571 -rw- 128103 May 9 2022 15:35:56 +08:00 memleak.tcl
46573 -rw- 2097152 May 9 2022 15:38:41 +08:00 nvram_config
46575 -rw- 2097152 May 9 2022 15:38:42 +08:00 nvram_config_bkup
46572 -rw- 34 Sep 7 2020 15:08:19 +08:00 pnp-tech-time
46576 -rw- 65816 Sep 7 2020 15:08:23 +08:00 pnp-tech-discovery-summary
69845 -rw- 336503416 May 9 2022 15:19:19 +08:00 cat3k_caa-rpcore.16.06.08.SPA.pkg
69847 -rw- 5091968 May 9 2022 15:19:20 +08:00 cat3k_caa-srdriver.16.06.08.SPA.pkg
69846 -rw- 16271996 May 9 2022 15:19:20 +08:00 cat3k_caa-webui.16.06.08.SPA.pkg
46563 -rw- 450582304 May 9 2022 15:29:38 +08:00 cat3k_caa-universalk9.16.09.08.SPA.bin
17 -rw- 19862140 May 9 2022 15:42:40 +08:00 cat3k_caa-guestshell.16.09.08.SPA.pkg
13 -rw- 30867633 May 9 2022 15:42:12 +08:00 cat3k_caa-rpbase.16.09.08.SPA.pkg
16 -rw- 373860980 May 9 2022 15:42:39 +08:00 cat3k_caa-rpcore.16.09.08.SPA.pkg
14 -rw- 3172988 May 9 2022 15:42:12 +08:00 cat3k_caa-srdriver.16.09.08.SPA.pkg
18 -rw- 4774 May 9 2022 15:43:13 +08:00 cat3k_caa-universalk9.16.09.08.SPA.conf
15 -rw- 22813304 May 9 2022 15:42:13 +08:00 cat3k_caa-webui.16.09.08.SPA.pkg
46577 -rw- 0 May 9 2022 15:44:02 +08:00 .onreboot

1624104960 bytes total (224296960 bytes free)
demo-core#sh boot
---------------------------
Switch 1
---------------------------
Current Boot Variables:
BOOT variable = flash:packages.conf;flash:cat3k_caa-universalk9.16.09.08.SPA.bin; //实在怕设备起不来的话也可以这样写,后面加上bin文件做一个备用启动

Boot Variables on next reload:
BOOT variable = flash:packages.conf;flash:cat3k_caa-universalk9.16.09.08.SPA.bin;
Manual Boot = no
Enable Break = no
Boot Mode = DEVICE
iPXE Timeout = 0
demo-core#wr

demo-core#sh run | in boot
boot system switch all flash:packages.conf
boot system switch all flash:cat3k_caa-universalk9.16.09.08.SPA.bin

 

D_W
Level 1
Level 1

delete flash-1:cat3k_caa-xxxx-16.03.05b.xxxx.pkg 

delete flash-2:cat3k_caa-xxxx-16.03.06.xxxx.pkg

用这刪除PKG文件,空间能正常释放,

启动加多一項,起动時候会不会重复启动,还是起动第一項成功,第二項就不会启动?

boot system switch all flash:packages.conf
boot system switch all flash:cat3k_caa-universalk9.16.09.08.SPA.bin

为什么会想到重复启动?

设置多个启动选项时,仅会加载第一个有效的启动项,若所有启动项都有问题,那设备就启动不起来了

D_W
Level 1
Level 1

好的,非常感謝你的帮肋, 我有另一組的3850堆叠,install 模式,升到最新IOS,是否按以下升就可以?

1, 抄最新IOS 到flash:

2, #request platform software package install switch all file flash:cat3k_caa-universalk9.16.x.x.SPA.bin new auto-copy

    #wr

    #reload      还有其他或需要注意什么的嗎?

 

该说的在上上个回复都说完了,没其他的了。

入门指南

使用上面的搜索栏输入关键字、短语或问题,搜索问题的答案。

我们希望您在这里的旅程尽可能顺利,因此这里有一些链接可以帮助您快速熟悉思科社区:









快捷链接