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 true 387,274#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type 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] true 273,388#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[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] true 222,439#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type \[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 true 378,283#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type 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] true 109,552#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type \[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] true 191,470#4283c7 unhandled content type #4283c7 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type unhandled content type unhandled content type #d8e5f5 unhandled content type #d8e5f5 unhandled content type \[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
