User Manual

SWP1(config-pmap)#class class1
SWP1(config-pmap-c)#police-aggregate AGP-01
SWP1(config-pmap-c)#exit
SWP1(config-pmap)#class class2
SWP1(config-pmap-c)#police-aggregate AGP-01
SWP1(config-pmap-c)#exit
SWP1(config-pmap)#exit
SWP1(config)#interface ge1
SWP1(config-if)#service-policy input policy1
13.2.42 Show metering counters
[Syntax]
show mls qos metering-counters [ifname]
[Parameter]
ifname : LAN/SFP port name. If this is omitted, the command applies to all ports.
[Input mode]
unprivileged EXEC modepriviledged EXEC mode
[Description]
Shows the metering totals for all policers (individual policers / aggregate policers) on the specified LAN/SFP port.
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.
[Note]
In order to execute this command, QoS must be enabled.
[Example]
Show the metering totals for LAN port #1.
SWP1#show mls qos metering-counters ge1
Interface: ge1(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
Yellow Bytes : 2048
Red Bytes : 51552
13.2.43 Clear metering counters
[Syntax]
clear mls qos metering-counters [ifname]
[Parameter]
ifname : LAN/SFP port name. If this is omitted, the command applies to all ports.
[Input mode]
unprivileged EXEC modepriviledged EXEC mode
210 | Command Reference | Traffic control