簡介
本文檔介紹在自主模式下運行的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 2022年7月31日16:33:58-05:00 ir1101-mono universalk9_iot.17.09.01.SPA.pkg
62611-rw-675136809 Aug 8 2023年8月8日12:37:22-05:00 ir1101-universalk9.17.09.01.SPA.bin
案例
在特定情況下,特別是在引導快閃記憶體因累積日誌和崩潰檔案而已滿時,在自主模式下運行的路由器(無論在捆綁包模式還是安裝模式下)可能會面臨升級限制。在繼續升級之前,必須通過刪除不必要的檔案和資料夾來清理bootflash。
因應措施
從快閃記憶體中刪除未使用的映像、.conf和.pkg檔案。
或者,對於自動方法,請使用EEM/Python指令碼清理檔案。此連結包含詳細的步驟和說明。
https://github.com/CiscoDevNet/IR1101_flash_cleanup/
「install remove inactive」命令是在安裝模式下引導的裝置上清除未使用的軟體包的最安全、最有效的方法。此命令從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