Yamaha 10G SWR2310-28GT/18GT/10G Command Reference - Page 264
Show metering counters
View all Yamaha 10G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 264 highlights
264 | Command Reference | Traffic control [Example] Apply aggregate policer "AGP-01" to the two traffic classes "class1" and "class2" of policy map "policy1." • Executing metering by SrTCM with CIR:48kbps, CBS:12kbyte, and EBS:12kbyte • Yellow: rewrite DSCP value to 10, Red: discard [Create an aggregate policer] SWR2310(config)#aggregate-police AGP-01 SWR2310(config-agg-policer)#police single-rate 48 12 12 yellow-action remark redaction drop SWR2310(config-agg-policer)#remark-map yellow ip-dscp 10 SWR2310(config-agg-policer)#exit [Set policy] SWR2310(config)#policy-map policy1 SWR2310(config-pmap)#class class1 SWR2310(config-pmap-c)#police-aggregate AGP-01 SWR2310(config-pmap-c)#exit SWR2310(config-pmap)#class class2 SWR2310(config-pmap-c)#police-aggregate AGP-01 SWR2310(config-pmap-c)#exit SWR2310(config-pmap)#exit SWR2310(config)#interface port1.1 SWR2310(config-if)#service-policy input policy1 9.2.35 Show metering counters [Syntax] show qos metering-counters [ifname] [Parameter] ifname : LAN/SFP port name or logical interface name. If this is omitted, the command applies to all ports. [Input mode] unprivileged EXEC mode, privileged EXEC mode [Description] Shows the metering totals for all policers (individual policers / aggregate policers) on the specified LAN/SFP port or logical interface. The following totals are shown. Item Description Green Bytes Number of bytes categorized as bandwidth class Green Yellow Bytes Number of bytes categorized as bandwidth class Yellow Red Bytes Number of bytes categorized as bandwidth class Red The count starts when the policy map is applied to the LAN/SFP port or logical interface. [Note] In order to execute this command, QoS must be enabled. [Example] Show the metering totals for LAN port #1. SWR2310#show qos metering-counters port1.1 Interface: port1.1(policy1) ****** Individual ****** Class-map : class1 Green Bytes : 178345 Yellow Bytes : 0 Red Bytes : 0 ****** Aggregate ******* Aggregate-policer: AGP-01 Class-map : class2 class3 Green Bytes : 28672