How to install firmware on a Lenovo switch running CNOS using Recovery Mode
How to install firmware on a Lenovo switch running CNOS using Recovery Mode
How to install firmware on a Lenovo switch running CNOS using Recovery Mode
Description
This article introduces the procedure used to upgrade a Lenovo switch running CNOS using Recovery Mode. This method should be used if the normal CLI methods are not working, or if corrupted files need to be replaced.
Requirements
- Console access to the switch
- The management port needs network access to a TFTP server
Procedure
- While the switch is powered off, connect to the switch using the console option on your terminal emulator.
- Power the switch on, and then hold shift and press R to enter Recovery Mode.
Note: You will only have a couple seconds to hit the key combination before the switch - Enter T, and then press Enter to select Configure networking and tftp download an image.
Loading recovery image...
starting version 3.2.2
Running filesystem check.....
Filesystem verified
Creating system key
Creating system development key
Entering Rescue Mode.
Please select one of the following options:
T) Configure networking and tftp download an image
U) Install image from USB stick
F) Filesystem Menu
I) Select which image to boot
C) Reset configuration to factory default
Z) Reset the Network Administrator (admin) password
B) Reset the password required to enter privileged exec mode
R) Reboot
E) Exit
Option? : T - You will be prompted to enter the Host IP (Management port IP), Host Subnet Mask, Gateway IP, Server IP (TFTP Server IP), and Filename (.img file).
Note: For this example, the Host IP is 10.10.10.2, the Host Subnet Mask is 255.255.255.0, the Gateway IP is 10.10.10.1, the Server IP is 10.10.10.1, and the Filename is NE0152T-CNOS-10.10.5.0.imgs.Performing TFTP rescue. Please answer the following questions (enter 'q' to quit):
IP addr :10.10.10.2
Netmask :255.255.255.0
Gateway :10.10.10.1
Server addr:10.10.10.1
Image Filename: NE0152T-CNOS-10.10.5.0.imgs
Netmask : 255.255.255.0
Gateway : 10.10.10.1
Configuring management port.......................
Installing image NE0152T-CNOS-10.10.5.0.imgs from TFTP server 10.10.10.1
Extracting images ... Do *NOT* power cycle the switch.
Installing C-NOS application: Creating system key
Image signature verified. Install image as image 1 or 2 (q to quit): 1
Installing image as image1: Preparing image for installation: 100%
decompressing image...
Installing image: 100%
Cleaning up partition........
Image1 updated succeeded
Updating install logs
Updating install logs
Installing Boot Loader: Creating system key
Image signature verified. 100%
Installing GRUB and secure shim boot loaders...
Done
Updating install logs - Enter R to Reboot.
Please select one of the following options:
T) Configure networking and tftp download an image
U) Install image from USB stick
F) Filesystem Menu
I) Select which image to boot
C) Reset configuration to factory default
Z) Reset the Network Administrator (admin) password
B) Reset the password required to enter privileged exec mode
R) Reboot
E) Exit
Option? : R