SONiC upgrade, safe configuration changes, rollback and logs: day-2 basics

Lesson 7 of the SONiC course: software images and an upgrade with the way back, configuration sessions, a commit that undoes itself, checkpoints and rollback, and the system log, on Enterprise SONiC and on community SONiC.
Hand-drawn whiteboard: SONiC day-2 basics, three boxes named images, changes and logs

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 checkpoint and config rollback.

This post is for paying subscribers only

Subscribe to LevelUp I.T. newsletter and stay updated.

Don't miss anything. Get all the latest posts delivered straight to your inbox. It's free!
Great! Check your inbox and click the link to confirm your subscription.
Error! Please enter a valid email address!