We cannot turn on the counter from the last disabled point, however, we can reset it.
Ideally, the settings can be read with the below command.
too long# set dcbcm bcmshell "counter"
HW (unit 0)
Current settings:
Interval=500000
PortBitMap=0x00000000000000000000000000000000000001ffffffffffffffffffffffffff, cpu,xe
DMA=True
We can set this value by copy paste of this map.
set dcbcm bcmshell "counter portbitmap=0x00000000000000000000000000000000000001ffffffffffffffffffffffffff"
E.G:
too long# set dcbcm bcmshell "counter"
HW (unit 0)
Current settings:
Interval=500000
PortBitMap=0x0000000000000000000000000000000000000003fffffffffffffffffffffffe, xe0-xe96
DMA=True
too long# ...0000000000000001ffffffffffffffffffffffffff"
HW (unit 0)
too long# set dcbcm bcmshell "counter"
HW (unit 0)
Current settings:
Interval=500000
PortBitMap=0x00000000000000000000000000000000000001ffffffffffffffffffffffffff, cpu,xe
DMA=True
too long#