---
title: Device Upgrade
slug: enterprise-v5p2/device-upgrade
description: basic configuartion
createdAt: 2025-11-14T03:58:41.381Z
---

### <font color="#1d50a2">image update</font>

**\[Command]**
**image update**  *bin-file*

**\[Purpose]**
Upgrade system version

**\[Parameter]**

| **Parameter** | **Description**          |
| ------------- | ------------------------ |
| *bin-file*    | Software image file name |

**\[View]**
System view

**\[Notes]**
By default, during an upgrade, the system will automatically copy the currently saved configuration file to the new version and load it after the restart. If you need to clear the configuration or save the latest configuration, please execute the appropriate commands before the upgrade.

**\[Use Cases]**

```plaintext
sonic# image update AsterNOS-V5.2R001.bin
```

### <font color="#1d50a2">image list</font>

**\[Command]**

**image list**

**\[Purpose]**

Show the system version of the current partition.

**\[View]**

System View

**\[Comment]**

The system has software versions installed on two partitions. This command shows the version installed on the current partition. Use the image set\_default command to specify the software version that takes effect for the system, which requires a reboot to apply.

**\[Use Cases]**

```text
sonic# image list
Current: SONiC-OS-V5.2R015T04-20251210.220426
Next: SONiC-OS-V5.2R015T04-20251210.220426
Available:
SONiC-OS-V5.2R015T04-20251210.220426
SONiC-OS-201911.0-20251201.165801
```

### <font color="#1d50a2">image set\_default &lt;bin-file&gt;</font>

**\[Command]**

**image set\_default \<bin-file>**

**\[Purpose]**

When multiple software versions exist in the partition, set the default version to take effect for the system.

**\[Parameter]**

bin-file					Software image file name

**\[View]**

System View

**\[Comment]**

Use the image list command to view the software versions in the system partition. Use the image set\_default command to specify the software version currently in effect for the system, which requires a reboot to take effect.

**\[Use Cases]**

```text
sonic# image set_default SONiC-OS-V5.2R015T04-20251210.220426
```

