1. USB에서 Switch의 bootflash에 image copy

switch# dir usb1:

switch# dir bootflash:

switch# copy usb1:aci-n9000-dk9.14.2.7f.bin bootflash:

 

2. NXOS 모드를 끄고, 지정한 ACI image를 사용하여 booting 하도록 설정 후  reload 

switch(config)# no boot nxos

switch(config)# boot aci bootflash:///aci-n9000-dk9.14.2.7f.bin

switch(config)# copy r s

switch(config)# reload

  * username admin password xxxx (계정이 없는 경우 설정)

  * reload 후 Loder 모드로 진입함.

 

3. ACI image로 booting

loader > dir

loader > boot aci-n9000-dk9.14.2.7f.bin

 

5. image 확인

(none)# copy usb/usb1/aci-n9000-dk9.14.2.7f.bin bootflash

(none)# show version

.........

  kickstart: version 14.2(7f) [build 14.2(7f)]
.........
  kickstart image file is: /bootflash/aci-n9000-dk9.14.2.7f.bin

(none)# dir bootflash

 

6. ACI 모드의 bootflash에 새 image가 있는지 확인
(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local
(none)# cat /mnt/cfg/1/boot/grub/menu.lst.local

 

7. ACI 모드의 bootflash에 사용하고자 하는 image로 변경

(none)# setup-bootvars.sh aci-n9000-dk9.14.2.7f.bin

'네트워크 > OS' 카테고리의 다른 글

ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus OS install (ICAM serivce 관련)  (0) 2023.02.03
[NXOS] Nexus C93180YC-EX - OS install (USB)  (0) 2023.02.02

(none)# show version
Cisco Nexus Operating System (NX-OS) Software

...................
Software
  BIOS:      version 07.69
  kickstart: version 14.1(2m) [build 14.1(2m)]
  system:    version 14.1(2m) [build 14.1(2m)]
  PE:        version 4.1(2m)
  BIOS compile time:       04/07/2021
  kickstart image file is: /bootflash/aci-n9000-dk9.14.1.2m.bin

(none)# 

(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local

(none)# cat /mnt/cfg/1/boot/grub/menu.lst.local
boot aci-n9000-dk9.14.1.2m.bin

(none)# 
(none)# dir bootflash
CpuUsage.Log               disk_log.txt  mem_log.txt.old.gz
aci-n9000-dk9.14.1.2m.bin  libmon.logs   mts_buffer_log.log
auto-s                     lost+found    nxos.7.0.3.I7.3.bin
diag_bootup                lxc
(none)# 
(none)# dir usbslot2
System\ Volume\ Information  nxos.7.0.3.I7.3.bin  nxos.9.3.5.bin
aci-n9000-dk9.14.2.7f.bin    nxos.7.0.3.I7.7.bin  nxos.9.3.7k.bin
(none)# 
(none)# reload 
This command will reload the chassis, Proceed (y/n)? [n]: y

 

ctrl + c

ctrl + c

ctrl + c


###################### 1차 booting ######################

loader > dir                                                                   

usb1::  

 aci-n9000-dk9.14.2.7f.bin

bootflash::  

  aci-n9000-dk9.14.1.2m.bin -----> aci-n9000-dk9.14.2.7f.bin 으로 버전 변경

 

...................                                                                    

loader > boot usb1:aci-n9000-dk9.14.2.7f.bin

Security Lock
Booting usb1:aci-n9000-dk9.14.2.7f.bin 

Image Signature verification was Successful.

Boot Time: 6/7/2023  15:7:58

...................

 

###################### 2차 booting ######################

loader > dir                                                                   

usb1::  

 aci-n9000-dk9.14.2.7f.bin

bootflash::  

  aci-n9000-dk9.14.2.7f.bin <----- 변경된 버전 확인

loader > boot aci-n9000-dk9.14.2.7f.bin <----- 2번째 bootflash boot

Security Lock
Booting aci-n9000-dk9.14.2.7f.bin 
Trying diskboot 
 Filesystem type is ext2fs, partition type 0x83
Image valid


Image Signature verification was Successful.

Boot Time: 6/7/2023  15:19:4

#############################################

(none)# dir bootflash
CpuUsage.Log                     diag_bootup   lxc
aci-n9000-dk9.14.2.7f.bin        disk_log.txt  mts_buffer_log.log
auto-s                           libmon.logs   nxos.7.0.3.I7.3.bin
bios_bootup_scratch_not_cleared  lost+found
(none)# 
(none)# 
(none)# show version
Cisco Nexus Operating System (NX-OS) Software

...................

Software
  BIOS:      version 07.69
  kickstart: version 14.2(7f) [build 14.2(7f)]
  system:    version 14.2(7f) [build 14.2(7f)]
  PE:        version 4.2(7f)
  BIOS compile time:       04/07/2021
  kickstart image file is: /bootflash/aci-n9000-dk9.14.2.7f.bin

(none)# 
(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local -----> 해당 경로에 버전 확인
boot aci-n9000-dk9.14.1.2m.bin
(none)# 
(none)# setup-bootvars.sh aci-n9000-dk9.14.2.7f.bin
In progress
In progress
...................
Done
(none)# 
(none)# cat /mnt/cfg/0/boot/grub/menu.lst.local -----> 버전 변경 확인
boot aci-n9000-dk9.14.2.7f.bin
(none)# 

* 모델 : C93180YC-EX

* 기존OS : nxos.9.3.7.bin

* 변경OS : nxos.7.0.3.I7.3.bin

 

* 9.3.5 -----> 7.0.3.I7.3 OS 다운그레이드 시 OS install fail

 : install deactivate icam  설정 후 OS 재설치  (9.3.5 버전 부터 ICAM 기능이 활성화되어있으며 '7.'버전에서는 ICAM을 지원하지 않는다. 이로인해 다운그레이드 전 ICAM 비활성가 선행되어야 한다.)

 

ICAM 관련 링크

https://www.cisco.com/c/en/us/td/docs/switches/datacenter/nexus9000/sw/93x/icam/b-cisco-nexus-9000-series-nx-os-icam-configuration-guide-93x/b-cisco-nexus-9000-series-nx-os-icam-configuration-guide-93x_chapter_010.html

 


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
switch# install all nxos bootflash:nxos.7.0.3.I7.3.bin
Installer will perform compatibility check first. Please wait. 
Installer is forced disruptive
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 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.
[#                   ]   0-- FAIL.
Return code 0x437F0001 ((null)).
 
"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 "icam" in vdc 1: iCAM service downgrade to the target version is not supported.
Please deactivate iCAM using 'install deactivate icam' before proceeding with downgrade.
 
Pre-upgrade check failed. Return code 0x437F0001 ((null)).
switch
switch#  
switch# show incompatibility-all nxos bootflash:nxos.7.0.3.I7.3.bin
Checking incompatible configuration(s) for vdc 'switch':
--------------------------------------------------------
The following configurations on active are incompatible with the system image 
1) Service : icam , Capability : CAP_FEATURE_ICAM
Description : iCAM service is running.
Capability requirement : STRICT
Enable/Disable command : Deactivate iCAM using 'install deactivate icam'
2) Service : bootvar , Capability : CAP_FEATURE_IMAGE_SIGNATURE_VERIFY
Description : feature signature-verification enabled
Capability requirement : LOOSE
Enable/Disable command : Disable image signature verification by using no feature signature-verification
 
 
Checking dynamic incompatibilities:
-----------------------------------
No incompatible configurations
switch
switch# sh feature
Feature Name          Instance  State   
--------------------  --------  --------
icam                   1          enabled
 
###########################################################################################
###########################################################################################
###########################################################################################
###########################################################################################
 
switch
switch# install deactivate icam
 
=================================================================================
 WARNING!!
 This operation will remove 'icam-2.0.0.0-9.3.7.lib32_n9000' related configuration from running-configuration
 on successful completion. Update startup-configuration accordingly.
==================================================================================
 
[####################] 100%
Install operation 1 completed successfully at Thu Feb  2 17:39:38 2023
 
switch
switch# sh install all impact nxos bootflash:nxos.7.0.3.I7.3.bin
Installer will perform impact only check. Please wait. 
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos <image>' command for more details .
[####################] 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  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(7)           7.0(3)I7(3)           yes
     1        bios     v07.69(04/07/2021):v07.69(04/07/2021)    v07.61(04/06/2017)            no
 
 
switch
cs

 

 

'네트워크 > OS' 카테고리의 다른 글

ACI OS USB install (NXOS --> ACI OS)  (0) 2024.02.26
ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus C93180YC-EX - OS install (USB)  (0) 2023.02.02

1. USB 장착

2. username admin password anne123!

3. copy running-config startup-config

4. dir bootflash:

    dir usb1:

5. copy usb1:<nxos.7.0.3.I7.3.bin> bootflash:

6. [선택] show file bootflash://sup-1/nxos.7.0.3.I2.1.bin sha256sum

7. [선택] show install all impact nxos bootflash:nxos.7.0.3.I7.3.bin

8. install all nxos bootflash:nxos.7.0.3.I7.3.bin

9. reload

 

9.3.5 버전 이후 부터는 다운그레이드 시 ICAM 비활성화 한 이후 진행해주셔야 다운그레이드 가능

install deactivate icam

 

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
switch2023 Feb  2 05:50:40 switch %$ VDC-1 %$  %USER-2-SYSTEM_MSG: &lt;&lt;%USBHSD-2-USB_SWAP&gt;&gt; USB insertion or removal detected - usbhsd
2023 Feb  2 05:50:40 switch %$ VDC-1 %$  %USER-2-SYSTEM_MSG: &lt;&lt;%USBHSD-2-MOUNT&gt;&gt; USB1: online  - usbhsd
switch#  
switch
switch(config)# username admin password anne123!     //admin password 설정 
WARNING: DES is a weak encryption algorithm and currently the default. This will be deprecated and AES128 will be made default in an upcoming release. 
switch#  
switch
switch# copy running-config startup-config     //running-config > startup-config 저장
[########################################] 100%
Copy complete, now saving to disk (please wait)...
switch#  
switch#  
switch
switch# dir bootflash:?     //boot directory 확인
  bootflash:///            
  bootflash://module-1/    
  bootflash://sup-1/       
  bootflash://sup-active/  
  bootflash://sup-local/   
 
switch# dir bootflash:
 1777998029    Sep 24 08:18:36 2022  aci-n9000-dk9.14.1.2g.bin
       4096    Sep 24 08:12:47 2022  eem_snapshots/
       4096    Sep 24 08:24:39 2022  home/
       4096    Sep 24 08:20:55 2022  lost+found/
 
switch#  
switch
switch# copy usb1:nxos.7.0.3.I7.3.bin bootflash:     //usb1의 OS --> bootflash에 복사
Copy progress 100% 962771KB
Copy complete, now saving to disk (please wait)...
Copy complete.
switch#  
switch
switch# dir bootflash:
 1777998029    Sep 24 08:18:36 2022  aci-n9000-dk9.14.1.2g.bin
       4096    Sep 24 08:12:47 2022  eem_snapshots/
       4096    Sep 24 08:24:39 2022  home/
       4096    Sep 24 08:20:55 2022  lost+found/
  962771456    Feb 02 05:53:29 2023  nxos.7.0.3.I7.3.bin
 
switch#  
switch
switch# show file bootflash://sup-1/nxos.7.0.3.I2.1.bin sha256sum     //sha256 무결성 검증
switch#  
switch
switch# show install all impact nxos bootflash:nxos.7.0.3.I7.3.bin     //업그레이드 수행 전 소프트웨어 업그레이드의 영향을 확인
Installer will perform impact only check. Please wait. 
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos &lt;image&gt;' command for more details .
[####################] 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  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(3)           7.0(3)I7(3)           yes
     1        bios     v05.47(04/28/2022):v05.47(04/28/2022)    v05.28(01/18/2018)            no
switch
switch
switch# install all nxos bootflash:nxos.7.0.3.I7.3.bin     //OS install
Installer will perform compatibility check first. Please wait. 
Installer is forced disruptive
 
Verifying image bootflash:/nxos.7.0.3.I7.3.bin for boot variable "nxos".
[####################] 100-- SUCCESS
 
Verifying image type.
[####################] 100-- SUCCESS
 
Preparing "nxos" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Preparing "bios" version info using image bootflash:/nxos.7.0.3.I7.3.bin.
[####################] 100-- SUCCESS
 
Warning: the running-config contains configuration that is incompatible with the new image and will be lost (loose incompatibility).
Please run 'show incompatibility-all nxos &lt;image&gt;' command for more details .
[####################] 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  Incompatible image for ISSU
 
 
 
Images will be upgraded according to following table:
Module       Image                  Running-Version(pri:alt)           New-Version  Upg-Required
------  ----------  ----------------------------------------  --------------------  ------------
     1        nxos                                    9.3(3)           7.0(3)I7(3)           yes
     1        bios     v05.47(04/28/2022):v05.47(04/28/2022)    v05.28(01/18/2018)            no
 
 
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
 
Converting startup config.
[####################] 100-- SUCCESS
2023 Feb  2 06:32:30 switch %$ VDC-1 %$ %VMAN-2-ACTIVATION_STATE: Successfully deactivated virtual service 'guestshell+'  
 
 
Finishing the upgrade, switch will reboot in 10 seconds.     //OS install 완료, 10초 후 자동 reboot
switch
cs

'네트워크 > OS' 카테고리의 다른 글

ACI OS USB install (NXOS --> ACI OS)  (0) 2024.02.26
ACI OS USB install (ACI --> ACI)  (0) 2023.06.11
[NXOS] Nexus OS install (ICAM serivce 관련)  (0) 2023.02.03

+ Recent posts