Перед обновлением желательно сделать бэкап лицензий и текущих прошивок перед удалением.
Логинимся по ssh запускаем python (для удаления текущей прошивки, так как нужно освободить место для загрузки нового образа)
switch# python
Python 2.7.5 (default, Aug 7 2018, 10:50:38)
[GCC 4.6.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> os.remove('/bootflash/nxos.7.0.3.I7.8.bin')
>>> exit()
Качаем новую прошивку по scp в bootflash коммутатора
switch# copy scp://adm@192.168.1.1/tftpboot/cisco/nxos.9.3.9.bin bootflash: compact vrf management
The authenticity of host '192.168.1.1 (192.168.1.1)' can't be established.
ECDSA key fingerprint is SHA256:HJaf93KA/NXmMQtRYFGqGVXCer1JWlutTVW7Fc37anA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.1' (ECDSA) to the list of known hosts.
adm@192.168.1.1's password:
nxos.9.3.9.bin 100% 1870MB 1.4MB/s 22:28
Copy complete, now saving to disk (please wait)...
Copy complete.
Прошиваемся
switch# install all nxos bootflash:nxos.9.3.9.bin
Installer will perform compatibility check first. Please wait.
Installer is forced disruptive
Verifying image bootflash:/nxos.9.3.9.bin for boot variable "nxos".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos.9.3.9.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos.9.3.9.bin.
[####################] 100% -- SUCCESS
Collecting "running" plugin(s) information.
[####################] 100% -- SUCCESS
Collecting plugin(s) information from "new" image.
[####################] 100% -- SUCCESS
"Running-config contains configuration that is incompatible with the new image (strict incompatibility).
Please run 'show incompatibility-all nxos <image>' command to find out which feature needs to be disabled.".
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 Current running-config is not supported by new image
Images will be upgraded according to following table:
Module Image Running-Version(pri:alt) New-Version Upg-Required
------ ---------- ---------------------------------------- -------------------- ------------
1 nxos 7.0(3)I7(8) 9.3(9) yes
1 bios v4.5.0(11/09/2017) v5.0.0(06/06/2018) yes
Additional info for this installation:
--------------------------------------
"Running-config contains configuration that is incompatible with the new image (strict incompatibility).
Please run 'show incompatibility-all nxos <image>' command to find out which feature needs to be disabled."
Service "sflow" in vdc 1: SFLOW feature is enabled. Upgrade will pause sFlow report for about 1 ~ 2 minutes.
--------------------------------------------------------------------------------------------------------
Running-config contains configuration that is incompatible with the new image (strict incompatibility).
Please run 'show incompatibility-all nxos <image>' command to find out which feature needs to be disabled.
---------------------------------------------------------------------------------------------------------
У меня возникли проблемы с совместимостью конфигурации, решил их так
switch# show incompatibility-all nxos bootflash:nxos.9.3.9.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
The following configurations on active are incompatible with the system image
1) Service : pltfm_config , Capability : CAP_FEATURE_DME_ENABLED
Description : DME feature is not supported on this image
Capability requirement : STRICT
Enable/Disable command : Please use "no system dme enable" to disable DME feature
switch# conf
Enter configuration commands, one per line. End with CNTL/Z.
switch(config)# no system dme enable
Warning: DME successfully disabled
Warning: Please copy running-config to startup-config and reload the switch to apply changes.
switch(config)# exit
switch# copy ru st
[########################################] 100%
Copy complete, now saving to disk (please wait)...
Copy complete.
switch# show incompatibility-all nxos bootflash:nxos.9.3.9.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
No incompatible configurations
Прошиваем заново и перезагружается.
switch# install all nxos bootflash:nxos.9.3.9.bin
Installer will perform compatibility check first. Please wait.
Installer is forced disruptive
Verifying image bootflash:/nxos.9.3.9.bin for boot variable "nxos".
[####################] 100% -- SUCCESS
Verifying image type.
[####################] 100% -- SUCCESS
[## ] 5% -- SUCCESS
Preparing "nxos" version info using image bootflash:/nxos.9.3.9.bin.
[####################] 100% -- SUCCESS
Preparing "bios" version info using image bootflash:/nxos.9.3.9.bin.
[####################] 100% -- SUCCESS
Collecting "running" plugin(s) information.
[####################] 100% -- SUCCESS
Collecting plugin(s) information from "new" image.
[####################] 100% -- SUCCESS
[####################] 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 7.0(3)I7(8) 9.3(9) yes
1 bios v4.5.0(11/09/2017) v5.0.0(06/06/2018) yes
Additional info for this installation:
--------------------------------------
Service "sflow" in vdc 1: SFLOW feature is enabled. Upgrade will pause sFlow report for about 1 ~ 2 minutes.
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
Finishing the upgrade, switch will reboot in 10 seconds.
Проверяем версию
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 5.0.0
NXOS: version 9.3(9)
BIOS compile time: 06/06/2018
NXOS image file is: bootflash:///nxos.9.3.9.bin
NXOS compile time: 2/4/2022 7:00:00 [02/04/2022 11:54:27]
Hardware
cisco Nexus3064 Chassis
Intel(R) Celeron(R) CPU P4505 @ 1.87GHz with 3901496 kB of memory.
Processor Board ID FOC154619SP
Device name: switch
bootflash: 1635720 kB
usb1: 3910656 kB (expansion flash)
Kernel uptime is 0 day(s), 0 hour(s), 6 minute(s), 7 second(s)
Last reset at 968429 usecs after Mon Apr 3 12:00:01 2023
Reason: Reset due to upgrade
System version: 7.0(3)I7(8)
Service:
plugin
Core Plugin, Ethernet Plugin
Active Package(s):