# Image Upgrade from OPBNOS

## Image Upgrade from OPBNOS

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

| 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  | <p>Server_url username@ipaddress:filepathandname</p><p>timeout timeout</p><p>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.</p><p>opbnos-image Copies OS image.</p> |
| Mode        | EXEC                                                                                                                                                                                                                                                                            |

**CLI Example:**

```
pbnoscli# copy scp avizuser@10.2.2.10:/mnt/ws/images/opbnos/R2.8.0/nvidia/opb-nos-mellanox-20250207.2.8.0.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.
avizuser@10.2.2.10's password:
opb-nos-mellanox-20250215.2.8.0.bin                                                         100% 1467MB 109.8MB/s   00:13
New image will be installed, continue? [y/N]: y

//After installation is complete, perform a reboot
pbnoscli# reboot
```

To verify, Please run below command:

```
pbnoscli# show boot
Current: OPBNOS-master.0-dirty-20250213.013329
Next: OPBNOS-master.0-dirty-20250207.160956  
Available:
OPBNOS-master.0-dirty-20250207.160956  
OPBNOS-master.0-dirty-20250213.013329


pbnoscli# show version

Aviz OPB NOS Version: 2.8.0
Distribution: Debian 11.11
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: 18:07:38 up  3:20,  3 users,  load average: 0.11, 0.57, 0.71
Date: Mon 24 Feb 2025 18:07:38

Docker images:
REPOSITORY                TAG                              IMAGE ID       SIZE
docker-syncd-mlnx         latest                           c530e940d41c   898MB
docker-syncd-mlnx         master.0-dirty-20250207.160956   c530e940d41c   898MB
docker-snmp               latest                           27018d6fc1c5   408MB
docker-snmp               master.0-dirty-20250207.160956   27018d6fc1c5   408MB
docker-platform-monitor   latest                           b48d9e8798f6   881MB
docker-platform-monitor   master.0-dirty-20250207.160956   b48d9e8798f6   881MB
docker-orchagent          latest                           83e221477668   396MB
docker-orchagent          master.0-dirty-20250207.160956   83e221477668   396MB
docker-lldp               latest                           b8dda16e3032   403MB
docker-lldp               master.0-dirty-20250207.160956   b8dda16e3032   403MB
docker-eventd             latest                           cfc31e8b5c59   361MB
docker-eventd             master.0-dirty-20250207.160956   cfc31e8b5c59   361MB
docker-database           latest                           7099928b9e6f   361MB
docker-database           master.0-dirty-20250207.160956   7099928b9e6f   361MB
docker-sflow              latest                           8f7d4b72342d   361MB
docker-sflow              master.0-dirty-20250207.160956   8f7d4b72342d   361MB
docker-nagr               latest                           2d4c3653029e   804MB
docker-nagr               master.0-dirty-20250207.160956   2d4c3653029e   804MB
fv                        latest                           a55f748c07a0   173MB
                    latest                           a55f748c07a0   173MB

```
