bcmsh — Broadcom diag shell reference

Getting started

  • Introduction
  • Accessing the shell
  • Reading this guide
  • Example validation

Concepts

  • Units
  • Ports and port bitmaps
  • Memories and registers
  • Configuration variables
  • Cint: the C interpreter
  • The Cint language
  • Scripting

How-to

  • KNET and the CPU port
  • Capture port traffic with tcpdump
  • Debugging a link
  • PHYs and RJ-45 SFPs
  • An L2 switch with two VLANs and SVIs
  • Inspecting L3 forwarding
  • Changing the chip configuration live
  • Cint recipes

Command reference

  • Command reference
  • Cint API on this build
    • Registered names
    • Compared with OpenBCM 6.5.27
      • Functions not in OpenBCM
      • Structures and typedefs not in OpenBCM
      • Enums not in OpenBCM
      • Callback types not in OpenBCM
      • Constants not in OpenBCM
      • All registered functions

Appendix

  • Glossary
  • Further reading
bcmsh — Broadcom diag shell reference
  • Cint API on this build
  • All registered functions

All registered functions

Every function the Cint interpreter on this build can call, with its prototype as Cint knows it, one page per module. Functions that are not in OpenBCM 6.5.27’s Cint are marked /* not in OpenBCM 6.5.27 */. Use the search box to find a function by name. Back to Cint API on this build.

Names in capitals are SDK macros that Cint registers as functions. Their parameters are shown as pointers, but you call them with plain variables as in C, for example BCM_GPORT_MODPORT_SET(gport, modid, port);.

  • bcm_cosq_* (841)
  • bcm_cpri_* (247)
  • bcm_fabric_* (185)
  • bcm_fcoe_* (51)
  • bcm_field_* (3200)
  • bcm_flexctr_* (57)
  • bcm_flexdigest_* (103)
  • bcm_flexinstr_* (53)
  • bcm_flexstate_* (55)
  • bcm_flow_* (128)
  • bcm_flowtracker_* (206)
  • bcm_gport_* (387)
  • bcm_ifa_* (56)
  • bcm_inc_* (41)
  • bcm_instru_* (89)
  • bcm_int_* (59)
  • bcm_ipmc_* (52)
  • bcm_l2_* (147)
  • bcm_l3_* (368)
  • bcm_mirror_* (129)
  • bcm_mpls_* (124)
  • bcm_multicast_* (134)
  • bcm_oam_* (159)
  • bcm_pkt_* (70)
  • bcm_pktio_* (76)
  • bcm_policer_* (102)
  • bcm_port_* (557)
  • bcm_ptp_* (190)
  • bcm_rx_* (146)
  • bcm_sat_* (61)
  • bcm_stat_* (177)
  • bcm_stk_* (70)
  • bcm_subport_* (50)
  • bcm_switch_* (411)
  • bcm_tdpll_* (74)
  • bcm_time_* (56)
  • bcm_trunk_* (90)
  • bcm_tsn_* (161)
  • bcm_tunnel_* (41)
  • bcm_udf_* (58)
  • bcm_vlan_* (269)
  • bcm_vxlan_* (60)
  • phymod_phy_* (257)
  • portmod_port_* (297)
  • Other bcm_* modules (932)
  • Other bcmlt_* modules (57)
  • Other diag_* modules (41)
  • Other phymod_* modules (52)
  • Other portmod_* modules (52)
  • Other soc_* modules (85)
  • Other functions (94)
Previous Next

© Copyright 2026, sonix-network contributors.

Built with Sphinx using a theme provided by Read the Docs.