Command Line Reference
IP Multicast Configuration
IPMC Counter
9 min
ipmc counter view ipmc counter view table 1 ipmc counter view table 1 ipmc counter view command purpose show counters mroute \[ configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] display multicast routes counter information clear counters mroute \[ configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] clear multicast routes counter show counters mroute \[configured pattern show counters mroute \[configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] \[command] show counters mroute \[ configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] \[purpose] display multicast routes counter information \[parameters] parameter description src ip prefix/mask ip prefix for source address group ip prefix/mask ip prefix for group address src ip source address group ip group address vrf name the name of vrf \[view] privileged user view \[notes] the cx308p 48y n v2, cx532p n v2 and cx732q n v2 support counting for only 4 mroutes and support packet counting only, not byte counting; other device models support counting for up to 2048 mroutes and support both packet and byte counting \[use cases] sonic# show counters mroute mroute pattern vrf matched mroutes packets bytes \ vrfmroute1|0 0 0 0/0|225 0 0 0/16 vrfmroute1 0 0 0 0,225 0 0 2 103,785,264,483 6,849,827,455,878 10 14 255 1,225 0 0 1 90,121,982,616 5,948,050,852,656 default|0 0 0 0/0|226 0 0 0/16 default 10 14 0 1,226 0 0 1 0 0 10 14 0 2,226 0 0 1 0 0 sonic# show counters mroute entry 0 0 0 0 225 0 0 2 vrf mroute1 mroute vrf mroute pattern packets bytes \ 0 0 0 0,225 0 0 2 vrfmroute1 vrfmroute1|0 0 0 0/0|225 0 0 0/16 104,064,707,094 6,868,270,668,204 sonic# show counters mroute configured pattern 0 0 0 0/0 225 0 0 0/16 vrf mroute1 mroute pattern vrf matched mroutes packets bytes \ 0 0 0 0/0|225 0 0 0/16 vrfmroute1 0 0 0 0,225 0 0 2 107,178,683,072 7,073,793,082,752 10 14 255 1,225 0 0 1 93,515,401,205 6,172,016,479,53 clear counters mroute \[configured pattern clear counters mroute \[configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] \[command] clear counters mroute \[ configured pattern src ip prefix/mask group ip prefix/mask vrf vrf name | entry src ip group ip vrf vrf name ] \[purpose] clear multicast routes counter \[parameters] parameter description src ip prefix/mask ip prefix for source address group ip prefix/mask ip prefix for group address src ip source address group ip group address vrf name the name of vrf \[view] privileged user view \[use cases] sonic# clear counters mroute flow counters were successfully cleared ipmc counter config ipmc counter config table 2 ipmc counter config table 2 ipmc counter config command purpose counter mroute enable enable counter for multicast routes counter mroute poll interval interval configure counter polling interval counter mroute pattern src ip prefix/mask group ip prefix/mask vrf vrf name \[ max count ] configure pattern for counter counter mroute enable counter mroute enable \[command] counter mroute enable \[purpose] enable counter for multicast routes \[view] global configuration view \[use cases] sonic#sonic# configure terminal sonic(config)# counter mroute enable counter mroute poll interval counter mroute poll interval interval \[command] counter mroute poll interval interval \[purpose] configure counter polling interval \[parameters] parameter description interval polling interval the unit is millisecond the range of interval is \[1000,30000] and the default is 10000 \[view] global configuration view \[use cases] sonic# configure terminal sonic(config)# counter mroute poll interval 1000 counter mroute pattern counter mroute pattern src ip prefix/mask group ip prefix/mask vrf vrf name \[max count ] \[command] counter mroute pattern src ip prefix/mask group ip prefix/mask vrf vrf name \[ max count ] \[purpose] configure pattern for counter \[parameters] parameter description src ip prefix/mask ip prefix for source address group ip prefix/mask ip prefix for group address vrf name the name of vrf count maximum number of counters for single pattern, default value 30, range \[1,2000] \[view] global configuration view \[use cases] sonic# configure terminal sonic(config)# counter mroute pattern 100 20 1 0/24 226 1 0 0/24 vrf default max 10
