การอัพเกรด Cisco Nexus 9000 Series software โดยปกติ Cisco Nexus Switch จะมาพร้อมกับ Cisco NX-OS ที่ได้ทำการติดตั้งมาจากโรงงาน แต่หากเราต้องอัพเกรดให้เป็นเวอร์ชั่นล่าสุด สามารถทำได้ ตามขั้นตอนในบทนี้ ซึ่งสามารถใช้ได้กับ Cisco Nexus 9000 Series และ Nexus 3000 Series ทุกรุ่น สามารถติดตามขั้นตอนได้จากข้อมูลด้านล่างนี้ได้เลยครับ
1. Check version และรุ่นของ Nexus Switch
switch# show version Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (C) 2002-2022, Cisco and/or its affiliates. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under their own licenses, such as open source. This software is provided "as is," and unless otherwise stated, there is no warranty, express or implied, including but not limited to warranties of merchantability and fitness for a particular purpose. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or GNU General Public License (GPL) version 3.0 or the GNU Lesser General Public License (LGPL) Version 2.1 or Lesser General Public License (LGPL) Version 2.0. A copy of each such license is available at http://www.opensource.org/licenses/gpl-2.0.php and http://opensource.org/licenses/gpl-3.0.html and http://www.opensource.org/licenses/lgpl-2.1.php and http://www.gnu.org/licenses/old-licenses/library.txt. Software BIOS: version 01.08 NXOS: version 10.3(2) [Feature Release] BIOS compile time: 05/06/2022 NXOS image file is: bootflash:///nxos64-cs.10.3.2.F.bin NXOS compile time: 11/30/2022 12:00:00 [12/16/2022 12:02:06] Hardware cisco Nexus9300 C93180YC-FX3H Chassis Intel(R) Xeon(R) CPU D-1526 @ 1.80GHz with 16312296 kB of memory. Processor Board ID FDO275201WG Device name: switch bootflash: 115805708 kB Kernel uptime is 0 day(s), 0 hour(s), 57 minute(s), 0 second(s) Last reset at 815076 usecs after Sat Jan 20 07:19:59 2024 Reason: Reset Requested by CLI command reload System version: 10.3 Service: plugin Core Plugin, Ethernet Plugin Active Package(s):
2. Download firmware จาก Cisco website
https://software.cisco.com/download/home/281823825
3. Configure management IP และทดสอบ Ping จาก Nexus Switch ไปยัง Laptop ที่ใช้งานเป็น FTP Server
เครื่อง Laptop สำหรับการใช้งานเป็น FTP Server : IP = 192.168.1.20/24
Nexus switch ที่ Interface mgmt 0 : IP = 192.168.1.100/24
switch(config)# int mgmt 0 switch(config-if)# ip address 192.168.1.100/24 switch(config-if)# end switch# switch# ping 192.168.1.20 vrf management PING 192.168.1.20 (192.168.1.20): 56 data bytes 64 bytes from 192.168.1.20: icmp_seq=0 ttl=127 time=1.638 ms 64 bytes from 192.168.1.20: icmp_seq=1 ttl=127 time=1.093 ms 64 bytes from 192.168.1.20: icmp_seq=2 ttl=127 time=0.991 ms 64 bytes from 192.168.1.20: icmp_seq=3 ttl=127 time=1.203 ms 64 bytes from 192.168.1.20: icmp_seq=4 ttl=127 time=0.948 ms --- 192.168.1.20 ping statistics --- 5 packets transmitted, 5 packets received, 0.00% packet loss round-trip min/avg/max = 0.948/1.174/1.638 ms switch#
4. ตรวจสอบ Free Disk space
switch# dir 4096 Jan 20 07:17:48 2024 .rpmstore/ 4096 Jan 20 06:58:16 2024 .swtam/ 1722 Jan 20 06:59:52 2024 20240120_065941_poap_21721_init.log 1722 Jan 20 07:17:37 2024 20240120_071726_poap_20833_init.log 467266 Feb 28 03:46:36 2024 20240228_025454_poap_20602_init.log 4096 Jan 20 07:00:04 2024 eem_snapshots/ 4096 Jan 20 06:58:16 2024 evt_log_snapshot/ 4096 Jan 20 07:01:32 2024 home/ 4096 Feb 28 02:56:44 2024 intersight/ 2173 Feb 28 02:53:30 2024 log_profile.yaml 4096 Jan 20 07:03:40 2024 lost+found/ 4096 Jan 20 07:18:30 2024 nexuscloud/ 2297351168 Jan 20 06:57:21 2024 nxos64-cs.10.3.2.F.bin 0 Jan 20 07:01:04 2024 platform-sdk.cmd 27589 Feb 28 03:46:16 2024 poap_retry_debugs.log 4096 Jan 20 07:16:38 2024 scripts/ 4096 Jan 20 06:59:41 2024 virt_strg_pool_bf_vdc_1/ 4096 Jan 20 06:58:51 2024 virtual-instance/ 59 Feb 28 02:53:51 2024 virtual-instance.conf Usage for bootflash:// 2556346368 bytes used 113567727616 bytes free 116124073984 bytes total
5. Copy file from FTP Server ไปยัง Nexus switch
switch# copy ftp: bootflash: Enter source filename: nxos64-cs.10.4.2.F.bin Enter vrf (If no input, current vrf 'default' is considered): management Enter hostname for the ftp server: 192.168.1.20 Enter username: admin Password: ***** Transfer of file Completed Successfully ***** Copy complete, now saving to disk (please wait)... Copy complete. switch#
6. ตรวจสอบไฟล์ที่ Download มาบน Nexus Switch
switch# dir
2297351168 Jan 20 06:57:21 2024 nxos64-cs.10.3.2.F.bin
2708622336 Feb 28 04:01:13 2024 nxos64-cs.10.4.2.F.bin
0 Jan 20 07:01:04 2024 platform-sdk.cmd
27589 Feb 28 03:46:16 2024 poap_retry_debugs.log
Usage for bootflash://
5267619840 bytes used
110856454144 bytes free
116124073984 bytes total
switch#
7. ทดสอบผลกระทบที่จะเกิดขึ้นจากการติดตั้ง New Image Software (Impact test on the software install)
switch# show install all impact nxos nxos64-cs.10.4.2.F.bin
Installer will perform impact only check. Please wait.
Verifying image bootflash:/nxos64-cs.10.4.2.F.bin for boot variable "nxos".
[# ] 0%
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos64-cs.10.4.2.F.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos64-cs.10.4.2.F.bin.
[####################] 100% -- SUCCESS
Performing module support checks.
[####################] 100% -- SUCCESS
Notifying services about system upgrade.
[####################] 100% -- SUCCESS
Compatibility check is done:
Module bootable Impact Install-type Reason
------ -------- -------------- ------------ ------
1 yes disruptive reset default upgrade is not hitless
Images will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------
1 nxos 10.3(2) 10.4(2) yes
1 bios v01.08(05/06/2022):v01.08(05/06/2022) v01.09(10/08/2023) yes
switch#
8. เริ่มต้นการติดตั้ง New Software Image
switch# install all nxos bootflash:nxos64-cs.10.4.2.F.bin Installer will perform compatibility check first. Please wait. Installer is forced disruptive Verifying image bootflash:/nxos64-cs.10.4.2.F.bin for boot variable "nxos". [####################] 100% -- SUCCESS Verifying image type. [####################] 100% -- SUCCESS Preparing "nxos" version info using image bootflash:/nxos64-cs.10.4.2.F.bin. [####################] 100% -- SUCCESS Preparing "bios" version info using image bootflash:/nxos64-cs.10.4.2.F.bin. [####################] 100% -- SUCCESS Performing module support checks. [####################] 100% -- SUCCESS Notifying services about system upgrade. [####################] 100% -- SUCCESS Compatibility check is done: Module bootable Impact Install-type Reason ------ -------- -------------- ------------ ------ 1 yes disruptive reset default upgrade is not hitless Images will be upgraded according to following table: Module Image Running-Version(pri:alt) New-Version Upg-Required ------ ---------- ---------------------------------------- -------------------- ------------ 1 nxos 10.3(2) 10.4(2) yes 1 bios v01.08(05/06/2022):v01.08(05/06/2022) v01.09(10/08/2023) yes Switch will be reloaded for disruptive upgrade. Do you want to continue with the installation (y/n)? [n] y Install is in progress, please wait. Performing runtime checks. [####################] 100% -- SUCCESS Setting boot variables. [####################] 100% -- SUCCESS Performing configuration copy. [####################] 100% -- SUCCESS Module 1: Refreshing compact flash and upgrading bios/loader/bootrom. Warning: please do not remove or power off the module at this time. [####################] 100% -- SUCCESS 2024 Feb 28 04:34:05 switch %$ VDC-1 %$ %VMAN-2-ACTIVATION_STATE: Successfully deactivated virtual service 'guestshell+' Finishing the upgrade, switch will reboot in 10 seconds. switch#
9. ตรวจสอบ Software Version หลังจากการติดตั้งเสร็จเรียบร้อย
switch# show version Cisco Nexus Operating System (NX-OS) Software TAC support: http://www.cisco.com/tac Copyright (C) 2002-2023, Cisco and/or its affiliates. All rights reserved. The copyrights to certain works contained in this software are owned by other third parties and used and distributed under their own licenses, such as open source. This software is provided "as is," and unless otherwise stated, there is no warranty, express or implied, including but not limited to warranties of merchantability and fitness for a particular purpose. Certain components of this software are licensed under the GNU General Public License (GPL) version 2.0 or GNU General Public License (GPL) version 3.0 or the GNU Lesser General Public License (LGPL) Version 2.1 or Lesser General Public License (LGPL) Version 2.0. A copy of each such license is available at http://www.opensource.org/licenses/gpl-2.0.php and http://opensource.org/licenses/gpl-3.0.html and http://www.opensource.org/licenses/lgpl-2.1.php and http://www.gnu.org/licenses/old-licenses/library.txt. Software BIOS: version 01.09 NXOS: version 10.4(2) [Feature Release] Host NXOS: version 10.4(2) BIOS compile time: 10/08/2023 NXOS image file is: bootflash:///nxos64-cs.10.4.2.F.bin NXOS compile time: 11/30/2023 12:00:00 [12/14/2023 05:25:50] NXOS boot mode: LXC Hardware cisco Nexus9300 C93180YC-FX3H Chassis Intel(R) Xeon(R) CPU D-1526 @ 1.80GHz with 16312284 kB of memory. Processor Board ID FDO275201WG Device name: switch bootflash: 115805708 kB Kernel uptime is 0 day(s), 0 hour(s), 3 minute(s), 7 second(s) Last reset at 100272 usecs after Wed Feb 28 04:34:19 2024 Reason: Reset due to upgrade System version: 10.3(2) Service:
Note.
1. ต้องทำการสร้าง Username และ Password ก่อน ถ้าไม่ทำจะอัพเกรด Fail
2. ต้องทำการ Copy running startup ก่อน ถ้าไม่ทำระบบจะเตือน และอัพเกรด Fail
3. การ Copy file จาก USB ใช้ Format ดังนี้
NEX-9K-2# copy usb2: bootflash: Enter source filename: nxos.7.0.3.I4.7.bin Copy progress 100% 702663KB Copy complete, now saving to disk (please wait)... NEX-9K-2#
Reference: https://www.rogerperkin.co.uk/cisco/software-upgrade-guides/nexus-9000-software-upgrade/