Image Upgrade from OPBNOS

To upgrade the OPB image to a newer version from OPBNOS CLI, use the following command:

Reference

Command

copy scp <server_url> [timeout <interval> ] { opbnos-image }

Description

Copies new file OS image from remote SCP server and install to the switch

Parameters

Server_url username@ipaddress:filepathandname

timeout timeout

interval Specifies the maximum time (in seconds) to wait for the server to reply to the connection request. The timeout interval is from 1 to 100 seconds.

sonic-image Copies OS image.

Mode

EXEC

Example

pbnoscli# copy scp aviz@10.2.2.10:/tmp/opb-nos-mellanox-20230428.bin opbnos-image
The authenticity of host '10.2.2.10 (10.2.2.10)' can't be established.
ECDSA key fingerprint is SHA256:+S2EmXkMAA6WYu6VKodKZtsha3HpVzLCnpG95yEqqlQ.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '10.2.2.10' (ECDSA) to the list of known hosts.
aviz@10.2.2.10's password: 
opb-nos-mellanox-20230714.2.5.0.bin           100% 1613MB 110.7MB/s   00:14    
New image will be installed, continue? [y/N]: y
Installing image OPBNOS-master.162-dirty-20230714.075726 and setting it as default...
Command: bash /etc/sonic//opb-nos-mellanox-20230714.2.5.0.bin
Verifying image checksum ... OK.
Preparing image archive ... OK.
Installing SONiC in SONiC
<...>
Command: sync;sync;sync

Command: sleep 3

Done
pbnoscli# 
//Image 'OPBNOS-master.162-dirty-20230714.075726' set as next-boot

pbnoscli# show boot 
Current: OPBNOS-master.116-dirty-20230428.065112
Next: OPBNOS-master.162-dirty-20230714.075726
Available: 
OPBNOS-master.162-dirty-20230714.075726
OPBNOS-master.116-dirty-20230428.065112
pbnoscli# 
//Reboot the switch to boot into the new image

pbnoscli# reboot 
Check if running config is saved
Do you want to reboot the device [y/n]: y

Jul 18 06:28:31.022227 System is not ready - one or more services are not up
/var/log: 195.4 MiB (204865536 bytes) trimmed on /dev/loop1
/host: 812.1 MiB (851562496 bytes) trimmed on /dev/sda3
<...>

You can verify the upgrade by using the command(s) below:

pbnoscli# show boot 
Current: OPBNOS-master.162-dirty-20230714.075726
Next: OPBNOS-master.162-dirty-20230714.075726
Available: 
OPBNOS-master.162-dirty-20230714.075726
OPBNOS-master.116-dirty-20230428.065112

pbnoscli# show version 
Aviz OPB NOS Version: 2.5.0
Distribution: Debian 11.7
Kernel: 5.10.0-18-2-amd64

Platform: x86_64-mlnx_msn4600c-r0
HwSKU: ACS-MSN4600C
ASIC: mellanox
ASIC Count: 1
Serial Number: MT2040X05753
Model Number: MSN4600-CS2FC
Hardware Revision: A1
Uptime: 06:33:17 up 3 min,  2 users,  load average: 1.12, 1.07, 0.47
Date: Tue 18 Jul 2023 06:33:17

Docker images:
REPOSITORY                TAG                                IMAGE ID       SIZE
docker-syncd-mlnx         latest                             6285f39b3816   909MB
docker-syncd-mlnx         master.162-dirty-20230714.075726   6285f39b3816   909MB
docker-snmp               latest                             a95af1989288   523MB
docker-snmp               master.162-dirty-20230714.075726   a95af1989288   523MB
docker-platform-monitor   latest                             b529bad5a55b   893MB
docker-platform-monitor   master.162-dirty-20230714.075726   b529bad5a55b   893MB
docker-orchagent          latest                             6c19d2cf72d9   492MB
docker-orchagent          master.162-dirty-20230714.075726   6c19d2cf72d9   492MB
docker-lldp               latest                             f88b57c0b979   511MB
docker-lldp               master.162-dirty-20230714.075726   f88b57c0b979   511MB
docker-database           latest                             631f36f9d480   469MB
docker-database           master.162-dirty-20230714.075726   631f36f9d480   469MB
docker-sflow              latest                             3804ef7e452a   471MB
docker-sflow              master.162-dirty-20230714.075726   3804ef7e452a   471MB
docker-nagr               latest                             34afc3ed58e0   920MB
docker-nagr               master.162-dirty-20230714.075726   34afc3ed58e0   920MB
fv                        latest                             ff7685f6df28   173MB
pbnoscli# 

Last updated