CounTeR
A command of the separate bcma command line; see Commands for other chip families.
Show/Clear the counter logical table entries.
CounTeR Show [<flags>] [<types>] [<counter> ...] [<port-list>]
Clear [<types>] [<counter> ...] [<port-list>]
Built-in help
Convenience command to show and clear the valid entries for
logical tables with counter attribute.
<flags> := [Changed] [Same] [Zero] [NonZero] [All]
Changed - show counter LT fields that changed
Same - show counter LT fields that did not change
Zero - show counter LT fields that are zero
NonZero - show counter LT fields that are not zero
Notes:
If neither Changed or Same is specified, Changed will be used.
If neither Zero or NonZero is specified, NonZero will be used.
Use All to display all counters regardless of value.
<types> := [[!]ErrDisc] [[!]TM]
ErrDisc - handle counter LTs with Error/Discard type
TM - handle counter LTs with Traffic Management type
Notes:
Use <types> to filter the LTs from the default counters list when no
<counter> is specified. Exclamation mark (!) can be added before
<types> to filter the inverse type.
<counter> : Target counter logical table
<port-list> : Logical port numbers which are separated by ',' or '-'
Built-in examples
show
show ed !tm
s all tm 1,4-6,10
clear
clear ed
c ctr_mac 1