BCM芯片FP之counter

BCM芯片可以针对某一特定类型的流进行统计,调试的命令如下:

fp init
fp group create 0 1
fp entry create 1 1
fp stat create group=1 type0=Bytes type1=Packets
fp stat attach entry=1 StatId=1 
fp entry install 1

fp stat set StatId=1 type=bytes val=0
fp stat get StatId=1 type=bytes

猜你喜欢

转载自blog.csdn.net/lisayh/article/details/79637140
今日推荐