简介
本文档介绍在自治模式下运行的Cisco IR1101路由器上确定和缓解软件升级问题的步骤。
问题说明
这篇文章与IR1101升级问题的现场通知FN74237一致。
在2024年12月15日之前订购和发货的IR 1101路由器在自主模式下运行并运行17.9.x版本及更高版本,可能会因用于执行软件升级的闪存空间减少而受到影响。受影响的路由器包含加载到闪存中的.bin和.pkg文件。
IR1101的CLI输出
显示闪存上.bin和.pkg文件的输出代码段。
IR1101-2# dir bootflash:
62602-rw-63697069 2023年8月8日12:44:50-05:00 ir1101-rpboot.17.09.01.SPA.pkg
62605-rw-674161724 Jul 31 2022 16:33:58-05:00 ir1101-mono universalk9_iot.17.09.01.SPA.pkg
62611-rw-675136809 Aug 8 2023 12:37:22-05:00 ir1101-universalk9.17.09.01.SPA.bin
场景
在特定情况下,尤其是当由于累积日志和崩溃文件而导致bootflash已满时,在自主模式下运行的路由器(无论是捆绑包模式还是安装模式)可能会面临升级限制。在继续升级之前,需要通过删除不必要的文件和文件夹来清理bootflash。
解决方法
从闪存中删除未使用的映像、.conf和.pkg文件。
或者,对于自动方法,请使用EEM/Python脚本清理文件。此链接包含详细的步骤和说明。
https://github.com/CiscoDevNet/IR1101_flash_cleanup/
“install remove inactive”命令是清理在以“Install Mode”引导的设备上未使用的软件包的最安全、最有效的方法。此命令从Bootflash中删除旧的非活动软件映像和软件包,释放空间而不会影响正在运行的系统,从而确保仅保留活动软件。
也可以使用这些命令删除文件,以成功升级。
delete /force /recursive bootflash:/install_repo
delete /force /recursive bootflash:/staging
delete /force /recursive bootflash:/core
delete /force /recursive bootflash:/admintech
delete /force /recursive bootflash:/tracelogs
delete /force /recursive bootflash:/syslog
delete /force /recursive bootflash:/crashinfo_*
delete /force /recursive bootflash:/rollback_timer*
delete /force /recursive bootflash:/license_evlog/.log
delete /force /recursive bootflash:/collated_log
delete /force /recursive bootflash:/lost+found
delete /force /recursive bootflash:/admintech_trace
如果路由器在捆绑包模式下运行,请勿删除.bin文件。但是,删除.pkg和.conf文件是安全的。使用此示例命令验证当前运行的映像,并删除任何未使用的.bin文件。
示例:
Router#show version | include System image
System image file is "bootflash:ir1101-universalk9.17.11.01a.SPA.bin"
Router#
Router#dir bootflash: | include .bin (Delete older images which aren't in use one by one as below)
delete /force /recursive bootflash:/img*.bin