The bcm-shell commands are passed directly from the Cisco NX-OS CLI to the specific T2 ASIC instance. The T2 ASIC instance
can be on the fabric module or on the front panel line card.
The command syntax is
as follows:
bcm-shell module
module_number [instance_number:command]
Where
module_number
|
Module
number in the chassis.
|
instance_number
|
T2 instance
number
-
When not
specified, the T2 instance number defaults to 0.
-
When a
wildcard ('*') is specified, all T2 instances are processed.
|
command
|
Broadcom
command
|
Note
|
Cisco NX-OS command
extensions such as ‘pipe include’ or ‘redirect output to file’ can be used to
manage command output.
|
Note
|
Entering commands with the CLI API are recorded in the system accounting log for auditing purposes. Commands that are entered
directly from the bcm-shell are not recorded in the accounting log.
|
The following is an example when the T2 instance number not entered.:
switch# bcm-shell module 26 "ports"
Executing ports on bcm shell on module 26
ena/ speed/ link auto STP lrn inter max loop
port link duplex scan neg? state pause discrd ops face frame back
hg0 !ena 42G FD HW No Forward None FA XGMII 16360
hg1 !ena 42G FD HW No Forward None FA XGMII 16360
hg2 !ena 42G FD HW No Forward None FA XGMII 16360
hg3 !ena 42G FD HW No Forward None FA XGMII 16360
hg4 !ena 42G FD HW No Forward None FA XGMII 16360
<snip>
The following is an example when accessing the bcm-shell ‘ports’ display on module 26, T2 instance 1, and using the pipe to
display only the ports in ‘up’ state:
switch# bcm-shell module 26 "1:ports" | inc up
port link duplex scan neg? state pause discrd ops face frame back
hg9 up 42G FD HW No Forward None FA XGMII 16360
hg10 up 42G FD HW No Forward None FA XGMII 16360
hg11 up 42G FD HW No Forward None FA XGMII 16360
The following example when the T2 instance number specified as a
wildcard ('*').:
The first set in the output is the result for T2 instance 0. The
second set is the result for instance 1 on the fabric module.
switch# bcm-shell module 26 "*:ports" | inc up
port link duplex scan neg? state pause discrd ops face frame back
hg9 up 42G FD HW No Forward None FA XGMII 16360
hg10 up 42G FD HW No Forward None FA XGMII 16360
hg11 up 42G FD HW No Forward None FA XGMII 16360
port link duplex scan neg? state pause discrd ops face frame back
hg9 up 42G FD HW No Forward None FA XGMII 16360
hg10 up 42G FD HW No Forward None FA XGMII 16360
hg11 up 42G FD HW No Forward None FA XGMII 16360
Note
|
Alternatively, you
can access the bcm-shell on a module (LC or FM) directly from the supervisor.
The following is an example of how to access the bcm-shell from the supervisor.
switch# bcm-shell module 3
Entering bcm shell on module 3
Available Unit Numbers: 0 1
bcm-shell.0>
|