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
本文介绍了一种使用BCM芯片进行特定类型数据流统计的方法。通过一系列调试命令,如fpinitfpgroupcreate、fpentrycreate等,实现了对字节和数据包类型的流统计。
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
423
5195

被折叠的 条评论
为什么被折叠?