Instalación de SONiC OS mediante la instalación de CLI

Summary: Instalación de SONiC OS mediante la instalación de CLI

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

Requisitos previos:  
  1. Conexión activa al switch.
  2. Detalles del servidor de archivos con el software del sistema operativo cargado. El servicio HTTP debe estar disponible para el switch.

Instrucciones:
Listas de imágenes y estado: Compruebe la imagen del sistema operativo actualmente arrancada y la imagen que se iniciará en el próximo reinicio.
  1. En el indicador de la CLI de SONiC, utilice el comando "show image list" para mostrar qué imagen está activa actualmente y qué versión se cargará en el próximo reinicio.
SONIC# show image list
Current: SONiC-OS-4.0.1-Enterprise_Base
Next: SONiC-OS-4.0.1-Enterprise_Base
Available:
SONiC-OS-4.0.1-Enterprise_Base
SONIC#
 
  1. Utilice el comando "image install http://[IP]/[image_name]" para instalar una nueva imagen en la ranura Next: que se cargará en el próximo arranque
SONIC#
SONIC# image install http://10.0.0.200/SONiC-OS-4.0.3-Enterprise_Base.bin
%Info: Check 'show image status' for image install progress.
SONIC#
 
  1. Para comprobar el estado del proceso de descarga de la imagen y, a continuación, el progreso de la instalación, utilice el comando "show image status".
 
SONIC# show image status
-----------------------------------------------------------
Global operation status  : GLOBAL_STATE_DOWNLOAD
-----------------------------------------------------------
File operation status    : TRANSFER_DOWNLOAD
File size(bytes)         : 959070190
File transfer bytes      : 253968384
File progress            : 26%
Transfer start time      : 2023-02-03 20:14:45+0000
Transfer end time        : N/A
-----------------------------------------------------------
SONIC#
 
  1. Después de varios minutos, vuelva a ejecutar el comando "show image status" y verifique el progreso de la instalación. Tenga en cuenta que se completó la "Hora de finalización de la transferencia" y ahora hay una "INSTALL_PROGRESS" adicional en la sección "Estado de la operación de instalación".
SONIC# show image status
-----------------------------------------------------------
Global operation status  : GLOBAL_STATE_INSTALL
-----------------------------------------------------------
File operation status    : TRANSFER_STATE_SUCCESS
File size(bytes)         : 959070190
File transfer bytes      : 959070190
File progress            : 100%
Transfer start time      : 2023-02-03 20:14:45+0000
Transfer end time        : 2023-02-03 20:16:02+0000
-----------------------------------------------------------
Install operation status : INSTALL_PROGRESS
Install start time       : 2023-02-03 20:16:02+0000
Install end time         : N/A
SONIC#
 
  1. Después de varios minutos adicionales, vuelva a ejecutar "show image status" (mostrar estado de imagen) y anote la finalización del campo "INSTALL_STATE_SUCCESS" y el campo "Install end time" (Hora de finalización de la instalación).
SONIC# show image status
-----------------------------------------------------------
Global operation status  : GLOBAL_STATE_INSTALL
-----------------------------------------------------------
File operation status    : TRANSFER_STATE_SUCCESS
File size(bytes)         : 959070190
File transfer bytes      : 959070190
File progress            : 100%
Transfer start time      : 2023-02-03 20:14:45+0000
Transfer end time        : 2023-02-03 20:16:02+0000
-----------------------------------------------------------
Install operation status : INSTALL_STATE_SUCCESS
Install start time       : 2023-02-03 20:16:02+0000
Install end time         : 2023-02-03 20:18:06+0000
SONIC#
 
  1. El comando "show image list" mostrará que la nueva imagen se utilizará en el próximo arranque. Tanto la imagen actual como la nueva aparecerán como disponibles en el switch local.
SONIC# show image list
Current: SONiC-OS-4.0.1-Enterprise_Base
Next: SONiC-OS-4.0.3-Enterprise_Base
Available:
SONiC-OS-4.0.1-Enterprise_Base
SONiC-OS-4.0.3-Enterprise_Base
SONIC#


Establezca la imagen de arranque predeterminada: Cambiar la imagen del sistema operativo que utilizará el switch en el próximo arranque.
  1. Para mostrar qué versión de imagen está configurada para arrancar en la siguiente recarga, utilice el comando "show image list".
SONIC#
SONIC# show image list
Current: SONiC-OS-4.0.1-Enterprise_Base
Next: SONiC-OS-4.0.1-Enterprise_Base
Available:
SONiC-OS-4.0.1-Enterprise_Base
SONiC-OS-4.0.3-Enterprise_Base
SONIC#
 
  1. Para cambiar la imagen del sistema operativo que utilizará el switch en el próximo arranque, utilice el comando "image set default [image name]". Para confirmar el cambio, ejecute nuevamente el comando "show image list" para verificar la imagen para el próximo arranque.
SONIC# show image list
Current: SONiC-OS-4.0.3-Enterprise_Advanced
Next: SONiC-OS-4.1.0-Enterprise_Premium
Available:
SONiC-OS-4.0.3-Enterprise_Advanced
SONiC-OS-4.1.0-Enterprise_Premium

SONIC# image set-default SONiC-OS-4.0.3-Enterprise_Advanced

SONIC# show image list
Current: SONiC-OS-4.0.3-Enterprise_Advanced
Next: SONiC-OS-4.0.3-Enterprise_Advanced
Available:
SONiC-OS-4.0.3-Enterprise_Advanced
SONiC-OS-4.1.0-Enterprise_Premium
SONIC#


Con esto concluyen los pasos necesarios para cambiar la imagen de arranque predeterminada en SONiC.
Para obtener más ayuda, consulte la documentación de la versión de la Guía del usuario de SONiC de Dell EMC Enterprise, la Guía de inicio rápido de Dell SONiC o comuníquese con el soporte técnico de Dell EMC.

Affected Products

Enterprise SONiC Distribution
Article Properties
Article Number: 000213661
Article Type: How To
Last Modified: 06 Dec 2023
Version:  3
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.