User's Manual

7. DIAGNOSIS
7.5 Serial command line interface
A serial command line interface (CLI) that is passive, which means it only shows text messages, is avail-
able in the INIT, OPERATIONAL, and MAINTENANCE states. The SHOP mode starts an active CLI,
which means that commands can be entered. This section describes the CLI that is available in the
SHOP mode.
SHOP mode can be activated only if Grnd-Mode is set to ON on the DB-25P configuration plug.
SHOP mode does not start the firmware and does not allow data loading and SNMP.
SHOP mode makes it possible to debug and diagnose the switch at a fine-grained level.
Open the CLI window, type help and press Enter to get an overview of the available commands:
bash > help
help (?) - Prints information on how to use the serial terminal
swe - Switch Engine commands
es - End System commands
mdio - MDIO commands
shift - Shift register command
voltage - Voltage tests
dio - DIO commands
netcli - CLI via Ethernet
file - File commands
sys - System commands
7.5.1 Read/write commands
swe rd <addr> Reads from a specific address (as defined in the
switch IP ICD)
Example: swe rd 0x0 reads the device ID of the
switch.
swe wr <addr> <val> Writes to a specific address.
es rd <addr> Reads from a specific address (as defined in the end-
system IP).
es wr <addr> Writes to a specific address.
mdio rd <addr> Reads to the mdio bus.
mdio wr <addr> <val> Writes to the mdio bus
voltage idx Reads the voltage for a given index.
voltage temp Reads the voltage of the temperature sensor.
voltage smc Read all voltages from the SMC board.
voltage ain Read all voltages from the AIN pins.
voltage 3v3 Tests 3V3 over voltage.
voltage list <idx> Prints a list of voltage indexes.
7.5.2 File commands
Commands for erasing and uploading files can be useful as a backup if the update of the IP or CONFIG
has failed and if the end system cannot be reached through Ethernet:
file erase <filename> Erases a file
file upload <filename>
<bytes>
Uploads a file.
© TTTech Computertechnik AG 2020. All rights reserved.
Confidential and Proprietary Information
32
Document Number:
D-A664Lab-G-05-001