簡介
本檔案介紹在無應用程式原則基礎架構控制器(APIC)的情況下升級/降級以應用程式為中心的基礎架構(ACI)交換器。
必要條件
需求
本文件沒有特定需求。
採用元件
本文中的資訊係根據以下軟體和硬體版本:
- N9K-C93180YC-EX
- 主控台纜線
- 通用串列匯流排(USB)儲存(格式為FAT32)
- Cisco Nexus ACI韌體映像
本文中的資訊是根據特定實驗室環境內的裝置所建立。文中使用到的所有裝置皆從已清除(預設)的組態來啟動。如果您的網路運作中,請確保您瞭解任何指令可能造成的影響。
問題
在裝置的維護階段,裝置硬體經常被損壞,需要更換退貨授權(RMA)。但是,當您收到RMA後,裝置上運行的版本很少與現有網路上運行的版本一致。必須先升級或降級版本,然後才能更換裝置。
但是,必須在APIC上執行ACI裝置升級/降級,但由於版本不同,當前無法將裝置新增到APIC。因此,您必須使用CLI來升級或降級交換器。
附註:在某些情況下,交換器的可擦可程式設計邏輯裝置(EPLD)/現場可程式設計門陣列(FPGA)/基本輸入/輸出系統(BIOS)版本也需要升級。
通過CLI升級ACI版本會忽略其他版本的升級。
建議升級的目標為與APIC版本不同的小型版本。
交換器加入APIC後,將交換器升級為一致的版本,即使用APIC升級交換器,同時升級EPLD/FPGA/BIOS版本。
解決方案
您可以通過上述五個步驟升級/降級裝置。
步驟1.將ACI韌體映像上傳到交換機
您可以使用USB儲存裝置將映像傳輸至交換器。
(none)# cp /usb/usb1/aci-n9000-dk9.15.2.8h.bin /bootflash/
附註:如果您的交換器是現有的備件,在某些情況下,交換器可以具有您先前設定的帶外(OOB)位址。
此時,您還可以通過安全複製(SCP)/檔案傳輸協定(FTP)等協定將映像傳輸到裝置。
(none)# scp user@your-scp-server:aci-n9000-dk9.15.2.8h.bin /bootflash/aci-n9000-d k9.15.2.8h.bin
(none)# md5sum /bootflash/aci- n9000-dk9.15.2.8h.bin
e9065f12d6eac79d15091f0c595ed9e5 /bootflash/aci- n9000-dk9.15.2.8h.bin
步驟2.清除現有的交換器開機變數
(none)# clear-bootvars.sh
(none)#
步驟3.設定新的交換機引導變數
(none)# setup-bootvars.sh aci-n9000-dk9.15.2.8h.bin
(none)#
步驟4.驗證開機變數
(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local
boot aci-n9000-dk9.15.2.8h.bin
(none)# cat /mnt/cfg/1/boot/grub/menu.lst.local
boot aci-n9000-dk9.15.2.8h.bin
(none)#
步驟5.重新載入機箱
(none)# reload
This command will reload the chassis, Proceed (y/n)? [n]: y
驗證
重新啟動後檢查交換機版本。
(none)# show version
Cisco Nexus Operating System (NX-OS) Software
TAC support: http://www.cisco.com/tac
Documents: http://www.cisco.com/en/US/products/ps9372/tsd_products_support_series_home.html
Copyright (c) 2002-2014, Cisco Systems, Inc. All rights reserved.
The copyrights to certain works contained in this software are
owned by other third parties and used and distributed under
license. Certain components of this software are licensed under
the GNU General Public License (GPL) version 2.0 or the GNU
Lesser General Public License (LGPL) Version 2.1. A copy of each
such license is available at
http://www.opensource.org/licenses/gpl-2.0.php and
http://www.opensource.org/licenses/lgpl-2.1.php
Software
BIOS: version 07.69
kickstart: version 15.2(8h) [build 15.2(8h)]
system: version 15.2(8h) [build 15.2(8h)]
PE: version 5.2(8h)
BIOS compile time: 04/07/2021
kickstart image file is: /bootflash/aci-n9000-dk9.15.2.8h.bin
kickstart compile time: 12/06/2023 03:00:51 [12/06/2023 03:00:51]
system image file is: /bootflash/auto-s
system compile time: 12/06/2023 03:00:51 [12/06/2023 03:00:51]
Hardware
cisco N9K-C93180YC-EX ("supervisor")
Intel(R) Xeon(R) CPU @ 1.80GHz with 24499200 kB of memory.
Processor Board ID FDO211113N0
Device name: f6leaf101
bootflash: 62522368 kB
Kernel uptime is 00 day(s), 00 hour(s), 51 minute(s), 12 second(s)
Last reset at 560000 usecs after Thu Mar 21 23:03:15 2024 CST
Reason: reset-requested-by-cli-command-reload
System version: 15.2(8h)
Service: PolicyElem Ch reload
plugin
Core Plugin, Ethernet Plugin
(none)#
疑難排解
當儲存空間利用率超過40%時,系統會刪除您上傳的映像。
如果您在將映像上傳到/bootflash資料夾時看不到映像,
請在上傳映像之前應用解決方法。
# touch /tmp/install_in_progress
假設您的脊柱在機箱中有兩個監控器。你需要做這些步驟。
!login Active Supervisor.
# touch /tmp/install_in_progress
# scp user@scp-server:/floder-path/image-name /bootflash
# cd /bootflash
# md5sum image-name
# clear-bootvars.sh
# setup-bootvars.sh image-anme
# setup-clean-config.sh
# sync
!Connect to the console of the standby supervisor.
!copy the image from the active supervisor.
!The active Supervisor IP is 127.1.1.x, and the x is the slot number of the active supervisor.
# touch /tmp/install_in_progress
# scp admin@127.1.1.28:/bootflash/image-name /bootflash/
# cd /bootflash
# md5sum image-name
# clear-bootvars.sh
# setup-bootvars.sh image-anme
# setup-clean-config.sh
# sync
# reload
!then reload in Active Supervisor
# reload