On this page
Building a network is the short part. Most of a switch's life is spent in service, and the work then is different. Which software is it running, and what will it run after the next reboot? How do you make a change without locking yourself out if you get it wrong? And when something happens during the night, where does the switch write it down? This post answers those three questions on a SONiC switch: software images, safe configuration changes with a way back, and the logs. The switches run Enterprise SONiC 4.6.0; the community SONiC part includes an upgrade from start to finish.
This is the written deep dive for lesson 7 of the SONiC course on the LevelUP I.T. YouTube channel, the last lesson of the first level. It runs on the lab built in lesson 1. Every output below is from the lab as the lesson recorded it.
What you'll find here
- Software images: more than one on a disk, current and next, and the boot loader that chooses.
- The image list, the image folders on the disk, and the image commands.
- Health: system status, the reboot cause, uptime, and one service restarted by itself.
- The system log: one file, the parts of a line, and reading it with Linux tools. Events and alarms.
- A configuration session: a draft, abort, commit, and the checkpoint each commit leaves.
- A commit with a timeout: a change the switch takes back by itself.
- Community SONiC: an upgrade with
sonic-installer, what happens to the login, the way back, and cleaning up. - Community SONiC:
show logging,config checkpointandconfig rollback.