1、查看当前版本信息show version
root@sonic:/home/adminadmin# show version
HC-NOS version: HC-NOS.1.21.RCd-venus
Distribution: Debi
Kernel: 4.19.0-9-2
Build commit: c70b4cd
Build date: Wed Sep 28 20:24:48 UTC 2022
Built by: sonic@siaphis
Platform: x86
HwSKU: Mu
ASIC: broadcom
Serial Number: 2198
StartUpTime: 2022-11-14 19:15:18
Uptime: 19:16:12 up 0 min, 1 user, load average: 2.27, 0.70, 0.24
Docker images:
REPOSITORY TAG IMAGE ID SIZE
docker-orchagent 1.21.RCd-venus 224197cb0a84 396MB
docker-orchagent latest 224197cb0a84 396MB
docker-fpm-frr 1.21.RCd-venus e04792347d33 393MB
docker-fpm-frr latest e04792347d33 393MB
docker-teamd 1.21.RCd-venus a2e6e56d7dd7 380MB
docker-teamd latest a2e6e56d7dd7 380MB
docker-syncd-brcm 1.21.RCd-venus 94c85a23252b 633MB
docker-syncd-brcm latest 94c85a23252b 633MB
docker-lldp-sv2 1.21.RCd-venus 53990171faa6 371MB
docker-lldp-sv2 latest 53990171faa6 371MB
docker-dhcp-relay 1.21.RCd-venus ab77ae024ebf 370MB
docker-dhcp-relay latest ab77ae024ebf 370MB
docker-database 1.21.RCd-venus 25ec2e5f43b8 368MB
docker-database latest 25ec2e5f43b8 368MB
docker-platform-monitor 1.21.RCd-venus cdfd16e88e98 409MB
docker-platform-monitor latest cdfd16e88e98 409MB
docker-sonic-telemetry 1.21.RCd-venus 9cd1defa9269 463MB
docker-sonic-telemetry latest 9cd1defa9269 463MB
docker-hs-arpd 1.21.RCd-venus 8bbfbd938def 369MB
docker-hs-arpd latest 8bbfbd938def 369MB
2、升级sonic版本sonic_installer install
*注,设备可能不会自动获取地址,需要手动获取地址dhclient -r eth0/dhclient eth0
3、查看当前已经安装的sonic镜像,以及下次启动所使用的的sonic镜像sonic_installer list
root@sonic:/home/adminadmin# sonic_installer list
Current: HC-NOS.1.21.RCd-venus
Next: HC-NOS.1.21.RCd-venus
Available:
HC-NOS.1.21.RCd-venus
HC-NOS.1.21.RCd-venus
4、指定下次启动默认版本sonic_installer set_next_boot
5、指定以后启动默认版本sonic_installer set_default
6、从当前内存中移除镜像sonic_installer remove(不能移除当前正在运行的镜像)
标签:sonic,升级,RCd,installer,venus,方法,1.21,latest From: https://www.cnblogs.com/path602/p/16890113.html