How to upgrade a Lenovo switch running CNOS system image using the command line interface
How to upgrade a Lenovo switch running CNOS system image using the command line interface
How to upgrade a Lenovo switch running CNOS system image using the command line interface
Description
This article provides the procedure for upgrading a switch running CNOS to a newer version of CNOS. With these procedures, it is assumed the switch is configured correctly to communicate with the server holding the image file.
Procedure
Multiple transfer methods can be used to retrieve the image file: FTP, SCP SFTP, TFTP. Choose the method that best fits your environment. Command layouts along with examples are listed below.
Transfer Methods
If the current version of CNOS is 10.x to 10.6.x use cp instead of copy. If the current version of CNOS is 10.7 to the latest release use copy instead of cp.
For the sake of this article we will be upgrading from 10.4.2.0 to the latest version therefore the cp command will be used.
- FTP:
cp ftp ftp://[username]@[server ip]/[path or filename] system-image all
- SCP:
cp scp scp://[username]@[server ip]/[path or filename] system-image all
- SFTP:
cp sftp sftp://[username]@[server ip]/[path or filename] system-image all
- TFTP:
cp tftp tftp://[server ip]:[port (if not default)]/[path or filename] system-image all
Examples: assuming transfer protocol port number is the default.
- FTP:
cp ftp ftp://ftpuser1@10.10.10.1/NE10032-CNOS-10.9.3.0.imgs system-image all
- SCP:
cp scp scp://scpuser1@10.10.10.1/NE10032-CNOS-10.9.3.0.imgs system-image all
- SFTP:
cp sftp sftp://sftpuser1@10.10.10.1/NE10032-CNOS-10.9.3.0.imgs system-image all
- TFTP:
cp tftp tftp://10.10.10.1/NE10032-CNOS-10.9.3.0.imgs system-image all
- After a transfer method is selected please make sure the image file is in the correct folder on the server. SFTP will be implemented in the following example.
NE10032#cp sftp sftp://sftpuser1@10.10.10.1/NE10032-CNOS-10.9.3.0.imgs system-image all vrf management
Confirm download operation? (y/n) [n] y
Download in progress
sftpuser1@10.240.60.115's password:
Copy Success
Install image...This takes about 90 seconds. Please wait
Creating system development key....
Creating system key....
Check image signature succeeded
Extracting image:
100%
Installing system image to slot 2:
Installing image:
100%
Extracting image:
100%
Installing grub:
Installing GRUB and secure shim boot loaders...
Create rescue mount
Make boot directory
Done
Boot image installation succeeded.
OS image installation succeeded.
Boot loader now contains Software Version 10.9.3.0
Standby image now contains Software Version 10.9.3.0
Switch is currently set to boot active image.
Do you want to change that to the standby image? (y/n) [n] y
Switch is to be booted with standby image.
- After the install is finished a reboot of the switch will be needed to apply the new image.
NE10032#reload
reboot system? (y/n): y
In the command syntax the Virtual Routing and Forwarding instance (VRF) is the virtual router you would use to retrieve the image from. By default, the default VRF comprises the front-facing data ports. VRF management is the management port. Use the one that best fits your network design. The VRF chosen requires an IP address along with a default gateway configured on the port. For more information about VRF please see the link to the Application Guide which is attached below.