Sonic OS Basics

Basic Show Commands

show boot

show environment (VM will not have sensors)

show version

show platform summary

show reboot-cause

show reboot-cause history

show reboot-cause history all

show uptime

show users

show platform ssdhealth [--vendor]


User Mgmt

To change password for a local user use the following. It will prompt you to type the new password twice.

sudo passwd 'USER'


Logging


Setting Clock

show clock

show clock timezones

Configure clock manually

sudo config clock date yyy-mm-dd hh:mm:ss

Configure clock timezone

sudo config clock timezone 'US/Eastern'


Interfaces/Transceivers

In a VM transceivers will not show up unless the devices are passed through directly

show interfaces transceiver (eeprom [-d|--dom] | info | lpmode | presence | error-status [-hw|--fetch-from-hardware] | pm | status) [<interface_name>]


Popular posts from this blog