0% found this document useful (0 votes)
331 views1 page

Broadcom SONiC Cheat Sheet

Uploaded by

jemotip479
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
331 views1 page

Broadcom SONiC Cheat Sheet

Uploaded by

jemotip479
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

BROADCOM SONiC CHEAT SHEET

SONiC (Software for Open Networking in the Cloud) is an open source network operating system that provides a fully-featured network stack that
can run on various commodity hardware. SONiC is designed to be flexible and modular, allowing it to support a wide range of networking devices
and configurations. Here are some common SONiC commands used in the management of network operating systems:
To access the Broadcom SONiC CLI, you first need to log into a device running SONiC using a secure shell (SSH) client such
Login: admin
as PuTTY or OpenSSH. Here are the steps to access the Broadcom SONiC CLI:
Password: YourPaSsWoRd
1. Connect to your SONiC device's use IP address, hostname or serial com cable
2. Enter your username and password to log in. Use the default username and password for SONiC
3. Once you have logged in, you can access the Broadcom SONiC CLI by typing "sonic-cli" on the command line default authentication
You should now be in the Broadcom SONiC CLI and can start using the available commands.

configuration commands tech support commands


sonic-cli A tool that allows users to interact with a SONiC switch show tech support Generates a detailed report of the system's current
through the command line configuration and status. It can be useful for troubleshooting issues and
providing system information to support personnel
configure terminal Enters configuration mode, allowing you to make
sudo generate_dump Creates a core dump of the current state of the system. This can
changes to the device's configuration be useful for analyzing system crashes and diagnosing issues
interface <interface-name> Enters interface configuration mode for show platform Displays detailed information about the hardware platform, including
the specified interface, where you can configure interface-specific the CPU, memory, and other components
settings such as IP addresses and VLANs
show log Shows the system log, which contains messages and events generated by
copy running-config startup-config Saves the current configuration the system
to non-volatile memory, ensuring that it is saved even after
sudo bash -c 'show log > /var/log/ sonic.log' - runs the "show log" command and
a reboot or power loss redirects its output to the specified file, which is "/var/log/sonic/sonic.log"
in this case
reboot Reloads the system, allowing you to restart the device
and apply any changes to the configuration sudo cat /var/log/sonic.log - display the contents of the log file on the terminal

show commands
show version Shows information about the SONiC software version running on the device, including the version number, build date, and other details
show running-configuration Displays the current configuration of the device, including any changes that have been made since the last reboot
show system uptime Displays the amount of time since the device was last rebooted
show interfaces Displays information about the network interfaces on the device, including their status, MAC addresses, IP addresses, and other details
show interface <interface-name> Displays detailed information about a specific network interface, including its status, MAC address, IP address, and
configuration
show interfaces status Shows the status of all interfaces on the device, including whether they are up or down, connected or disconnected, and the
speed and duplex settings
show bgp summary Shows the status of all Border Gateway Protocol (BGP) sessions, including the number of established and active sessions, as well as
any errors or warnings
show route Displays the current routing table, including all routes and their associated next-hop addresses
show vlan Shows the current VLAN configuration, including all configured VLANs and their associated interfaces
ping <destination> Sends a ping packet to a specified destination, allowing you to test network connectivity
SCAN ME
traceroute <destination> Traces the route that packets take to reach a specified destination, showing each hop along the way
show lldp neighbors Displays information about the neighbors discovered through the Link Layer Discovery Protocol (LLDP), including their device ID,
port ID, and capabilities

You might also like