Connect to Switch over USB-Serial Cable

In the event that network plumbing is lacking, down, or unconfigured for procuring devices, then it is recommended to use the Serial/COM ports on the spine and leaf switches.

This guide will instruct the user on procuring MAC addresses for the NCNs metadata files with the serial console.

Mileage may vary, as some obstacles such as BAUDRATE and terminal usage vary per manufacturer.

Common Manufacturers

Refer to the external support/documentation portals for more information:

Setup / Connection

Use minicom, screen, or cu to connect to the switch’s console.

Prerequisites

A USB-DB-9 or USB-RJ-45 cable is connected between the switch and the NCN.

screen
screen /dev/ttyUSB1
screen /dev/ttyUSB1 115200
minicom
minicom -b 9600 -D /dev/ttyUSB1
minicom -b 115200 -D /dev/ttyUSB1
cu
cu -l /dev/ttyUSB1 -s 115200

Troubleshoot Connections

Tip : Mellanox

On Mellanox switches, if the console is not responding when opened, try holding CTRL + R (or control + R for macOS) to initiate a screen refresh. This should take 5-10 seconds.

Tip : No USB TTY Device

If there is no device in /dev/tty*, follow dmesg -w and try reseating the USB cable (unplug the end in the NCN, and plug it back in).

Observe the dmesg -w output. Does it show errors pertaining to USB? The cable may be bad, or a reboot may be required.

Additional External References