Command reference
Every command available at the drivshell> prompt on Trident 3. Each page also shows the command’s built-in help, as printed by help <command>.
Shell commands
Command |
Summary |
Notes |
|---|---|---|
Display list of commands |
||
Print this list OR usage for a specific command |
alias of |
|
Show MAX127 A/D Conversions |
||
Set ESW hardware age timer |
||
ALPM trouble shooting |
||
ASF (cut-through) Mode |
||
Assert |
||
Attach SOC device(s) |
||
Port-based network access control |
||
Execute a command in the background. |
||
Configure baseboard system parameters. |
||
SAI BCM shell commands |
||
Manage BFD endpoints |
||
Run on-chip memory built-in self tests |
||
Monitor incoming BKP Discard Messages |
hidden |
|
Manage BPDU addresses |
||
place to hang a breakpoint |
||
Manage Time API BroadSync endpoints |
||
Broadcom SAI Version: show the SAI, OCP SAI, SDK and Cancun versions |
||
Set BIST operation timeout in microseconds |
||
MMU config |
||
Run Cable Diagnotics |
||
Turn on/off software caching of tables |
||
Cancun file and status operations |
||
Execute command based on string match |
||
Change current working directory |
||
Init MMU cell free address table |
hidden |
|
Check a sorted memory table |
||
Enter the C interpreter |
||
Clear a memory table or counters |
||
Clear terminal output |
||
Set core clock frequency. |
||
Manage packet color |
||
Control combination copper/fiber ports |
||
Configure Management interface |
||
Control console options |
||
Copy a file |
||
Manage classes of service |
||
Enable/disable counter collection |
||
Enable/disable counter collection |
||
Set DAC register |
||
Set or display current date |
||
Indirect reads to DDR |
||
Indirect writes to DDR |
||
Read DDR40 phy registers |
||
Tune DDR40 phy registers |
||
Write DDR40 phy registers |
||
Enable/Disable debug output |
||
Put CLI task in a busy-wait loop for some amount of time |
||
Delete entry by key from a sorted table |
||
Detach SOC device(s) |
||
Device add/remove |
||
List current directory |
alias of |
|
BCM Dispatch control. |
||
DMA Facilities Interface |
||
Simple test of the SOC DMA ROM API |
||
Manage directed port mirroring |
||
DPLL operations on SPI bus |
||
Map Diffserv Code Points |
||
Double Tagging |
||
Dump an address space or registers |
||
Echo command line |
||
Edit each field of SOC internal register |
||
Start EDK-Host console |
||
Manage source-based egress enabling |
||
Set/Display the Ethernet AV characteristics |
||
Exit the current shell (and possibly reset) |
||
Evaluate infix expression |
||
External memory automatic tuning |
||
External memory automatic tuning 2 |
||
External memory automatic tuning (summary) |
||
Manage Field Processor |
||
Initialize on board flash as a file system |
||
Sync up on board flash with file system |
||
Flexport |
||
Flow Database for flexible tables |
||
Flowtracker commands |
||
FlowtracketMon |
||
Monitor ports for packets |
||
Execute a series of commands in a loop |
||
Get register |
||
Get a GPORT id |
||
Convert hex words to higig info |
||
Convert hex words to higig2 info |
||
Display current HAL resource usage |
||
Get or set hardware hash modes |
||
Display Hash Destination |
||
Set I2C HClk (MUX for clock-chip-selects) |
||
Get or set packet tx header mode |
||
Print this list OR usage for a specific command |
||
List command history |
||
MMU HSP hierarchy |
||
Inter-Integrated Circuit (I2C) Bus commands |
||
Enable/Disable IBOD sync process |
||
Conditionally execute commands |
||
Initialize SOC and S/W |
||
Insert into a sorted table |
||
Enable, disable, show interrupts |
||
IPFIX |
||
Set default IPG values for ports |
||
Manage IPMC (IP Multicast) addresses |
||
Read from IPROC Area |
||
Write to IPROC Area |
||
List current background jobs |
||
Terminate a background job |
||
Manage kernel network functions |
||
KnetSync Diag commands |
||
Manage L2 (MAC) addresses |
||
Control Learn Thread Execution |
||
Change ARL handling mode |
||
Manage L3 (IP) addresses |
||
Switch Latency Bypass Diagnostics |
||
Print message on Matrix Orbital LCD display (via I2C) |
||
Control/Load LED processor |
||
Configure/Display link scanning |
||
List the entry format for a given table |
||
List register fields |
||
MMU LLS hierarchy |
||
Create/Delete a variable in the local scope |
||
Enable/Disable logging and set log file |
||
Look up a table entry |
||
Execute a series of commands in a loop |
||
List current directory |
||
M0 commands for led/linkscan fw |
||
Manage multicast table |
||
Execute cmd on uC |
||
Create MCS dumpfile |
||
Load hexfile to MCS memory |
||
Start/stop messaging with MCs |
||
Show MCS fault status |
||
Print MCS timestamp data |
||
Displays first valid memory |
||
Displays next valid memory |
||
Turn on/off software memory error scanning |
||
Turn on/off memory snooping |
||
Manage XGS4 Mac-in-MAC |
||
Manage port mirroring |
||
Make a directory |
||
Place SOC MMU in debug mode |
hidden |
|
Set shell mode |
||
Modify table entry by field names |
||
MODID Remapping |
||
Read/modify/write register |
||
Copy a file to the console |
||
Rename a file on a file system |
||
Manage XGS4 MPLS |
||
MasterSPI Read / Write |
||
Set MIIM operation timeout in usec |
||
Manage multicast operation |
||
Set I2C LPT state (MUX for clock-chip-selects) |
||
Ignore command line |
||
Manipulate Nonvolatile memory |
||
Manage OAM groups and endpoints |
||
OneSync Diag commands |
||
Monitor ports for packets |
||
Pause command processing and wait for input |
||
Convert port bitmap string to hex |
||
R/W PCIE core registers |
||
PCIe PHY speicific utilities |
||
Set/Display phy characteristics |
||
Set/Display TX/PacketWatcher with streamlined pktio driver type |
||
Configure PowerOverEthernet controllers. |
||
Set I2C POE (MUX for poe-chip-selects) |
||
Pop an entry from a FIFO |
||
Set/Display port characteristics |
||
Portmod Diagnostics |
||
Set/Display port rate metering characteristics |
||
Set/Display sflow port sampling characteristics |
||
Set/Display sflow port sampling rate |
||
Display port status in table |
||
Show PPD clock delay |
||
Display current variable list |
||
Probe for available SOC units |
||
Control uKernel port scanning. |
||
PTP stack configuration |
||
Push an entry onto a FIFO |
||
Set register |
alias of |
|
Port VLAN settings |
||
Print platform dependent working directory |
||
QCM commands |
||
Exit the current shell (and possibly reset) |
alias of |
|
Manage packet rate controls |
||
Set/Display port bandwidth rate metering characteristics |
||
Save contents of an rc file in memory |
||
Load commands from a file |
||
Reboot the processor |
||
Test a register value |
||
Turn on/off register snooping |
||
Delete entry by index from a sorted table |
||
Rename a file on a file system |
alias of |
|
Reboot the processor |
alias of |
|
Tests for resource manager |
||
Remove a file from a file system |
||
Remove a directory |
||
Receive some number of packets |
hidden |
|
Configure RX settings |
||
Call bcm_rx_init |
||
Register an RX handler to dump received packets |
||
Displays current SAL resource usage |
||
Write data to a file |
||
Send raw S-Channel message, get response |
||
Search a table for a byte pattern |
||
Performs operations related to Soft Error Recovery |
||
Set various configuration options |
||
Create/Delete a variable in the global scope |
||
Set register |
||
Invoke a system dependent shell |
||
Show information on a subsystem |
||
Tell plisim to shutdown |
||
Suspend the CLI task for specified amount of time |
||
Print internal Driver control information |
||
SOC reset (SCP channel) |
hidden |
|
SPI speicific utilities |
||
External DDR2_SRAM test control |
||
Turn on/off software SRAM error scanning |
||
Set/get the stack mode |
||
Get stacking characteristics of a port |
||
Set stacking characteristics of a port |
||
Tell plisim to activate |
||
Manage spanning tree groups |
||
Set S-Channel timeout in microseconds |
||
Hardware Stacking Mode Control |
||
Enable/Disable SW AN Thread |
||
General switch control |
||
Show synthesizer frequency |
||
Cycle packets through selected system |
||
TCAM control |
||
T-DPLL configuration and management |
||
Collects information required to debug a given feature or subfeature |
||
Show environmental conditions |
||
Clear run statisistics for a test |
||
List loaded tests and status |
||
Set global test run modes |
||
Set test Parameters |
||
Run a specific or selected tests |
||
Select tests for running |
||
Time the execution of one or more commands |
||
TM config check |
||
TM dump memories |
||
TM config show |
||
Manage port aggregation |
||
Transmit one or more packets |
||
txbeacon tests |
||
Print current TX statistics |
||
Enable packet transmission |
||
Transmit one or more packets in background |
||
Terminate a previous “txstart” command |
||
Print version and build information |
||
Manage virtual LANs |
||
Optionally boot warm |
||
Manage XGS4 WLAN |
||
Write entry(s) into a table |
||
Run XAUI BERT on specified port pair |
||
Configure clocks for PCI, SDRAM, Core clock |
||
xmem r addr: read 4 bytes from address xmem w addr data: write 4 bytes data to address |
||
Communication with PD63000 PowerOverEthernet MCU. |
Commands for other chip families
The same library also contains the shell commands for newer switch chips that use logical tables instead of registers. They cannot be used on Trident 3 and are listed only for completeness.
Logical-table switch mode
Command |
Summary |
|---|---|
ALPM info |
|
ASF (cut-through) Mode |
|
Run bcm LT shell |
|
BFD endpoint info |
|
Clear a memory table or counters |
|
Cable length measurement |
|
Manage classes of service |
|
Enable/disable counter collection |
|
Enable/disable debug counter collection |
|
Run SDKLT debug shell |
|
Detach SOC device(s) |
|
Dump information |
|
Display drop/trace event counters |
|
Fast fast boot |
|
Display Field Processor information. |
|
Manage flex counter |
|
Manage Flex Digest |
|
Flexport |
|
FlowDB info |
|
Flowtracker sw state |
|
HA memory usage and associate information. |
|
Get or set packet tx header mode |
|
Initialize SOC and S/W |
|
Manage IPMC (IP Multicast) addresses |
|
Manage L2 (MAC) addresses |
|
Manage L3 (IP) addresses |
|
Configure/Display link scanning |
|
Turn on/off software memory error scanning |
|
Manage port mirroring |
|
Display mirror on drop information |
|
Display monitor event |
|
Manage MPLS |
|
Manage multicast operation |
|
Monitor ports for packets |
|
Convert port bitmap string to hex |
|
Per Port/Per Queue counter utility |
|
Display Policer information. |
|
Set/Display port characteristics |
|
Set/Display port control |
|
Display port status in table |
|
Port VLAN settings |
|
Display range module information. |
|
Manage packet rate controls |
|
Set/Display port bandwidth rate metering characteristics |
|
Performs operations related to Soft Error Recovery |
|
Show information on a subsystem |
|
Turn on/off software SRAM error scanning |
|
Get stacking characteristics of a port |
|
Set stacking characteristics of a port |
|
Manage spanning tree groups |
|
Hardware Stacking Mode Control |
|
General switch control |
|
Get table information |
|
Set/Get TOD |
|
Manage port aggregation |
|
Transmit one or more packets |
|
Display UDF information |
|
Manage VLAN usage |
|
Optionally boot warm |
bcma command line
A separate interpreter, entered with BcmltSHell or DebugSHell on logical-table devices only.
Command |
Summary |
|---|---|
Show available commands. |
|
Debug command for ALPM. Use this tool only when PTRM-ALPM is idle, meaning there is no commits to ALPM LTs in parallel. |
|
Base board control user interface. |
|
Show build configuration for BCMDRD component. |
|
Base driver control. |
|
Execute command based on string match. |
|
Change current working directory. |
|
CMIS management user interface. |
|
List device configuration. |
|
Show/Clear the counter logical table entries. |
|
Debug shell. |
|
Put CLI task in a busy-wait loop for some amount of time. |
|
Delete chip hash table entry. |
|
Delete chip hash table entry. |
|
Device Init (DI) information and control operations. |
|
DMA facilities interface. |
|
Command for Debug Observation Point (DOP) logical tables. |
|
Execute a series of commands in a loop. |
|
Echo command line. |
|
EDK subsystem management. |
|
Event debug manager. |
|
Quit shell. |
|
Evaluate infix expression. |
|
FFB apply and information |
|
FIFODMA operations. |
|
Redirect the CLI command output to the specified file. |
|
FlowTracker debug command. |
|
Execute a series of commands in a loop. |
|
Firmware Management command. |
|
Generic DPLL commands. |
|
Get chip register/memory contents. |
|
Get chip register/memory contents. |
|
Get chip register/memory contents (raw). |
|
Get chip register/memory contents (raw). |
|
GLB debug command. |
|
Execute system-provided grep command. |
|
HA memory usage and associate information. |
|
HAL debug access. |
|
HAL debug access. |
|
Check health of device. |
|
Show system health. |
|
Show help. |
|
Display command history. |
|
Hardware License Authentication control. |
|
Hardware License Authentication control. |
|
I2C control user interface. |
|
IDI debug command. |
|
Conditionally execute commands. |
|
Interface module management user interface. |
|
Insert chip hash table entry. |
|
Insert chip hash table entry. |
|
interrupt debug command. |
|
ISSU structure registration analysis. |
|
KNET access. |
|
FlowTracker debug command. |
|
List symbols for a chip. |
|
List symbols for a chip. |
|
Memory usage statistics from Local Memory Manager. |
|
Show/clear/set local environment variables. |
|
Lookup chip hash/tcam table entry. |
|
Lookup chip hash/TCAM table entry. |
|
Execute a series of commands in a loop. |
|
List current directory. |
|
Logical table access. |
|
Capture of logical table operations. |
|
Debug command for LTM. |
|
Microcontroller subsystem management. |
|
Create a directory. |
|
ONESYNC access. |
|
Convert a port list string into a port bitmap. |
|
PCIe diagnostics. |
|
PHY based commands. |
|
PHY based diagnostics commands. |
|
Show how input identifier is parsed. |
|
Show how input identifier is parsed. |
|
Display switch pipe information. |
|
Manage packet device. |
|
Packet IO performance test. |
|
Inject a trace packet and get trace data. |
|
Metadata decode. |
|
Metadata encode. |
|
POP an entry from a FIFO. |
|
Pop an entry from a FIFO. |
|
PC HA state recover. |
|
Display port status. |
|
Show all environment variables. |
|
Physical table access. |
|
Debug command for PTM. |
|
Push an entry into a FIFO. |
|
Display current working directory. |
|
QSPI debug command. |
|
Quit shell. |
|
Pseudo-random number generator. |
|
Save contents of an rc file in memory. |
|
Load commands from a file. |
|
Device resource manager interface. |
|
Delete a directory. |
|
Packet RX debug operations. |
|
Debug command for SBR. |
|
SBUSDMA operations. |
|
Perform raw S-channel operation. |
|
Perform raw S-channel operation. |
|
Debug command for SER. |
|
Modify chip register/memory contents. |
|
Modify chip register/memory contents. |
|
Show/clear/set global environment variables. |
|
Modify chip register/memory contents (raw). |
|
Modify chip register/memory contents (raw). |
|
Launch system shell. |
|
Suspend the CLI task for specified amount of time. |
|
Manage SOCKET. |
|
Execute system-provided sort command. |
|
SPI debug command. |
|
Transform data based on symbol table information. |
|
Diag utility for tdmfw. |
|
Collect diagnostics and debug information. |
|
Test operation. |
|
List or Display loaded tests and status. |
|
Run a specific or selected tests. |
|
Measure the execution time for one or more CLI commands. |
|
TSFIFO command. |
|
TimeSyncGPIO command. |
|
Display TRM statistics. |
|
TimeSync driver control. |
|
Transmit packets. |
|
List device-specific information. |
|
Show version information. |